/* ==========================================================================
   LOGAN WEB SOLUTIONS - MINIMALIST & SOPHISTICATED SAAS THEME
   ========================================================================== */

/* Variables del sistema */
:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-subtle: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --accent-light: rgba(2, 132, 199, 0.08);
    
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-medium: rgba(148, 163, 184, 0.35);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
}

/* Reset básico */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Layout general */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

/* Header / Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    position: relative; 
    z-index: 1000; 
    padding-top: 40px;
    padding-bottom: 50px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem; 
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-xs);
}

.brand-symbol {
    width: 24px;      
    height: 24px;     
    object-fit: contain;
    margin-left: 2px;
    opacity: 0.85;
}

/* Elementos internos con animación de luz */
.brand-logo,
.brand-symbol {
    transition: all 0.25s ease;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* HOVER: Elevación suave y destello de neón en el símbolo */
.brand:hover {
    transform: translateY(-1px);
}

.brand:hover .brand-logo {
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
    border-color: rgba(56, 189, 248, 0.5);
}

.brand:hover .brand-symbol {
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
    opacity: 1;
}

/* CLICK (ACTIVE): Compresión táctil con impulso luminoso */
.brand:active {
    transform: scale(0.96); /* Sensación de presión futurista */
}

.brand:active .brand-logo {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
    background: rgba(56, 189, 248, 0.15);
}

.brand:active .brand-name {
    color: #38bdf8; /* Breve destello en el nombre principal */
}

/* Elimina las líneas rojas y subrayados nativos */
.brand,
.brand:visited,
.brand:hover,
.brand:focus,
.brand:active,
.brand * {
    text-decoration: none !important;
    outline: none !important;
    color: inherit;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.nav-toggle-btn {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    padding: 0.4rem 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.04);
}

.nav-links a.active {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-primary);
    font-weight: 600;
}

/* Dropdown y botón de tres puntos admin */
.nav-admin-menu {
    position: relative;
    margin-left: 0.25rem;
}

.icon-button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.35rem 0.55rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.icon-button:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-primary);
}

/* .admin-menu-dropdown {
    position: absolute;
    right: 0;
    top: 120%;
    min-width: 170px;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem 0;
    display: none;
    z-index: 1000;
}

.admin-menu-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.admin-menu-dropdown a:hover {
    background: var(--bg-main);
} */

/* ==========================================================================
   CORRECCIÓN: SUBMENÚ DESPLEGABLE DE ADMINISTRADOR / SESIÓN
   ========================================================================== */

/* Fondo oscuro que combina con el Header */
.admin-menu-dropdown {
    position: absolute;
    right: 0;
    top: 120%;
    min-width: 170px;
    padding: 0.4rem 0;
    display: none;
    z-index: 1000;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.45) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.35rem 0 !important;
    overflow: hidden;
}

/* Texto de las opciones ("Panel Admin" / "Cerrar Sesión") */
.admin-menu-dropdown a {
    display: block;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    color: #cbd5e1 !important; /* Gris claro legible sobre fondo oscuro */
    font-weight: 500 !important;
    padding: 0.6rem 1.1rem !important;
    transition: all 0.15s ease !important;
}

/* Estado Hover al pasar el ratón */
.admin-menu-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important; /* Texto blanco puro */
}

/* Desactiva la línea animada dentro del menú desplegable */
.admin-menu-dropdown a::after {
    display: none !important;
}

.nav-admin-menu.open .admin-menu-dropdown {
    display: block;
}


/* Botones */
.btn {
    border-radius: var(--radius-md);
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.18s ease;
}

.btn-primary {
    background: #0f172a;
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #1e293b;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.btn-ghost:hover {
    border-color: var(--text-primary);
    background: rgba(15, 23, 42, 0.02);
    transform: translateY(-1px);
}

.btn-demo {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--radius-sm);
    padding: 6px 14px !important;
    font-size: 0.72rem !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-demo:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.5);
}

.btn-small {
    border-radius: var(--radius-sm) !important;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    box-shadow: var(--shadow-xs);
}

.btn-small:hover {
    background: #1e293b;
    color: #ffffff !important;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.user-session {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

/* HERO SECTION ------------------------------------------------------ */
.hero {
    padding: 3rem 0 3.5rem;
    /* background: transparent; */
    flex: 1 0 auto;
    background: linear-gradient(180deg, #dfe5eb 0%, #e2e8f0 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}

.hero-left h1 {
    font-size: clamp(2.2rem, 3.2vw + 1rem, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.highlight {
    color: var(--accent);
    background: linear-gradient(120deg, #0284c7, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 33rem;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-medium);
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-xs);
}

.pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}


 .hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.6rem;
}

.hero-meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.8);
    background: rgba(15, 23, 42, 0.95);
    font-size: 0.72rem;
    color: #e0f2fe;
    width: fit-content;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
}

.hero-meta-text {
    font-size: 0.825rem;
    /*color: var(--text-muted);*/
    color: #64748b;
}

/* Tarjeta Dashboard Hero */
.hero-right {
    display: flex;
    justify-content: center;
}

.card-dashboard {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.card-body {
    padding: 1.2rem;
}

.card-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-stats-row .stat {
    flex: 1;
    background: var(--bg-main);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.2rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.stat-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.stat-tag.positive {
    color: #16a34a;
    font-weight: 600;
}

.card-chart,
.card-chart-soft {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 90px;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-main);
}

.card-chart .bar,
.card-chart-soft .bar {
    flex: 1;
    border-radius: 4px 4px 2px 2px;
    height: var(--h, 50%);
    background: #0f172a;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.card-chart .bar:hover {
    opacity: 1;
    background: var(--accent);
}

.card-footer {
    font-size: 0.78rem;
    padding: 0.85rem 1.2rem;
    background: var(--bg-main);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

/* SECCIONES Y TARJETAS ------------------------------------------------------ */
.section-home {
    padding: 3rem 0;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.85rem; /* Espacio para el indicador lateral */
    color: var(--text-primary);
}

/* Indicador vertical tipo "píldora" a la izquierda del título */
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 4px;
    background: linear-gradient(180deg, #0284c7 0%, #38bdf8 100%);
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.4);
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 38rem;
}

/* 3. MEJORA EN SUBTÍTULOS (.page-subtitle / .section-subtitle) */
.page-subtitle,
.section-subtitle {
    border-left: 2px solid var(--border-subtle);
    padding-left: 0.75rem;
}

/* Secciones de Inicio */
.section-benefits {
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* .section-demo {
    background: var(--bg-main);
} */

.section-demo {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* Grids */
.benefits-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

/* Tarjetas Genéricas */
.benefit-card,
.service-card,
.pricing-card,
.contact-form-card,
.auth-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.benefit-card:hover,
.service-card:hover,
.pricing-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(15, 23, 42, 0.15);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    margin-bottom: 1rem;
}

.benefit-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

.benefit-card h3,
.service-card h2,
.pricing-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.benefit-card p,
.service-card p,
.pricing-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.benefit-card ul,
.service-card ul,
.pricing-list {
    list-style: none;
    font-size: 0.825rem;
    color: var(--text-muted);
}

.benefit-card ul li + li,
.service-card ul li + li,
.pricing-list li + li {
    margin-top: 0.4rem;
}

.benefit-card ul li::before,
.service-card ul li::before {
    content: "• ";
    color: var(--accent);
    font-weight: bold;
}

.pricing-list li::before {
    content: "✓ ";
    color: #16a34a;
    font-weight: bold;
}

.pricing-list.no-incluye li::before {
    content: "✕ ";
    color: #dc2626;
}

/* Precios */
.pricing-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.pricing-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 1.5rem;
}

.pricing-note {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Demo Section */
.demo-card {
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.demo-list {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.8rem;
}

.demo-list li + li {
    margin-top: 0.3rem;
}

.demo-mini-card {
    border-radius: var(--radius-md);
    padding: 1.2rem;
    background: #0f172a;
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.demo-mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.8rem;
}

.demo-mini-badge {
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.7rem;
}

.demo-mini-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.demo-kpi-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.demo-kpi-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.demo-kpi-tag.positive {
    color: #4ade80;
}

.demo-mini-chart {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.demo-mini-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--accent);
}

/* Formularios */
.contact-layout,
.auth-container {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: flex-start;
}

.contact-form,
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-form label,
.form-group label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.form-group input {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-medium);
    background: #ffffff;
    color: var(--text-primary);
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.contact-submit,
.auth-submit {
    margin-top: 0.5rem;
    width: 100%;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
    font-size: 0.825rem;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.95);
}

.site-footer .social-links {
    margin-top: 0.5rem;
}

.site-footer .social-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.site-footer .social-icon:hover {
    opacity: 1;
}

/* Flash Messages */
.flash-container {
    margin-top: 1rem;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.flash-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.flash-danger,
.flash-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Selector ES / EN */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.language-switcher a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.language-switcher a:hover {
    color: var(--text-primary);
}

.language-switcher .active-lang {
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.06);
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP - STYLE SAAS MINIMALIST
   ========================================================================== */

.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    z-index: 2500;
    
    /* Fondo oscuro elegante con borde sutil */
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icono SVG dentro del botón */
.wa-float__icon-svg {
    width: 24px;
    height: 24px;
    fill: #25d366; /* Verde oficial WhatsApp limpio */
    transition: transform 0.25s ease, fill 0.25s ease;
}

/* Hover con resplandor suave y degradado plateado */
.wa-float:hover {
    transform: translateY(-3px);
    background: #1e293b;
    border-color: #25d366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.25), 0 8px 20px rgba(15, 23, 42, 0.4);
}

.wa-float:hover .wa-float__icon-svg {
    transform: scale(1.1);
    fill: #ffffff;
}

/* Tooltip elegante */
.wa-tooltip {
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.wa-tooltip::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: #0f172a;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wa-float:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   ESTILOS PARA PÁGINAS INTERNAS (Servicios, Precios, Contacto, Pagos, Auth)
   ========================================================================== */

/* Encabezados y Secciones Generales */
.page-section {
    padding: 3.5rem 0 4.5rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    /* Texto con degradado suave técnico */
    background: linear-gradient(135deg, #0f172a 35%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem !important;
}

/* Línea decorativa inferior bajo el título principal */
.page-title::after {
    content: "";
    display: block;
    width: 78px;
    height: 3px;
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
    border-radius: 999px;
    margin-top: 0.45rem;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}


.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* --- SERVICIOS --- */
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
}

.service-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.service-card ul {
    margin-bottom: 1rem;
}

.service-card img {
    margin-top: auto;
    height: 100px;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-card:hover img {
    opacity: 1;
    transform: scale(1.03);
}

/* --- PRECIOS --- */
.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-desc strong {
    color: var(--text-primary);
}

.pricing-btn-wrapper .btn {
    min-width: 220px;
}

/* --- CONTACTO Y PAGOS --- */
.contact-list {
    list-style: none;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.contact-list li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--border-subtle);
}

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

.contact-list strong {
    color: var(--text-primary);
}

.contact-note {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.5;
    background: var(--bg-card-subtle);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

/* --- LOGIN Y CLIENTES --- */
.auth-benefits {
    list-style: none;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 1.25rem 0;
}

.auth-benefits li + li {
    margin-top: 0.4rem;
}

.auth-card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.auth-demo-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.auth-demo-hint a,
.auth-help-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-demo-hint a:hover,
.auth-help-text a:hover {
    text-decoration: underline;
}

.auth-help-text {
    margin-top: 0.85rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   FIX: ALINEACIÓN Y ESTRUCTURA DE FORMULARIO DE LOGIN (.form-group)
   ========================================================================== */

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    width: 100%;
}

.form-group label {
    display: block;
    width: 100%;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-medium);
    background: #ffffff;
    color: var(--text-primary);
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* ==========================================================================
   MENÚ Y HEADER OSCURO DE ALTO CONTRASTE
   ========================================================================== */

.site-header {
    background: rgba(15, 23, 42, 0.95); /* Color de fondo oscuro slate */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Marca y textos del Logo */
.brand-name {
    color: #f8fafc;
}

.brand-tagline {
    color: #94a3b8;
}

.brand-logo {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Enlaces del menú navegación */
.nav-links a {
    color: #cbd5e1;
    position: relative;
    overflow: hidden;
}

/* Línea base oculta a la izquierda (excluye botones como 'Login Clientes') */
.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #38bdf8; /* Azul celeste brillante de acento */
    border-radius: 999px;
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   DESTELLO AZUL EN ENLACES DEL MENÚ AL HACER CLIC
   ========================================================================== */

/* Aplica a los enlaces normales del menú (excluyendo botones si los hay) */
.nav-links a:not(.btn):active {
    color: #38bdf8 !important; /* Destello azul cian brillante */
    transform: scale(0.96);    /* Micro-comprensión táctil al presionar */
    transition: all 0.1s ease;
}


/* Extiende la línea de izquierda a derecha en Hover y cuando está Activo */
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
    width: 100%;
}

/* Botón "Login Clientes" (resaltado claro para contrastar) */
.nav-links .btn-small {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 600;
    border: none;
}

.nav-links .btn-small:hover {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
}

/* Selector de Idioma (ES | EN) */
.language-switcher {
    color: #64748b;
}

.language-switcher a {
    color: #94a3b8;
}

.language-switcher a:hover {
    color: #ffffff;
}

.language-switcher .active-lang {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

/* Menú de administración (3 puntos) */
.icon-button {
    color: #cbd5e1;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Hamburguesa en versión móvil */
.nav-toggle-btn span,
.nav-toggle-btn span::before,
.nav-toggle-btn span::after {
    background: #ffffff;
}

/* ==========================================================================
   EFECTO FUTURISTA Y DEGRADADO PLATEADO EN HOVER (BOTONES)
   ========================================================================== */

/* Prepara los botones para contener el destello de luz */
.btn, 
.btn-demo,
.contact-submit, 
.auth-submit, 
.pricing-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Capa de destello plateado metalizado (Sweep Light) */
.btn::after,
.btn-demo::after,
.contact-submit::after,
.auth-submit::after,
.pricing-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 30%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 70%
    );
    transform: rotate(25deg);
    transition: all 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
}

/* Dispara el destello al pasar el cursor */
.btn:hover::after,
.btn-demo:hover::after,
.contact-submit:hover::after,
.auth-submit:hover::after,
.pricing-btn:hover::after {
    left: 100%;
}

/* --- Transición a Degradado Plateado Futuro --- */

/* Botones principales sólidos (Primary, Submit) */
.btn-primary:hover,
.contact-submit:hover,
.auth-submit:hover,
.pricing-btn:hover {
    background: linear-gradient(135deg, #1e293b 0%, #cbd5e1 50%, #0f172a 100%) !important;
    color: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 0 18px rgba(203, 213, 225, 0.4), 0 4px 14px rgba(15, 23, 42, 0.2) !important;
    transform: translateY(-2px);
}

/* Botones secundarios y delineados (Ghost, Outline, Demo) */
.btn-ghost:hover,
.btn-outline:hover,
.btn-demo:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #ffffff 50%, #cbd5e1 100%) !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
    box-shadow: 0 0 15px rgba(148, 163, 184, 0.35) !important;
    transform: translateY(-2px);
}



@media (max-width: 768px) {
    .nav-links {
        background: #0f172a;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-inner,
    .demo-card,
    .contact-layout,
    .auth-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .hero-right {
        order: 0 !important;
    }
}

@media (max-width: 768px) {
    .nav-toggle-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 24px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .nav-toggle-btn span,
    .nav-toggle-btn span::before,
    .nav-toggle-btn span::after {
        content: "";
        display: block;
        height: 2px;
        background: #ffffff !important;
        border-radius: 2px;
        transition: transform 0.2s ease;
    }

    .nav-toggle-btn span::before { position: relative; top: -6px; }
    .nav-toggle-btn span::after { position: relative; top: 6px; }

    .nav-links {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        padding: 1rem 1.5rem;
        background: #0f172a !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        flex-direction: column;
        gap: 0.5rem;
        display: none;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4) !important;
    }

    .nav-links.is-open {
        display: flex;
    }
}

