* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============== NAVEGACIÓN ============== */
.navbar {
    background: linear-gradient(135deg, #1E90FF 0%, #4169E1 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(30, 144, 255, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideInLeft 0.6s ease-out;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    animation: slideInLeft 0.6s ease-out;
}

.logo span {
    display: flex;
    align-items: center;
}

.logo i {
    font-size: 2rem;
    animation: rotate 3s infinite;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
    border-radius: 5px;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu-toggle i {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    animation: slideInRight 0.6s ease-out;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0.3rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* estilo específico para el botón de iniciar sesión */
.nav-login-btn {
    background: white;
    color: #4169E1 !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
}

.nav-login-btn:hover {
    opacity: 0.9;
}

/* modal login overlay */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.login-modal.active { display: flex; }
.login-modal .modal-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    position: relative;
    animation: popin 0.3s ease-out;
}

@keyframes popin {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.login-modal .close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #444;
    transition: color 0.2s;
}
.login-modal .close-btn:hover { color: #000; }
.login-modal .modal-content h2 {
    margin-top: 0;
    color: #003D7A;
    text-align: center;
}
.login-modal input[type="email"],
.login-modal input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.login-modal .remember-label {
    display: block;
    font-size: 14px;
    margin-bottom: 20px;
}
.login-modal button {
    width: 100%;
    padding: 12px;
    background: #4169E1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.login-modal button:hover { background: #365ac9; }


.login-modal .modal-footer {
    text-align: center;
    margin-top: 15px;    
}

/* no additional styles needed for forgot modal, it inherits same rules */

    font-size: 14px;
}
.login-modal .modal-footer a {
    color: #4169E1;
    text-decoration: none;
    margin: 0 5px;
}
/* separator not needed when only one link */
.login-modal .modal-footer .separator {
    display: none;
}

/* ensure modal scrolls on small screens */
.login-modal .modal-content { max-height: 90vh; overflow-y: auto; }

/* icon spacing inside nav links */
.nav-links a i {
    margin-right: 0.3rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============== HERO SECTION ============== */
.hero {
    background: linear-gradient(135deg, #87CEEB 0%, #4169E1 100%);
    color: white;
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-bg-item.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    animation: fadeInUp 0.8s ease-out;
}

.hero-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

.hero-icon-img {
    height: 150px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 900;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem !important;
    opacity: 0.9;
}

.decoracion-hero {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
}

/* ============== SECCIÓN LICENCIAS ============== */
.licencias {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.licencias h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #333;
    animation: slideInDown 0.6s ease-out;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

/* Carrusel de Videos */
.carrusel-videos {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.15) 0%, rgba(30, 144, 255, 0.15) 100%);
    position: relative;
}

.carrusel-videos h2 {
    color: #1E90FF;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.carrusel-videos .section-subtitle {
    color: #333;
    margin-bottom: 3rem;
    font-weight: 500;
    text-align: center;
}

.carrusel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.carrusel-container {
    flex: 1;
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(30, 144, 255, 0.25);
}

.carrusel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin: 0;
    z-index: 1;
    animation: fadeIn 0.6s ease-in-out;
}

.carrusel-item.active {
    display: flex;
    z-index: 2;
}

.iframe-wrapper {
    width: 100%;
    height: calc(100% - 35px);
    position: relative;
    display: block;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.6rem;
    text-align: center;
    margin: 0;
    font-weight: 500;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.iframe-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E90FF 0%, #4169E1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-content {
    text-align: center;
    color: white;
}

.video-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: pulse 2s infinite;
}

.video-content p {
    font-size: 1rem;
    opacity: 0.9;
}

.video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 1rem;
    text-align: center;
    margin: 0;
    font-weight: 500;
}

.carrusel-btn {
    background: white;
    border: 2px solid #1E90FF;
    color: #1E90FF;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carrusel-btn:hover {
    background: #1E90FF;
    color: white;
    transform: scale(1.1);
}

.carrusel-btn.prev {
    order: -1;
}

.carrusel-dots {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(30, 144, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: #1E90FF;
    width: 30px;
    border-radius: 6px;
}

.dot:hover {
    border-color: #1E90FF;
}

.licencias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}


.licencia-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.licencia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E90FF, #4169E1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.licencia-card:hover::before {
    transform: scaleX(1);
}

.licencia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30, 144, 255, 0.2);
    border-color: #87CEEB;
}

.licencia-card.premium {
    transform: scale(1.05);
    border: 2px solid #FFD700;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.licencia-card.premium:hover {
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.licencia-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.licencia-card h3 {
    font-size: 2.2rem;
    color: #1E90FF;
    margin-bottom: 1rem;
    font-weight: bold;
}

.licencia-card p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.95rem;
}

.price {
    font-weight: bold;
    color: #4169E1;
    margin-top: 1rem !important;
    font-size: 1.1rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #1E90FF, #4169E1);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 600;
}

.link-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.3);
}

.link-btn:hover i {
    transform: translateX(3px);
}

/* ============== CARACTERÍSTICAS ============== */
.caracteristicas {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.caracteristicas h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #333;
    animation: slideInDown 0.6s ease-out;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-left: 5px solid #1E90FF;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 144, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.6s ease-out;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: bold;
}

.feature p {
    color: #666;
    line-height: 1.8;
}

/* ============== ESTADÍSTICAS ============== */
.estadisticas {
    background: linear-gradient(90deg, #1E90FF 0%, #4169E1 100%);
    color: white;
    padding: 4rem 2rem;
}

.estadisticas .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    animation: countUp 2s ease-out;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============== ¿QUÉ ESPERAS? ============== */
.que-esperas {
    background: linear-gradient(135deg, #1E90FF 0%, #4169E1 100%);
    color: white;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.que-esperas::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.que-esperas h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.6s ease-out;
    position: relative;
    z-index: 1;
}

.que-esperas .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
}

.esperas-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.espera-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.espera-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.espera-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.espera-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.espera-item p {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.6;
}

.esperas-action {
    text-align: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.esperas-action .btn-whatsapp {
    animation: whatsappPulse 2s infinite;
}

.action-text {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 600;
}

/* ============== CONTACTO ============== */
.contacto {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ADD8E6 0%, #1E90FF 100%);
    color: white;
}

.contacto h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.6s ease-out;
}

.contacto-whatsapp-main {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0 4rem 0;
}

.whatsapp-main-card {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2) 0%, rgba(18, 140, 126, 0.2) 100%);
    border: 3px solid rgba(37, 211, 102, 0.6);
    padding: 3rem 2.5rem;
    border-radius: 25px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.whatsapp-main-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.2) 0%, transparent 70%);
    animation: floatGradient 6s ease-in-out infinite;
}

.whatsapp-main-card > * {
    position: relative;
    z-index: 1;
}

.whatsapp-icon-large {
    font-size: 5rem;
    color: #25D366;
    margin-bottom: 1.5rem;
    display: block;
    animation: whatsappFloat 3s ease-in-out infinite;
}

.whatsapp-icon-large i {
    animation: whatsappBounce 1.5s ease-in-out infinite;
}

.whatsapp-main-card h3 {
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.whatsapp-number {
    font-size: 1.8rem;
    color: #25D366;
    font-weight: bold;
    margin: 1rem 0 !important;
    letter-spacing: 0.5px;
}

.whatsapp-message {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem !important;
    font-style: italic;
}

.whatsapp-main-card .btn-whatsapp {
    margin-top: 2rem;
    padding: 1.2rem 3rem;
    font-size: 1.15rem;
}

.whatsapp-main-card:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.3) 0%, rgba(18, 140, 126, 0.3) 100%);
    border-color: rgba(37, 211, 102, 0.9);
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.4);
    transform: translateY(-5px);
}

/* Otros Métodos de Contacto */
.otros-contactos {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.otros-contactos-title {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-style: italic;
}

.contacto-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contacto-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.contacto-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Tarjeta WhatsApp Especial */
.whatsapp-card {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2) 0%, rgba(18, 140, 126, 0.2) 100%);
    border: 2px solid rgba(37, 211, 102, 0.5);
    position: relative;
    overflow: hidden;
}

.whatsapp-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.3) 0%, transparent 70%);
    animation: floatGradient 6s ease-in-out infinite;
    z-index: 0;
}

.whatsapp-card > * {
    position: relative;
    z-index: 1;
}

.whatsapp-card:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.3) 0%, rgba(18, 140, 126, 0.3) 100%);
    border-color: rgba(37, 211, 102, 0.8);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.3);
    transform: translateY(-8px) scale(1.02);
}

.whatsapp-badge {
    display: inline-block;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    animation: badgePulse 2s ease-in-out infinite;
}

.whatsapp-card .card-icon {
    font-size: 3.5rem;
}

.whatsapp-card h3 {
    color: #25D366;
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 0 !important;
}

.whatsapp-card p {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.response-time {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    margin-top: 0.8rem !important;
    animation: fadeInOut 2s ease-in-out infinite;
}

.btn-large-contact {
    padding: 1rem 2rem !important;
    font-size: 1.05rem !important;
    margin-top: 1.5rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
    transition: all 0.3s;
}

.btn-large-contact:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6) !important;
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 99;
    animation: whatsappFloat 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    animation: whatsappBounce 1.5s ease-in-out infinite;
}

.whatsapp-float-label {
    position: absolute;
    background: rgba(37, 211, 102, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    left: -100px;
    opacity: 0;
    transition: all 0.3s;
    font-weight: bold;
}

.whatsapp-float:hover .whatsapp-float-label {
    opacity: 1;
    left: -120px;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contacto-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contacto-card p {
    margin: 0.5rem 0;
    font-size: 1rem;
    opacity: 0.95;
}

.domingos {
    font-size: 0.85rem;
    opacity: 0.8;
}

.btn-contact {
    margin-top: 1.5rem;
    background: white;
    color: #1E90FF;
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
}

.btn-contact i {
    font-size: 1rem;
    transition: transform 0.3s;
}

.btn-contact:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Estilos para Iconos Sociales Mejorados */
.card-icon-social {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: white;
}

.card-icon-social:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Facebook */
.facebook-icon {
    background: linear-gradient(135deg, #1877F2 0%, #0A66C2 100%);
}

.facebook-icon:hover {
    box-shadow: 0 12px 30px rgba(24, 119, 242, 0.4);
}

.btn-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0A66C2 100%);
    color: white !important;
}

.btn-facebook:hover {
    background: linear-gradient(135deg, #0A66C2 0%, #055099 100%);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

/* Instagram */
.instagram-icon {
    background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
}

.instagram-icon:hover {
    box-shadow: 0 12px 30px rgba(245, 133, 41, 0.4);
}

.btn-instagram {
    background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
    color: white !important;
}

.btn-instagram:hover {
    background: linear-gradient(135deg, #E67E22 0%, #C1285B 50%, #6B2B8F 100%);
    box-shadow: 0 5px 15px rgba(245, 133, 41, 0.3);
}

.btn-contact:hover i {
    transform: scale(1.2);
}

/* Botón WhatsApp */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s;
    border-radius: 30px;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:hover::before {
    left: 100%;
}

.btn-whatsapp i {
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.btn-whatsapp:hover i {
    transform: scale(1.2) rotate(10deg);
}

.btn-whatsapp-contact {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp-contact:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-contact i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.btn-whatsapp-contact:hover i {
    transform: scale(1.15);
}

/* ============== BOTONES ============== */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
}

.btn i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #1E90FF 0%, #4169E1 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.5);
}

.btn-primary:hover i {
    transform: scale(1.2);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* ============== BANNER FINAL ============== */
.banner-final {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.banner-final h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.6s ease-out;
}

.banner-final p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============== FOOTER ============== */
.footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-top: 3px solid #1E90FF;
}

.footer-subtitle {
    margin-top: 0.5rem;
    opacity: 0.8;
    font-size: 0.95rem;
}

/* ============== ANIMACIONES ============== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes whatsappFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes whatsappBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes floatGradient {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -20px);
    }
    50% {
        transform: translate(0, -30px);
    }
    75% {
        transform: translate(-20px, -20px);
    }
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1E90FF 0%, #4169E1 100%);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        padding: 1rem 2rem;
        display: block;
        text-align: left;
        justify-content: flex-start;
        min-height: auto;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo-img {
        height: 45px;
    }

    .logo i {
        font-size: 1.6rem;
    }

    .hero {
        padding: 3rem 1.5rem;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .hero-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .hero-icon-img {
        height: 120px;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem !important;
    }

    .hero .btn {
        padding: 0.85rem 2rem;
        font-size: 0.95rem;
    }

    .carrusel-videos {
        padding: 3rem 1.5rem;
    }

    .carrusel-videos h2 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .carrusel-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .carrusel-container {
        height: 300px;
        min-height: 300px;
        border-radius: 15px;
        position: relative;
        background: #000;
        width: 100%;
        overflow: hidden;
        display: block;
    }

    .carrusel-item {
        position: absolute;
        width: 100%;
        height: 100%;
        display: none !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 0;
        margin: 0;
        z-index: 1;
        top: 0;
        left: 0;
    }

    .carrusel-item.active {
        display: flex !important;
        z-index: 2;
    }

    .carrusel-item iframe {
        display: block;
        width: 100%;
        height: 100%;
    }

    .iframe-wrapper {
        width: 100%;
        height: calc(100% - 35px);
        position: relative;
        display: block;
        overflow: hidden;
    }

    .iframe-wrapper video {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        display: block !important;
        background: #000;
    }

    .carrusel-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .video-content i {
        font-size: 3rem;
    }

    .video-content p {
        font-size: 0.9rem;
    }

    .carrusel-dots {
        margin-top: 1.5rem;
    }

    .licencias,
    .caracteristicas,
    .que-esperas,
    .contacto {
        padding: 3rem 1.5rem;
    }

    .licencias h2,
    .caracteristicas h2,
    .que-esperas h2,
    .contacto h2,
    .banner-final h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .licencias-grid,
    .features-grid,
    .esperas-content,
    .contacto-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .whatsapp-main-card {
        padding: 2.5rem 2rem;
        border-radius: 20px;
    }

    .whatsapp-icon-large {
        font-size: 4rem;
    }

    .whatsapp-main-card h3 {
        font-size: 1.8rem;
    }

    .whatsapp-number {
        font-size: 1.5rem;
    }

    .whatsapp-message {
        font-size: 1rem;
    }

    .whatsapp-main-card .btn-whatsapp {
        padding: 1rem 2.5rem;
        font-size: 1.05rem;
    }

    .otros-contactos {
        margin-top: 2.5rem;
        padding-top: 2.5rem;
    }

    .otros-contactos-title {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .licencia-card,
    .feature,
    .espera-item,
    .contacto-card {
        padding: 1.5rem;
    }

    .licencia-card h3 {
        font-size: 1.8rem;
    }

    .licencia-card p {
        font-size: 0.9rem;
    }

    .licencia-icon {
        font-size: 3rem;
    }

    .feature h3 {
        font-size: 1.15rem;
    }

    .feature p {
        font-size: 0.9rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .espera-item h3 {
        font-size: 1.15rem;
    }

    .espera-item p {
        font-size: 0.9rem;
    }

    .espera-icon {
        font-size: 2.5rem;
    }

    .esperas-action {
        padding: 1.8rem;
    }

    .action-text {
        font-size: 1.15rem;
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
        gap: 0.6rem;
    }

    .btn i {
        font-size: 1rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }

    .link-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-contact,
    .btn-whatsapp-contact {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .banner-final {
        padding: 2.5rem 1.5rem;
    }

    .banner-final h2 {
        font-size: 1.7rem;
    }

    .banner-final p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .licencia-card.premium {
        transform: scale(1);
    }

    .footer {
        padding: 2rem 1.5rem;
    }

    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 25px;
        right: 25px;
    }

    .whatsapp-float-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .navbar .container {
        padding: 0 10px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.1rem;
        flex: 1;
        word-break: break-word;
    }

    .logo-img {
        height: 40px;
    }

    .logo i {
        font-size: 1.3rem;
    }

    .menu-toggle {
        padding: 0.4rem;
        font-size: 1.3rem;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.8rem 0;
    }

    .nav-links a {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
        min-height: auto;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .nav-links a {
        padding: 0.4rem 0.6rem;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .hero-bg-item {
        background-attachment: scroll !important;
    }

    .hero-content h1 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .hero-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-icon-img {
        height: 100px;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem !important;
    }

    .hero .btn {
        padding: 0.75rem 1.6rem;
        font-size: 0.85rem;
    }

    .hero .btn i {
        font-size: 0.9rem;
    }

    .carrusel-videos {
        padding: 2rem 1rem;
    }

    .carrusel-videos h2 {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .carrusel-wrapper {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        min-width: 0;
    }

    .carrusel-container {
        height: 250px;
        min-height: 250px;
        border-radius: 12px;
        position: relative;
        width: 100%;
        background: #000;
        flex: none;
        overflow: hidden;
        display: block;
    }

    .carrusel-item {
        position: absolute;
        width: 100%;
        height: 100%;
        display: none !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 0;
        margin: 0;
        z-index: 1;
        top: 0;
        left: 0;
    }

    .carrusel-item.active {
        display: flex !important;
        z-index: 2;
    }

    .iframe-wrapper {
        width: 100%;
        height: calc(100% - 40px);
        position: relative;
        display: block;
        overflow: hidden;
    }

    .iframe-wrapper video {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        display: block !important;
        background: #000;
    }

    .carrusel-item iframe {
        display: block;
        width: 100%;
        height: 100%;
    }

    .carrusel-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .video-content i {
        font-size: 2.5rem;
    }

    .video-content p {
        font-size: 0.85rem;
    }

    .video-title {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .carrusel-dots {
        margin-top: 1rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 24px;
    }

    .iframe-wrapper {
        display: block;
        width: 100%;
        height: 100%;
    }

    .iframe-wrapper video {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        display: block !important;
    }

    .licencias,
    .caracteristicas,
    .que-esperas,
    .contacto,
    .banner-final {
        padding: 2rem 1rem;
    }

    .licencias h2,
    .caracteristicas h2,
    .que-esperas h2,
    .contacto h2,
    .banner-final h2 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .licencias-grid,
    .features-grid,
    .esperas-content,
    .contacto-content {
        gap: 1.2rem;
    }

    .licencia-card,
    .feature,
    .espera-item,
    .contacto-card {
        padding: 1.2rem;
    }

    .licencia-card h3 {
        font-size: 1.5rem;
    }

    .licencia-card p {
        font-size: 0.85rem;
    }

    .licencia-icon {
        font-size: 2.5rem;
    }

    .feature h3 {
        font-size: 1rem;
    }

    .feature p {
        font-size: 0.85rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .espera-item h3 {
        font-size: 1rem;
    }

    .espera-item p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .espera-icon {
        font-size: 2rem;
    }

    .esperas-action {
        padding: 1.5rem 1rem;
    }

    .action-text {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .btn i {
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 0.85rem 1.8rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .link-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .btn-contact,
    .btn-whatsapp-contact {
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .btn-contact i,
    .btn-whatsapp-contact i {
        font-size: 0.95rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .whatsapp-main-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .whatsapp-icon-large {
        font-size: 3.5rem;
    }

    .whatsapp-main-card h3 {
        font-size: 1.6rem;
    }

    .whatsapp-number {
        font-size: 1.3rem;
    }

    .whatsapp-message {
        font-size: 0.95rem;
    }

    .whatsapp-main-card .btn-whatsapp {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .domingos {
        font-size: 0.8rem;
    }

    .otros-contactos {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .otros-contactos-title {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .contacto-card {
        padding: 1.2rem;
    }

    .contacto-card h3 {
        font-size: 0.95rem;
    }

    .contacto-card p {
        font-size: 0.8rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .banner-final h2 {
        font-size: 1.3rem;
    }

    .banner-final p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .footer {
        padding: 1.5rem 1rem;
        font-size: 0.8rem;
    }

    .footer-subtitle {
        font-size: 0.8rem;
    }

    .que-esperas::before {
        width: 250px;
        height: 250px;
    }

    .btn-large-contact {
        padding: 0.9rem 1.8rem !important;
        font-size: 0.95rem !important;   
    }
}

/* ===================== Chatbot ===================== */
.chatbot-toggle {
    position: fixed;
    bottom: 100px;
    right: 10px;
    background: #1e90ff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 50001;
    transition: background 0.3s;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    min-height: auto;
    flex-wrap: nowrap;
}
.chatbot-toggle:hover {
    background: #4169e1;
}
.chatbot-toggle-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    display: block;
    flex-shrink: 0;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}
.chatbot-toggle-label {
    font-size: 0.8rem;
    display: inline-block;
    flex-shrink: 0;
}

/* animación de apertura leve */
.chatbot-container {
    position: fixed;
    bottom: 210px;
    right: 10px;
    width: 380px;
    height: auto;
    max-height: 520px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
    z-index: 50000;
}
.chatbot-container.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chatbot-header {
    background: #1e90ff;
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    min-height: 50px;
}
.chatbot-header-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}
.chatbot-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
}

.chatbot-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f9f9f9;
}
.chatbot-messages .message {
    margin-bottom: 10px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.chatbot-messages .message.visible {
    opacity: 1;
    transform: translateY(0);
}
.chatbot-messages .message.user {
    text-align: right;
}
.chatbot-messages .message.user .bubble {
    background: #1e90ff;
    color: white;
}
.chatbot-messages .message.bot .bubble {
    background: #e0e0e0;
    color: #333;
}
.chatbot-messages .bubble {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
}

.chatbot-input {
    display: flex;
    border-top: 1px solid #ddd;
}
.chatbot-input input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 1rem;
}
.chatbot-input button {
    background: #1e90ff;
    border: none;
    color: white;
    padding: 0 15px;
    cursor: pointer;
    font-size: 1.1rem;
}
.chatbot-input button:hover {
    background: #4169e1;
}

/* quick replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    align-items: center;
}
.quick-replies .qr-button{
    background: #1e90ff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 14px;
    margin: 4px 4px 4px 0;
}
.quick-replies .qr-button:hover{
    opacity: 0.95;
}

/* botón de enlace a WhatsApp dentro del chat */
.wa-button {
    display:inline-block;
    background:#25D366;
    color:white;
    text-decoration:none;
    padding:8px 12px;
    border-radius:18px;
    font-size:14px;
    font-weight:600;
}
.wa-button:hover { opacity:0.9; }

