/* Custom CSS for Invitaciones Digitales Portfolio */

/* Root Variables - Paleta extraída del logo */
:root {
    --primary-color: #2b7dc4;
    --secondary-color: #5eb5e8;
    --accent-color: #1e4c8a;
    --light-blue: #9ed8f1;
    --extra-light-blue: #b5e3f5;
    --text-dark: #1a3a52;
    --text-light: #5a7a8f;
    --bg-light: #f5f9fc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2b7dc4 0%, #5eb5e8 100%);
    --gradient-secondary: linear-gradient(135deg, #1e4c8a 0%, #2b7dc4 100%);
    --gradient-light: linear-gradient(135deg, #5eb5e8 0%, #9ed8f1 100%);
    --shadow-light: 0 2px 10px rgba(43, 125, 196, 0.1);
    --shadow-medium: 0 5px 20px rgba(43, 125, 196, 0.15);
    --shadow-heavy: 0 10px 30px rgba(43, 125, 196, 0.2);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

body.loaded {
    opacity: 1;
}

body:not(.loaded) {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: var(--shadow-light);
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-medium);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
    animation: logoFlight 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Animación de vuelo diagonal del logo */
@keyframes logoFlight {
    0% {
        transform: translate(-150px, 80px) rotate(-15deg);
        opacity: 0;
    }

    60% {
        opacity: 1;
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
}

/* Prevenir que la animación se repita al hacer hover */
.navbar-logo.loaded {
    animation: none;
}

.navbar-brand:hover .navbar-logo {
    transform: translateY(-2px) rotate(5deg);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Hero Layout Control */
.hero-desktop {
    display: flex;
}

.hero-mobile {
    display: none;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Device Showcase */
.device-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    perspective: 1000px;
}

.device-frame {
    position: relative;
    transition: transform 0.3s ease;
}

.device-frame:hover {
    transform: translateY(-10px) rotateY(5deg);
}

/* Laptop Frame */
.laptop-frame {
    width: 400px;
    height: 260px;
    background: #2c2c2c;
    border-radius: 15px 15px 5px 5px;
    padding: 20px;
    box-shadow: var(--shadow-heavy);
    position: relative;
}

.laptop-frame .device-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 2px solid #444;
}

.laptop-frame .device-base {
    position: absolute;
    bottom: -8px;
    left: -5px;
    right: -5px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 0 0 10px 10px;
}

/* Mobile Frame */
.mobile-frame {
    width: 160px;
    height: 320px;
    background: #1a1a1a;
    border-radius: 25px;
    padding: 12px;
    box-shadow: var(--shadow-heavy);
    position: relative;
}

.mobile-frame .device-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    border: 2px solid #333;
}

.mobile-frame .device-camera {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 14px;
    background: #000000;
    border-radius: 20px;
    border: 1px solid #333;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-frame .device-indicator {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Device Videos */
.device-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Screen reflections */
.laptop-frame .device-screen::before,
.mobile-frame .device-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}

/* Floating animation for device showcase */
.device-showcase {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Mobile Device Showcase - Both devices together */
.device-showcase-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    margin: 2rem auto;
    max-width: 100%;
    padding: 0 1rem;
    perspective: 1000px;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile Device Frame - Adjusted size for mobile view with thinner frames */
.mobile-device-frame {
    width: 140px;
    height: 280px;
    flex-shrink: 0;
    background: #1a1a1a;
    border-radius: 28px;
    padding: 6px;
    box-shadow: var(--shadow-heavy);
    position: relative;
}

.mobile-device-frame .device-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-device-frame .device-camera {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 12px;
    background: #000000;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-device-frame .device-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Mobile Laptop Frame - Adjusted size for mobile view with thinner frames */
.mobile-laptop-frame {
    width: 220px;
    height: 145px;
    flex-shrink: 0;
    background: #2c2c2c;
    border-radius: 12px 12px 4px 4px;
    padding: 8px;
    box-shadow: var(--shadow-heavy);
    position: relative;
}

.mobile-laptop-frame .device-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-laptop-frame .device-base {
    position: absolute;
    bottom: -4px;
    left: -2px;
    right: -2px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 0 0 6px 6px;
}

/* Disable hover effects on mobile devices */
.device-showcase-mobile .device-frame:hover {
    transform: none;
}

/* Mobile Hero Content */
.hero-content-mobile {
    text-align: center;
    padding: 2rem 1rem 1rem;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.hero-content-mobile .hero-title {
    color: white;
    margin-bottom: 1rem;
}

.hero-content-mobile .hero-subtitle {
    color: white;
    opacity: 0.95;
    margin-bottom: 0;
}

.hero-buttons-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem 2rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.hero-buttons-mobile .btn {
    width: 100%;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons-mobile .btn:active {
    transform: scale(0.98);
}

/* Asegurar que los botones móviles sean clickeables */
.hero-buttons-mobile .btn {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Asegurar que el botón sea clickeable en móvil */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    /* Prevenir que otros elementos interfieran */
    isolation: isolate;
}

/* Portfolio Section */
.portfolio-section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.portfolio-section .section-subtitle {
    margin-bottom: 2rem;
}

/* Portfolio Filter Menu - Elegant Design */
.portfolio-filter-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-radius: 60px;
    box-shadow: 0 8px 24px rgba(43, 125, 196, 0.15), inset 0 1px 3px rgba(255, 255, 255, 0.8);
    max-width: fit-content;
    margin: 0 auto;
    position: relative;
    border: 1px solid rgba(43, 125, 196, 0.15);
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.filter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(43, 125, 196, 0.3);
}

.filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.filter-text {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.filter-item:hover:not(.active) {
    color: var(--primary-color);
    transform: translateY(-2px);
    background: rgba(43, 125, 196, 0.08);
}

.filter-item:hover:not(.active) .filter-icon {
    transform: scale(1.15) rotate(5deg);
}

.filter-item.active {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.filter-item.active::before {
    opacity: 1;
}

.filter-item.active .filter-icon {
    animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.filter-item:active {
    transform: translateY(0) scale(0.98);
}

.portfolio-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
}

.portfolio-card:hover {
    box-shadow: var(--shadow-heavy);
    transform: translateY(-5px);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 125, 196, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    text-align: center;
    color: white;
    padding: 1rem;
}

.portfolio-content h5 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.services-section .section-subtitle {
    margin-bottom: 2.5rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(43, 125, 196, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

.stats {
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-section .section-subtitle {
    margin-bottom: 2.5rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

/* Estilos específicos para el botón del formulario de contacto */
.contact-form .btn-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 1rem;
    padding: 12px 40px;
}

.contact-form .btn-primary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 125, 196, 0.3);
}

/* Dynamic field for "Other" event type */
#otherEventField {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

#otherEventField.show {
    opacity: 1;
    transform: translateY(0);
}

#otherEventDescription {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#otherEventDescription:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(43, 125, 196, 0.25);
    outline: none;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(43, 125, 196, 0.25);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent-color) 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-brand {
        align-items: flex-start;
    }
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-brand h5 {
    font-weight: 700;
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(94, 181, 232, 0.4);
}

@media (min-width: 768px) {
    .social-links {
        justify-content: flex-end;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 991px) {

    /* Switch to mobile layout */
    .hero-desktop {
        display: none !important;
    }

    .hero-mobile {
        display: block !important;
        padding-top: 70px;
    }

    .hero-section {
        min-height: auto;
        padding-bottom: 2rem;
    }

    .hero-content-mobile {
        padding: 1rem 1rem 0.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {

    /* Spacing adjustments */
    .portfolio-section .section-subtitle {
        margin-bottom: 1.5rem;
    }

    .services-section .section-subtitle {
        margin-bottom: 2rem;
    }

    .services-section .section-title {
        margin-bottom: 0.75rem;
    }

    .contact-section .section-subtitle {
        margin-bottom: 2rem;
    }

    .contact-section .section-title {
        margin-bottom: 0.75rem;
    }

    .portfolio-section {
        padding: 4rem 0;
    }

    .services-section {
        padding: 4rem 0;
    }

    .contact-section {
        padding: 4rem 0;
    }

    /* Switch to mobile comparison table */
    .comparison-desktop {
        display: none !important;
    }

    .comparison-mobile {
        display: block !important;
    }

    /* Reorder comparison section for mobile - Table first, then demo */
    .pricing-section .row.align-items-center {
        display: flex;
        flex-direction: column-reverse;
    }

    .pricing-section .row.align-items-center>div {
        width: 100%;
        max-width: 100%;
    }

    .navbar-logo {
        height: 35px;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    /* Animación ajustada para tablets */
    @keyframes logoFlight {
        0% {
            transform: translate(-120px, 60px) rotate(-15deg);
            opacity: 0;
        }

        60% {
            opacity: 1;
        }

        100% {
            transform: translate(0, 0) rotate(0deg);
            opacity: 1;
        }
    }

    .hero-content-mobile {
        padding: 0.75rem 1rem 0.5rem;
    }

    .device-showcase-mobile {
        gap: 0.75rem;
        margin: 1.5rem auto;
        padding: 0 0.75rem;
    }

    .mobile-device-frame {
        width: 120px;
        height: 240px;
        padding: 5px;
        border-radius: 24px;
    }

    .mobile-device-frame .device-screen {
        border-radius: 19px;
    }

    .mobile-device-frame .device-camera {
        top: 15px;
        width: 32px;
        height: 10px;
    }

    .mobile-device-frame .device-indicator {
        bottom: 17px;
        width: 42px;
        height: 3px;
    }

    .mobile-laptop-frame {
        width: 190px;
        height: 125px;
        padding: 6px;
        border-radius: 10px 10px 3px 3px;
    }

    .mobile-laptop-frame .device-screen {
        border-radius: 5px;
    }

    .mobile-laptop-frame .device-base {
        bottom: -3px;
        left: -2px;
        right: -2px;
        height: 3px;
    }

    .hero-section {
        padding-top: 100px;
        min-height: 100vh;
    }

    .hero-title {
        font-size: 3.2rem;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
        font-size: 1.3rem;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        text-align: center;
    }

    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        margin: 0.5rem;
        min-width: 200px;
    }

    /* Portfolio filter responsive */
    .portfolio-filter-menu {
        padding: 0.75rem;
        gap: 0.35rem;
        border-radius: 50px;
        max-width: 95%;
    }

    .filter-item {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        gap: 0.4rem;
    }

    .filter-icon {
        font-size: 1rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {

    /* More spacing adjustments for small mobile */
    .portfolio-section .section-subtitle {
        margin-bottom: 1rem;
    }

    .services-section .section-subtitle {
        margin-bottom: 1.5rem;
    }

    .contact-section .section-subtitle {
        margin-bottom: 1.5rem;
    }

    .section-title::after {
        bottom: -8px;
    }

    .plan-select {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
    }

    .comparison-table-mobile thead th {
        padding: 0.85rem 0.5rem;
        font-size: 0.9rem;
    }

    .comparison-table-mobile tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .comparison-table-mobile .feature-icon {
        font-size: 0.9rem;
    }

    .navbar-logo {
        height: 30px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .footer-logo {
        height: 40px;
    }

    /* Animación optimizada para móviles */
    @keyframes logoFlight {
        0% {
            transform: translate(-80px, 40px) rotate(-12deg);
            opacity: 0;
        }

        60% {
            opacity: 1;
        }

        100% {
            transform: translate(0, 0) rotate(0deg);
            opacity: 1;
        }
    }

    .hero-section {
        padding-top: 90px;
    }

    .hero-mobile {
        padding-top: 60px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content-mobile {
        padding: 0.5rem 0.75rem 0.25rem;
    }

    .device-showcase-mobile {
        gap: 0.5rem;
        margin: 1rem auto;
        padding: 0 0.5rem;
        flex-wrap: wrap;
    }

    .mobile-device-frame {
        width: 110px;
        height: 220px;
        padding: 4px;
        border-radius: 22px;
    }

    .mobile-device-frame .device-screen {
        border-radius: 18px;
    }

    .mobile-device-frame .device-camera {
        top: 12px;
        width: 30px;
        height: 9px;
    }

    .mobile-device-frame .device-indicator {
        bottom: 15px;
        width: 38px;
        height: 3px;
    }

    .mobile-laptop-frame {
        width: 170px;
        height: 112px;
        padding: 5px;
        border-radius: 9px 9px 3px 3px;
    }

    .mobile-laptop-frame .device-screen {
        border-radius: 4px;
    }

    .mobile-laptop-frame .device-base {
        bottom: -3px;
        left: -1px;
        right: -1px;
        height: 3px;
    }

    .hero-buttons-mobile {
        padding: 0 0.75rem 1.5rem;
        margin-top: 1rem;
    }

    .hero-buttons-mobile .btn {
        padding: 10px 24px;
        font-size: 1rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .portfolio-image {
        height: 200px;
    }

    /* Portfolio filter for small mobile */
    .portfolio-filter-menu {
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.5rem;
        border-radius: 20px;
        max-width: 90%;
    }

    .filter-item {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .filter-icon {
        font-size: 1.1rem;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
    background: linear-gradient(135deg, #2b7dc4 0%, #5eb5e8 50%, #9ed8f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    /* Ensure it covers the entire screen including browser UI areas */
    min-height: 100vh;
    min-height: 100dvh;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 2rem;
}

/* Logo animado */
.loading-logo {
    position: relative;
    margin-bottom: 2rem;
    display: inline-block;
}

.logo-spinner {
    width: 80px;
    height: 80px;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.logo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Texto de carga */
.loading-text {
    margin-bottom: 2rem;
}

.loading-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: titlePulse 2s ease-in-out infinite;
}

.loading-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    animation: subtitleFade 3s ease-in-out infinite;
}

@keyframes titlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes subtitleFade {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Barra de progreso */
.loading-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, #e3f2fd 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.progress-text {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


/* Responsive para móviles */
@media (max-width: 768px) {
    .loading-screen {
        /* Asegurar cobertura completa en móviles */
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        /* Forzar que cubra toda la pantalla incluyendo barras del navegador */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* Asegurar que no haya scroll */
        overflow: hidden;
    }

    .loading-container {
        padding: 1rem;
        max-width: 300px;
    }

    .logo-spinner {
        width: 60px;
        height: 60px;
    }

    .logo-ring {
        width: 80px;
        height: 80px;
    }

    .loading-title {
        font-size: 2rem;
    }

    .loading-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .loading-screen {
        /* Asegurar cobertura completa en móviles pequeños */
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        /* Forzar que cubra toda la pantalla incluyendo barras del navegador */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* Asegurar que no haya scroll */
        overflow: hidden;
        /* Asegurar que esté por encima de todo */
        z-index: 99999;
    }

    .loading-container {
        padding: 0.5rem;
        max-width: 250px;
    }

    .logo-spinner {
        width: 50px;
        height: 50px;
    }

    .logo-ring {
        width: 70px;
        height: 70px;
    }

    .loading-title {
        font-size: 1.8rem;
    }

    .loading-subtitle {
        font-size: 0.9rem;
    }
}

/* Form Messages */
#form-messages {
    margin-top: 1rem;
}

#form-messages .alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    animation: slideInUp 0.3s ease;
}

#form-messages .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #5eb5e8;
}

#form-messages .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #1e4c8a;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Pricing Section */
.pricing-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    border: 2px solid transparent;
    /* overflow: hidden; REMOVIDO para permitir que el badge sobresalga */
}

/* Contenedor para recortar el sello sin afectar al resto de la tarjeta */
.seal-clipper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-top-left-radius: 20px;
    /* Coincide con el borde de la tarjeta */
    z-index: 10;
}

.offer-seal {
    position: absolute;
    top: 15px;
    left: -35px;
    background: #ef4444;
    color: white;
    padding: 5px 40px;
    transform: rotate(-45deg);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.pricing-card.premium {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.pricing-card.premium:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card.vip {
    border-color: var(--light-blue);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-medium);
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.pricing-price-old,
.pricing-price-new {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
}

/* Nueva clase dedicada para diseño de precios antiguos */
.old-price-design {
    font-family: 'Poppins', sans-serif !important;
    color: #000000 !important;
    font-weight: 700 !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.2rem;
    text-decoration: none !important;
}

.old-price-design::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 2px;
    background-color: #ef4444;
    left: -5%;
    top: 50%;
    transform: rotate(-3deg);
    z-index: 1;
    opacity: 0.9;
}

/* Forzamos los estilos de los hijos con alta especificidad */
.pricing-price .old-price-design .currency,
.pricing-price .old-price-design .amount,
.pricing-price .old-price-design .period {
    font-size: 16px !important;
    /* Tamaño aumentado */
    color: #000000 !important;
    font-weight: 700 !important;
    /* Negrita */
    line-height: normal;
}

.pricing-price .old-price-design .amount {
    font-size: 20px !important;
    /* Tamaño aumentado */
}

/* Estilos para el precio nuevo se mantienen */
.pricing-price-new {
    gap: 0.25rem;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.pricing-price .amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.pricing-price .period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.pricing-features {
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 0.8rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.pricing-demo {
    margin-top: auto;
}

.pricing-demo .btn {
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pricing-demo .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Interactive Demo */
.demo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* View Toggle Buttons */
.view-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.view-toggle-buttons {
    background: white;
    border-radius: 25px;
    padding: 0.3rem;
    box-shadow: var(--shadow-light);
    display: flex;
    gap: 0.2rem;
}

.view-toggle-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-toggle-btn:hover {
    background: rgba(43, 125, 196, 0.1);
    color: var(--primary-color);
}

.view-toggle-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-medium);
}

/* Device Containers */
.device-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.device-container.active {
    display: flex;
}

.device-container h3 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 2rem;
}

.device-demo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-mobile {
    width: 220px;
    height: 440px;
    transform: scale(1.1);
    animation: float 6s ease-in-out infinite;
}

.demo-laptop {
    width: 450px;
    height: 290px;
    animation: float 6s ease-in-out infinite;
}

/* Plan Info Badge */
.plan-info {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.plan-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Payment Legend */
.payment-legend {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.legend-content {
    background: white;
    border-radius: 20px;
    padding: 2rem 3rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 2px solid var(--primary-color);
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.legend-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.legend-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.legend-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.legend-text {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Comparison Table */
.comparison-table-wrapper {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    margin-top: 3rem;
}

.comparison-table-wrapper.compact {
    margin-top: 0;
    padding: 1.5rem;
}

/* Mobile/Desktop comparison control */
.comparison-mobile {
    display: none;
}

.comparison-desktop {
    display: block;
}

.comparison-table-wrapper h3 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 2rem;
}

.comparison-table {
    margin-bottom: 0;
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table.compact-table {
    font-size: 0.85rem;
}

.comparison-table.compact-table thead th {
    padding: 0.6rem 0.4rem;
    font-size: 0.9rem;
}

.comparison-table.compact-table tbody td {
    padding: 0.5rem 0.4rem;
    font-size: 0.8rem;
}

.comparison-table thead th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 0.8rem 0.6rem;
    border: none;
    text-align: center;
    font-size: 1rem;
}

.comparison-table thead th:first-child {
    text-align: left;
}

.plan-header.clickable-plan {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.plan-header.clickable-plan:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--primary-color) !important;
}

.plan-header.clickable-plan:hover i {
    color: var(--primary-color) !important;
}

.plan-header.clickable-plan.selected {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--primary-color) !important;
}

.plan-header.clickable-plan.selected i {
    color: var(--primary-color) !important;
}

.comparison-table tbody td {
    padding: 0.7rem 0.6rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.comparison-table tbody td:first-child {
    background: #f8f9fa;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.comparison-table tbody tr:hover {
    background: rgba(43, 125, 196, 0.05);
}

.comparison-table .text-success {
    color: #2b7dc4 !important;
    font-size: 1rem;
}

.comparison-table .text-danger {
    color: #1e4c8a !important;
    font-size: 1rem;
    opacity: 0.4;
}

/* Mobile Plan Selector */
.mobile-plan-selector {
    text-align: center;
}

.mobile-plan-selector .form-label {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.plan-select {
    max-width: 300px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.plan-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(43, 125, 196, 0.25);
    outline: none;
}

.plan-select option {
    padding: 0.5rem;
    font-weight: 600;
}

/* Mobile Comparison Table */
.comparison-table-mobile {
    margin-bottom: 0;
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table-mobile thead th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 1rem 0.75rem;
    border: none;
    font-size: 1rem;
}

.comparison-table-mobile thead th:first-child {
    text-align: left;
}

.comparison-table-mobile tbody td {
    padding: 0.9rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.comparison-table-mobile tbody td:first-child {
    background: #f8f9fa;
    font-weight: 600;
}

.comparison-table-mobile tbody tr:hover {
    background: rgba(43, 125, 196, 0.05);
}

.comparison-table-mobile .text-success {
    color: #2b7dc4 !important;
    font-size: 1.2rem;
}

.comparison-table-mobile .text-danger {
    color: #1e4c8a !important;
    font-size: 1.2rem;
    opacity: 0.4;
}

/* Responsive Design for Pricing */
@media (max-width: 768px) {
    .pricing-section {
        padding: 3rem 0;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .pricing-card.premium {
        transform: none;
        margin-bottom: 2rem;
    }

    .pricing-card.premium:hover {
        transform: translateY(-10px);
    }

    .pricing-title {
        font-size: 1.5rem;
    }

    .pricing-price .amount {
        font-size: 2.8rem;
    }

    .comparison-table-wrapper {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .comparison-table-wrapper.compact {
        margin-top: 0;
        padding: 1rem;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }

    .feature-icon {
        font-size: 1rem;
    }

    .feature-list li {
        padding: 0.6rem 0;
        font-size: 0.9rem;
    }

    .demo-mobile {
        width: 180px;
        height: 360px;
        transform: scale(1);
    }

    .demo-laptop {
        width: 350px;
        height: 230px;
    }

    .device-container h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .view-toggle-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .legend-content {
        padding: 1.5rem 2rem;
        max-width: 500px;
    }

    .legend-icon {
        font-size: 2rem;
    }

    .legend-title {
        font-size: 1.3rem;
    }

    .legend-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .pricing-card {
        padding: 1.5rem 1rem;
    }

    .pricing-title {
        font-size: 1.3rem;
    }

    .pricing-price .amount {
        font-size: 2.5rem;
    }

    .pricing-demo .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .comparison-table-wrapper {
        padding: 1rem;
        overflow-x: auto;
    }

    .comparison-table {
        min-width: 500px;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }

    .feature-icon {
        font-size: 0.9rem;
    }

    .demo-mobile {
        width: 160px;
        height: 320px;
        transform: scale(0.9);
    }

    .demo-laptop {
        width: 280px;
        height: 180px;
    }

    .device-container h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .view-toggle-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .plan-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .legend-content {
        padding: 1.2rem 1.5rem;
        max-width: 400px;
        margin: 0 1rem;
    }

    .legend-icon {
        font-size: 1.8rem;
    }

    .legend-title {
        font-size: 1.2rem;
    }

    .legend-text {
        font-size: 0.9rem;
    }

    .comparison-table-wrapper.compact {
        padding: 0.8rem;
    }

    .comparison-table.compact-table thead th,
    .comparison-table.compact-table tbody td {
        padding: 0.4rem 0.2rem;
        font-size: 0.7rem;
    }
}

/* Estilos específicos para pantalla de carga en móviles - Solución para barra de navegación */
@media (max-width: 768px) {
    .loading-screen {
        /* Usar viewport completo incluyendo área de navegación */
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        /* Asegurar que cubra toda la pantalla */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* Prevenir scroll */
        overflow: hidden;
        /* Z-index alto para estar por encima de todo */
        z-index: 99999;
        /* Asegurar que no haya márgenes o padding que afecten el tamaño */
        margin: 0;
        padding: 0;
        border: none;
        /* Forzar que cubra el área completa del navegador */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    /* Asegurar que el body no tenga scroll durante la carga */
    body:not(.loaded) {
        overflow: hidden;
        height: 100vh;
        height: 100dvh;
    }

    /* Asegurar que los botones móviles funcionen después de la carga */
    .hero-buttons-mobile {
        position: relative;
        z-index: 10;
        pointer-events: auto;
    }

    .hero-buttons-mobile .btn {
        position: relative;
        z-index: 15;
        pointer-events: auto;
        cursor: pointer;
        touch-action: manipulation;
    }
}

/* Estilos adicionales para Safari y Chrome en móviles */
@supports (-webkit-touch-callout: none) {
    .loading-screen {
        /* Safari específico */
        height: 100vh;
        height: -webkit-fill-available;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
}

/* Estilos para navegadores que soportan dvh */
@supports (height: 100dvh) {
    .loading-screen {
        height: 100dvh;
        min-height: 100dvh;
    }
}

/* Secciones Section - Carrusel */
.secciones-section {
    padding: 5rem 0;
    background: white;
    position: relative;
}

.secciones-section .section-subtitle {
    margin-bottom: 3rem;
}

/* Carrusel Wrapper */
.sections-carousel-wrapper {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
    box-sizing: border-box;
}

.sections-carousel-container {
    position: relative;
    display: block;
    width: 100%;
}

/* Botones de navegación */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-medium);
    font-size: 1.2rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.carousel-nav-btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 125, 196, 0.3);
}

.carousel-prev {
    left: -60px;
}

.carousel-next {
    right: -60px;
}

/* Carrusel */
.sections-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    -webkit-overflow-scrolling: touch;
}

.sections-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    touch-action: pan-y pinch-zoom;
}

/* Tarjetas de sección */
.section-card {
    flex-shrink: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: scale(1);
    margin: 0;
    padding: 0;
}

.section-card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: var(--shadow-heavy);
}

/* Contenedor de imágenes */
.section-image-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: var(--bg-light);
}

.section-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.section-image.active {
    opacity: 1;
}

/* Contenido de la tarjeta */
.section-content {
    padding: 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.section-card.active .section-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(43, 125, 196, 0.3);
}

.section-icon i {
    font-size: 2rem;
    color: white;
}

.section-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-card-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Indicadores del carrusel */
.carousel-indicators-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding: 0 60px;
}

.carousel-indicators-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.carousel-indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(43, 125, 196, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.carousel-indicator-dot:hover {
    background: rgba(43, 125, 196, 0.5);
    transform: scale(1.2);
}

.carousel-indicator-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(43, 125, 196, 0.5);
}

.carousel-indicator-dot:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(43, 125, 196, 0.3);
}

/* Responsive Design para Carrusel */
@media (max-width: 992px) {
    .sections-carousel-wrapper {
        padding: 0 50px;
        max-width: 100%;
    }

    .sections-carousel {
        width: 100%;
    }

    .carousel-prev {
        left: -50px;
    }

    .carousel-next {
        right: -50px;
    }

    .carousel-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .section-image-container {
        height: 300px;
    }

    .section-content {
        padding: 1.5rem;
    }

    .section-card-title {
        font-size: 1.3rem;
    }

    .section-card-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .secciones-section {
        padding: 3rem 0 2rem;
    }

    .secciones-section .section-title {
        font-size: 2rem;
    }

    .secciones-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .sections-carousel-wrapper {
        padding: 0 50px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .sections-carousel-container {
        position: relative;
        width: 100%;
    }

    .sections-carousel {
        width: 100%;
    }

    .carousel-prev {
        left: 5px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 15;
    }

    .carousel-next {
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 15;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        background: rgba(43, 125, 196, 0.9);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(43, 125, 196, 0.4);
    }

    .carousel-nav-btn:hover {
        background: rgba(30, 76, 138, 0.95);
        transform: translateY(-50%) scale(1.05);
    }

    .sections-carousel {
        border-radius: 15px;
        overflow: hidden;
    }

    .section-image-container {
        height: 280px;
    }

    .section-content {
        padding: 1.5rem 1.25rem;
    }

    .section-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .section-icon i {
        font-size: 1.5rem;
    }

    .section-card-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .section-card-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .carousel-indicators-wrapper {
        padding: 0 50px;
        margin-top: 1.5rem;
    }

    .carousel-indicator-dot {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

@media (max-width: 576px) {
    .secciones-section {
        padding: 2.5rem 0 1.5rem;
    }

    .secciones-section .section-title {
        font-size: 1.75rem;
        padding: 0 1rem;
    }

    .secciones-section .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .sections-carousel-wrapper {
        padding: 0 45px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .sections-carousel-container {
        width: 100%;
    }

    .sections-carousel {
        width: 100%;
    }

    .carousel-prev {
        left: 5px;
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        background: rgba(43, 125, 196, 0.95);
        box-shadow: 0 3px 12px rgba(43, 125, 196, 0.5);
    }

    .carousel-next {
        right: 5px;
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        background: rgba(43, 125, 196, 0.95);
        box-shadow: 0 3px 12px rgba(43, 125, 196, 0.5);
    }

    .carousel-nav-btn:active {
        transform: translateY(-50%) scale(0.9);
    }

    .sections-carousel {
        border-radius: 12px;
    }

    .section-card {
        border-radius: 12px;
    }

    .section-image-container {
        height: 220px;
    }

    .section-content {
        padding: 1.25rem 1rem;
    }

    .section-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 0.875rem;
    }

    .section-icon i {
        font-size: 1.4rem;
    }

    .section-card-title {
        font-size: 1.15rem;
        margin-bottom: 0.625rem;
        line-height: 1.3;
    }

    .section-card-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .carousel-indicators-wrapper {
        padding: 0 45px;
        margin-top: 1.25rem;
    }

    .carousel-indicators-container {
        gap: 6px;
        flex-wrap: wrap;
    }

    .carousel-indicator-dot {
        width: 9px;
        height: 9px;
        margin: 0 2px;
    }

    .carousel-indicator-dot:active {
        transform: scale(1.3);
    }

    /* Mejorar visibilidad de los botones en móviles */
    .carousel-nav-btn {
        -webkit-tap-highlight-color: rgba(43, 125, 196, 0.3);
        min-width: 44px;
        min-height: 44px;
    }

    /* Asegurar que las imágenes se vean bien */
    .section-image {
        object-fit: cover;
        object-position: center;
    }

    /* Mejorar el contraste de los indicadores en móviles */
    .carousel-indicator-dot {
        min-width: 10px;
        min-height: 10px;
    }

    .carousel-indicator-dot.active {
        background: var(--primary-color);
        border: 2px solid var(--primary-color);
    }
}

/* Estilos adicionales para móviles muy pequeños */
@media (max-width: 400px) {
    .secciones-section .section-title {
        font-size: 1.5rem;
    }

    .secciones-section .section-subtitle {
        font-size: 0.9rem;
    }

    .sections-carousel-wrapper {
        padding: 0 40px;
        width: 100%;
        box-sizing: border-box;
    }

    .sections-carousel-container {
        width: 100%;
    }

    .sections-carousel {
        width: 100%;
    }

    .carousel-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .section-image-container {
        height: 200px;
    }

    .section-content {
        padding: 1rem 0.875rem;
    }

    .section-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }

    .section-icon i {
        font-size: 1.25rem;
    }

    .section-card-title {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }

    .section-card-description {
        font-size: 0.85rem;
    }

    .carousel-indicators-wrapper {
        padding: 0 40px;
        margin-top: 1rem;
    }

    .carousel-indicator-dot {
        width: 8px;
        height: 8px;
        margin: 0 2px;
    }
}