:root {
    --primary-color: #10254C;  /*#101e2d; #0056b3;*/
    --secondary-color: #00a0e9;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --success-color: #28a745;
    --whatsapp-color: #25d366;
    --whatsapp-hover: #128C7E;
    --link-color:#0369ea;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* ========== BANNER FIJO DE PROMOCIÓN ========== */
.promo-banner-fixed {
    background: linear-gradient(95deg, #10254C 0%, #1a3a6e 100%);
    color: white;
    padding: 10px 20px;
    width: 100%;
    z-index: 1001;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.promo-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
}

.promo-icon {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.promo-text {
    text-align: center;
}

.promo-text strong {
    color: var(--secondary-color);
    font-weight: 700;
}

.promo-link {
    background: #25D366;
    color: white;
    padding: 5px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.promo-link:hover {
    background: #128C7E;
    transform: scale(1.02);
}

/* ========== HEADER Y NAVBAR ========== */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: white;
}

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
}

.logo img {
    height: 40px;
    display: block;
}

/* Menú de navegación */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
}

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

/* Botón hamburguesa - oculto en desktop */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* ========== RESPONSIVE MÓVIL ========== */
@media (max-width: 768px) {
    /* Mostrar hamburguesa */
    .hamburger {
        display: block;
    }
    
    /* Ocultar menú por defecto */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: white;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        text-align: left;
        transition: 0.3s ease;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        padding: 80px 2rem 2rem;
        z-index: 999;
        gap: 1.5rem;
    }
    
    /* Menú activo */
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        display: block;
    }
    
    /* Overlay cuando el menú está abierto */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        display: none;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Ajustes del banner en móvil */
    .promo-banner-content {
        font-size: 0.7rem;
        gap: 6px;
    }
    
    .promo-link {
        padding: 3px 10px;
        font-size: 0.65rem;
    }
    
    .promo-text {
        width: 100%;
        order: 1;
    }
    
    .promo-link {
        order: 2;
    }
    
    .promo-icon {
        order: 0;
    }
    
    /* Ajuste del navbar fijo */
    .main-header {
        position: sticky;
        top: 0;
    }
}

/* ========== AJUSTES PARA ESCRITORIO ========== */
@media (min-width: 769px) {
    .main-header {
        position: sticky;
        top: 0;
    }
    
    .navbar {
        padding: 1rem 5%;
    }
}

/* Animación del hamburger cuando está activo */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Evitar scroll cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
}
/* Hero Section con Video */
.hero {
    height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.15) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    padding: 1.5rem;
    animation: fadeInUp 1s ease;
}

.logo-container {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.hero-logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    animation: fadeInDown 1s ease;
}

.hero-phrase {
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.3s both;
    font-size:80px;
    font-variation-settings: normal;
    font-weight: 300;
    height: 90px;
    letter-spacing: 0.8px;
    line-height:70px;
}

.btn-cotizacion {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--link-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    animation: fadeInUp 1s ease 0.6s both;
    border: 2px solid transparent;
}

.btn-cotizacion:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: transparent;
    color: white;
    border-color: white;
}

/* Nuevas animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para la sección hero */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 220px;
    }
    
    .hero-phrase {
        font-size: 2.5rem;
        line-height:40px;
    }
    
    .btn-cotizacion {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 180px;
    }
    
    .hero-phrase {
        font-size: 1.8rem;
    }
    
    .btn-cotizacion {
        padding: 0.8rem 1.5rem;
    }
}

/* Fallback para navegadores que no soportan video */
.no-video .video-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
/* About Section */
.about {
    padding: 5rem 1rem;
    background: var(--light-color);
}

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

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.about-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Plans Section */
.plans {
    padding: 5rem 1rem;
    background: white;
}

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

.plan-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s;
}

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

.plan-card.featured {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
}

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

.popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: #666;
}

.plan-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.plan-card li {
    margin: 0.5rem 0;
}

.plan-card i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.btn-plan {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-plan:hover {
    background: var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: 5rem 1rem;
    background: var(--light-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--secondary-color);
}

.contact-info {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin: 1rem 0;
}

.contact-info i {
    margin-right: 0.5rem;
    width: 20px;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
    z-index: 1000;
}

.whatsapp-float:hover {
    background: var(--whatsapp-hover);
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 1rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

/* ========== REDES SOCIALES ========== */

/* Estilos para redes sociales en footer */
.social-footer {
    margin-top: 1.5rem;
}

.social-footer h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Colores específicos para cada red social en hover */
.social-icon.facebook:hover {
    background: #1877f2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf, #4f5bd5);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

.social-icon.linkedin:hover {
    background: #0077b5;
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.social-icon.twitter:hover {
    background: #000000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.social-icon.youtube:hover {
    background: #ff0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.social-icon.tiktok:hover {
    background: #000000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Estilos para redes sociales en contacto */
.contact-social {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-social h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-circle:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
}

.social-circle.facebook:hover {
    background: #1877f2;
    box-shadow: 0 5px 20px rgba(24, 119, 242, 0.5);
}

.social-circle.instagram:hover {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf, #4f5bd5);
    box-shadow: 0 5px 20px rgba(225, 48, 108, 0.5);
}

.social-circle.linkedin:hover {
    background: #0077b5;
    box-shadow: 0 5px 20px rgba(0, 119, 181, 0.5);
}

.social-circle.twitter:hover {
    background: #000000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.social-circle.youtube:hover {
    background: #ff0000;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

.social-circle.tiktok:hover {
    background: #000000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Newsletter en footer */
.newsletter {
    max-width: 600px;
    margin: 2rem auto 1rem;
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.newsletter h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: 2px solid var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.newsletter-form button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer links legales */
.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Contact details en sección contacto */
.contact-details p {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-details i {
    width: 20px;
    color: var(--secondary-color);
}

.contact-details a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--secondary-color);
}

/* Responsive para redes sociales */
@media (max-width: 768px) {
    .social-icons {
        justify-content: center;
    }
    
    .social-contact {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .footer-links a {
        margin: 0 0.3rem;
    }
}

@media (max-width: 480px) {
    .social-circle {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .contact-social h4 {
        text-align: center;
    }
}

/* Error 404 Page */
.error-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.error-content h1 {
    font-size: 8rem;
    margin-bottom: 0;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.btn-home {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-home:hover {
    transform: translateY(-3px);
}

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

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .plan-card.featured {
        transform: scale(1);
    }

    .plan-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .about-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        line-height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

/* Agregar estas nuevas reglas a estilos.css */

/* Features Section */
.features {
    padding: 5rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,86,179,0.03) 0%, transparent 70%);
    z-index: 0;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,86,179,0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

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

.feature-content {
    flex: 1;
}

.feature-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-content p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Features Badge */
.features-badge {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.badge-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .features-badge {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        border-radius: 20px;
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .feature-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-content h3 {
        font-size: 1.2rem;
    }
}

/* Animation for features */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.feature-card:nth-child(odd) {
    animation: slideInLeft 0.6s ease forwards;
}

.feature-card:nth-child(even) {
    animation: slideInRight 0.6s ease forwards;
}

/* ========== POPUP DE PROMOCIÓN ========== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-container {
    position: relative;
    max-width: 500px;
    width: 90%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.4s ease;
    overflow: hidden;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.popup-close:hover {
    color: #333;
    transform: scale(1.1);
}

.popup-content {
    padding: 2rem;
    text-align: center;
}

.popup-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: pulse 1s ease infinite;
}

.popup-icon i {
    font-size: 2.5rem;
    color: white;
}

.popup-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.popup-message {
    margin-bottom: 1.5rem;
}

.popup-message .highlight {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.popup-message .discount {
    color: #FF6B35;
    font-size: 1.8rem;
    font-weight: 800;
    display: inline-block;
    animation: bounce 0.5s ease;
}

.popup-message .simple {
    font-size: 1.2rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

.popup-features {
    background: #f0f7ff;
    border-radius: 15px;
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: left;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.8rem 0;
    color: #555;
}

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

.feature span {
    font-size: 0.95rem;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.popup-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.popup-btn-whatsapp {
    background: #25D366;
    color: white;
}

.popup-btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.popup-btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.popup-btn-secondary:hover {
    background: #dee2e6;
    transform: translateY(-2px);
}

.popup-footer {
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
}

/* ========== WHATSAPP CON GLOBO DE CONVERSACIÓN ========== */
.whatsapp-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* Botón principal de WhatsApp */
.whatsapp-float {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
    box-shadow: 0 8px 25px rgba(18, 140, 126, 0.5);
}

/* Efecto de pulso */
.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(37, 211, 102, 0.6);
    border-radius: 50%;
    animation: pulseRing 1.5s ease-out infinite;
    z-index: -1;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Globo de conversación */
.whatsapp-bubble {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1;
    cursor: pointer;
}

.whatsapp-bubble.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Contenido del globo */
.bubble-content {
    position: relative;
    padding: 15px;
    background: white;
    border-radius: 20px;
}

/* Flecha del globo */
.bubble-arrow {
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

/* Icono del globo */
.bubble-icon {
    position: absolute;
    top: -15px;
    left: 15px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

.bubble-icon i {
    font-size: 1.2rem;
    color: white;
}

/* Texto del globo */
.bubble-text {
    margin-top: 10px;
    text-align: center;
}

.bubble-title {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    color: #FF6B35;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.bubble-message {
    display: block;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
}

.bubble-message br {
    display: block;
}

.bubble-cta {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #25D366;
    background: #f0f9f0;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.bubble-cta:hover {
    background: #25D366;
    color: white;
}

/* Botón de cerrar globo */
.bubble-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.bubble-close:hover {
    background: #FF6B35;
    color: white;
    transform: scale(1.1);
}

/* Versión con animación de entrada */
@keyframes bubblePopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    70% {
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.whatsapp-bubble.show {
    animation: bubblePopIn 0.4s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-wrapper {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    
    .whatsapp-bubble {
        width: 260px;
        bottom: 70px;
    }
    
    .bubble-message {
        font-size: 0.85rem;
    }
    
    .bubble-title {
        font-size: 0.75rem;
    }
    
    .bubble-cta {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-bubble {
        width: 240px;
        right: -10px;
    }
    
    .bubble-arrow {
        right: 15px;
    }
    
    .bubble-content {
        padding: 12px;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .popup-content {
        padding: 1.5rem;
    }
    
    .popup-message .highlight {
        font-size: 1.2rem;
    }
    
    .popup-message .discount {
        font-size: 1.5rem;
    }
    
    .popup-buttons {
        flex-direction: column;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Resultados del formulario */
#result {
    margin-bottom: 20px;
}

.result {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    animation: slideIn 0.3s ease;
}

.result.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.result.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.result.loading {
    background: #e2e3e5;
    color: #383d41;
    border-left: 4px solid #6c757d;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--secondary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ======================================== */
/* ALERTAS MODERNAS PARA EL FORMULARIO      */
/* ======================================== */

#result {
    margin-bottom: 25px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 22px;
    border-radius: 16px;
    margin-bottom: 20px;
    animation: alertSlideIn 0.4s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
}

.alert-content ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.alert-content li {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Alerta de éxito */
.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 5px solid #10b981;
}

/* Alerta de error */
.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 5px solid #ef4444;
}

/* Animación de entrada */
@keyframes alertSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos adicionales para el formulario */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 0;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.checkbox-label a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Botón de envío mejorado */
.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Estado de carga */
.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}