﻿:root {
    /* --- PALETA MARCA (Navy & Orange) --- */
    --color-primary: #025b74;
    /* Deep Navy Blue */
    --color-primary-light: #162a4d;
    --color-primary-dark: #050e1f;
    --color-action: #E87404;
    /* Vibrant Orange */
    --color-action-hover: #c25e00;
    --color-action-fade: rgba(232, 116, 4, 0.15);
    --color-bg: #FFFFFF;
    --color-surface-alt: #F4F7FA;
    /* Light Blue/Gray */
    --color-surface: #FFFFFF;
    --color-text: #334155;
    --color-text-dark: #0b1e3b;
    /* Primary mostly */
    --color-text-muted: #64748b;
    --color-text-light: #ffffff;
    --border-color: #e2e8f0;
    /* --- RADIO DE BORDE --- */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-btn: 12px;
    /* --- SOMBRAS --- */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* --- TRANSICIONES --- */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-dark);
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* --- NAVBAR --- */
.navbar-brand img {
    height: 52px;
    width: auto;
    transition: transform 0.2s ease;
}

    .navbar-brand img:hover {
        transform: scale(1.08);
    }

.navbar-light {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid var(--border-color) !important;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-dark) !important;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* --- HERO SECTION --- */
/* --- HERO SECTION --- */
.hero {
    background: var(--color-primary);
    background: linear-gradient(180deg, var(--color-primary) 0%, #0f254a 100%);
    border-radius: var(--border-radius-lg);
    color: var(--color-text-light);
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: var(--shadow-xl);
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-text-light);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease forwards 0.2s;
    opacity: 0;
}

.hero h2 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #cbd5e1;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease forwards 0.4s;
    opacity: 0;
}

.hero p {
    color: #94a3b8;
}

/* --- BOTONES --- */
.btn-webz {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-action);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-btn);
    padding: 0.5rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(232, 116, 4, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-webz:hover {
    background: var(--color-action-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(232, 116, 4, 0.4);
    color: #ffffff;
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    border-radius: var(--border-radius-btn);
    padding: 0.5rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

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


/* --- SECCIONES --- */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-light {
    background-color: var(--color-surface-alt) !important;
}

.border-radius-20 {
    border-radius: var(--border-radius-lg);
}

/* --- TARJETAS & ICONOS --- */
.webz-color {
    color: var(--color-action);
    /* Iconos naranjas */
}

.display-5 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* --- PLANES --- */
.plan-card,
.best-plan-card {
    background: var(--color-surface);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    /* Sombra sutil */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.best-plan-card {
    border: 2px solid var(--color-primary);
    /* Borde primario para destacar */
}

.best-plan-card::before {
    content: "POPULAR";
    position: absolute;
    top: 20px;
    right: -32px;
    background: var(--color-action);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 40px;
    transform: rotate(45deg);
    z-index: 10;
}

.plan-card h3,
.best-plan-card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-card-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    /* Precio Azul */
}

.plan-card-mes {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.list-unstyled li {
    margin-bottom: 0.5rem;
    color: var(--color-text);
    position: relative;
    padding-left: 1.5rem;
}

/* Bullet points check style removed - using Bootstrap Icons instead */

.li-titulo {
    color: var(--color-primary) !important;
    /* Títulos de lista en azul */
    font-weight: 700;
    margin-top: 1rem;
    padding-left: 0 !important;
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-surface);
    /* Fondo claro en general, item blanco */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    /* Títulos preguntas azul */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--color-action);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--color-text-muted);
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 500px;
}

/* --- FOOTER --- */
.footer-section {
    background-color: var(--color-primary);
    color: #94a3b8;
    padding: 5rem 0 2rem;
    margin-top: 0;
}

.footer-quote {
    font-size: 1.1rem !important;
    font-style: normal !important;
    color: #cbd5e1;
    font-weight: 400;
    line-height: 1.6;
}

.footer-links li {
    margin-bottom: 0.75rem;
    padding-left: 0rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-action);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--color-action);
    color: white;
    transform: translateY(-3px);
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- BOTÓN WHATSAPP FLOTANTE --- */
.btn-whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #25D366;
    /* WhatsApp Brand Color kept for strict WA button */
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: transform 0.3s;
}

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

/* --- FORMULARIO --- */
.form-control:focus {
    border-color: var(--color-action);
    box-shadow: 0 0 0 4px var(--color-action-fade);
}

/* --- BOTÓN WHATSAPP FLOTANTE & CONTACTO --- */
.btn-whatsapp {
    background-color: #25D366 !important;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.4);
    color: white !important;
    border-radius: var(--border-radius-btn);
    padding: 0.5rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .btn-whatsapp-float:hover {
        background: #128C7E;
        color: white;
        transform: scale(1.1) rotate(10deg);
    }

.btn-whatsapp-float.hide-on-contact {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

/* --- QR WhatsApp --- */
.qr-whatsapp-container {
    margin-top: 2rem;
}

.qr-whatsapp {
    max-width: 160px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
}

/* --- UTILIDADES --- */
.emphasis-color {
    color: var(--color-primary) !important;
}

/* --- CHAT CONTACT SECTION --- */
.chat-window {
    max-width: 500px;
    margin: 0 auto;
    background: #f0f2f5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.chat-header {
    background: #075e54;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar-wrapper {
    position: relative;
    width: 45px;
    height: 45px;
}

.chat-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #25D366;
    border: 2px solid #075e54;
    border-radius: 50%;
}

.pulse-online {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    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);
    }
}

.chat-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    /* Classic WA Bg */
    background-repeat: repeat;
}

.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(10px);
}

.bubble-bot {
    align-self: flex-start;
    background: white;
    color: var(--color-text);
    border-top-left-radius: 0px;
}

.bubble-bot::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 10px solid white;
    border-left: 10px solid transparent;
}

.chat-bubble.show {
    animation: bubbleIn 0.4s ease forwards;
}

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

.chat-options {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
}

.chat-options.show {
    animation: fadeIn 0.5s ease forwards;
}

.reply-btn {
    text-align: left;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reply-btn:hover {
    background: #f8fafc;
    transform: translateX(5px);
    border-color: var(--color-action);
    color: var(--color-action);
}

.btn-presencia {
    border-left: 4px solid #3b82f6;
}

.btn-gestionado {
    border-left: 4px solid #22c55e;
}

.btn-duda {
    border-left: 4px solid #94a3b8;
}

/* --- SMART QR BRIDGE --- */
.qr-bridge-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.qr-bridge-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.qr-bridge-card {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
}

.qr-bridge-overlay.show .qr-bridge-card {
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.qr-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.qr-close:hover {
    color: var(--color-text);
}

.qr-tech-frame {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 20px auto;
    padding: 15px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

/* Corner Accents */
.qr-tech-frame::before,
.qr-tech-frame::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid white;
}

.qr-tech-frame::before {
    top: -5px;
    left: -5px;
    border-right: 0;
    border-bottom: 0;
    border-radius: 12px 0 0 0;
}

.qr-tech-frame::after {
    bottom: -5px;
    right: -5px;
    border-left: 0;
    border-top: 0;
    border-radius: 0 0 12px 0;
}

.qr-container {
    background: white;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.qr-img {
    width: 100%;
    height: 100%;
    padding: 10px;
}

.qr-center-logo {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.qr-center-logo i {
    color: #25D366;
    font-size: 24px;
}

.bridge-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.btn-web-whatsapp {
    background: #25D366;
    color: white !important;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    transition: all 0.3s;
    border: none;
    width: 100%;
}

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

.texto-blanco {
    color: #ffffff !important;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
        margin-top: 1rem;
        border-radius: var(--border-radius-lg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

.footer-webz {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #0f254a;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

    .footer-webz a {
        color: rgba(255, 255, 255, 0.6);
        transition: var(--transicion);
    }