/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6; /* Azul */
    --primary-dark: #2563eb; /* Azul Oscuro */
    --secondary-color: #64748b;
    --accent-color: #60a5fa; /* Azul claro como acento */
    --success-color: #10b981;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%); /* Gradiente Azul */
    --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%); /* Gradiente Acento Azul Cielo */
}

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

/* Header / Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: background 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo i {
    color: var(--primary-color);
}

.logo-img {
    height: 90px; /* Ajusta la altura del logo */
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

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

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

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    padding: 210px 0 100px; /* Aumentado para dejar espacio al navbar */
    background: var(--gradient-primary);
    /* background: var(--text-dark); */
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(50px);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInFromLeft 0.8s ease forwards;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {

    color: var(--text-dark);
    padding: 0.2rem 0.8rem;
    border-radius: 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.solicitud-demo {
    background: var(--text-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.video-mockup {
    width: 100%;
    height: 450px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInFromRight 0.8s ease forwards;
    overflow: hidden; /* To keep the video inside the rounded corners */
    padding: 8px; /* Creates a small frame effect */
    box-shadow: var(--shadow-lg);
}

.video-mockup video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the container */
    border-radius: 12px; /* Inner radius for the video */
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.feature-card:hover .feature-icon {
    transform: rotate(15deg);
}

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

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: white;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.benefit-item i {
    color: var(--success-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.benefit-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

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

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--gradient-primary);
    border-radius: 16px;
    color: white;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    position: relative;
}

.testimonials-carousel-wrapper {
    position: relative;
}

.testimonials-carousel {
    overflow: hidden;
}

.testimonials-grid {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;    
    flex: 0 0 calc((100% - 4rem) / 3); /* 3 tarjetas con 2rem de gap */
    max-width: calc((100% - 4rem) / 3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.carousel-dots {
    text-align: center;
    margin-top: 2rem;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: none;
}

.dot.active,
.dot:hover {
    background-color: var(--primary-color);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    color: var(--text-light);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

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

.testimonial-quote {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.1;
}

.testimonial-content {
    flex-grow: 1;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    padding-top: 1rem; /* Espacio para el ícono de comillas */
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 1.5rem;
}

.author-info h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #f59e0b; /* Amarillo/Dorado */
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero {
        padding-top: 140px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .benefits-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .testimonials-grid {
        /* No changes needed, flex handles it */
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 1rem); /* 2 tarjetas en tablet */
        max-width: calc(50% - 1rem);
    }

    @media (max-width: 900px) {
        .testimonial-card {
            flex: 0 0 100%; /* 1 tarjeta en móvil */
            max-width: 100%;
        }
        .carousel-btn {
            display: none; /* Hide buttons on smaller screens, rely on touch scroll later */
        }
    }

    .stats-container {
        flex-direction: row;
        justify-content: space-around;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

    .section-header h2 {
        font-size: 2.2rem;
    }

    .benefits-text h2 {
        font-size: 2.2rem;
    }

    .contact-info h2 {
        font-size: 2.2rem;
    }

    .testimonial-card {
        flex: 0 0 100%; /* 1 tarjeta en móvil */
        max-width: 100%;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .feature-card,
    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .stats-container {
        flex-direction: column;
    }
}

/* Animaciones */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.testimonial-card,
.benefit-item,
.stat-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn:focus,
.nav-menu a:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Hamburger menu bars */
.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
}

.whatsapp-float a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background: #128c7e;
}

.whatsapp-float a i {
    font-size: 28px;
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--text-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 15px;
    border: 5px solid transparent;
    border-top-color: var(--text-dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Estilos para páginas de funcionalidades */
.funcionalidad-hero {
    background: var(--gradient-primary);
    /* background: var(--text-dark); */
    color: white;
    padding: 140px 0 80px;
    text-align: center;
}

.funcionalidad-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.funcionalidad-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.content-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.content-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.mockup-container {
    width: 100%;
    height: 400px;
    background: var(--bg-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.mockup-icon {
    font-size: 6rem;
    color: var(--primary-color);
}

.benefits-section {
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

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

.cta-section {
    padding: 80px 0;
    text-align: center;
    background: var(--gradient-primary);
    color: white;
}

/* Simulator Page Styles */
.simulator-section {
    padding: 140px 0 80px; /* Space for navbar */
}

.simulator-app {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.simulator-header {
    grid-column: 1 / -1;
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.simulator-header .logo-icon {
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.simulator-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.simulator-header p {
    margin: 0;
    opacity: 0.9;
}

.simulator-main {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.simulator-main h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin: 0 0 1.5rem 0;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.module-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

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

.module-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.module-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.module-info small {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 4px;
}

.toggle {
    --size: 22px;
    width: 46px;
    height: 28px;
    border-radius: 999px;
    background: #e2e8f0;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: background 0.12s;
}

.toggle .knob {
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateX(0);
    transition: transform 0.12s;
}

.toggle.on {
    background: var(--success-color);
}

.toggle.on .knob {
    transform: translateX(18px);
}

.summary-aside {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px; /* 70px navbar + 30px margin */
}

.summary-aside h3 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.summary-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-stat:last-of-type {
    border-bottom: none;
}

.summary-stat .big-price {
    font-size: 1.8rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.summary-stat input[type="number"] {
    width: 80px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
}

@media (max-width: 980px) {
    .simulator-app {
        grid-template-columns: 1fr;
    }
    .summary-aside {
        position: relative;
        top: 0;
    }
}

/* Form Success Notification */
.form-success-alert {
    position: fixed;
    top: 90px; /* Debajo del navbar */
    left: 50%;
    transform: translate(-50%, -20px);
    background: var(--success-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-success-alert.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}