
/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE (PREMIUM)
   ========================================= */

:root {
    --primary: #2f4a6d;       
    --primary-dark: #1f3550;
    /* Nuevo Plateado Premium */
    --accent: #cbd5e1;        /* Plateado acero claro */
    --accent-dark: #94a3b8;   /* Plateado sombra */
    --white: #ffffff;
    --bg-light: #f8fafc;      
    --text-main: #334155;
    --text-muted: #64748b;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius-lg: 50px;
    --radius-md: 20px;
}


* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    padding-top: 100px; /* Ajuste para header fijo */
}

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

/* =========================================
   2. HEADER DINÁMICO (LOGO DUAL)
   ========================================= */
header {
    position: fixed; top: 0; width: 100%;
    background: var(--white); z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid #f1f5f9;
}

header.scrolled { padding: 5px 0; box-shadow: var(--shadow); }

.nav-container {
    display: flex; justify-content: space-between;
    align-items: center; padding: 15px 0;
}

.logo img { height: 75px; transition: var(--transition); display: block; }
.logo-small { display: none !important; }

header.scrolled .logo-full { display: none !important; }
header.scrolled .logo-small { display: block !important; height: 45px; }

/* Menú Desktop */
nav ul { display: flex; list-style: none; gap: 30px; align-items: center; }
nav ul li a {
    text-decoration: none; color: var(--primary);
    font-weight: 600; font-size: 15px; transition: var(--transition);
}
nav ul li a:hover { color: var(--accent); }

.btn-nav {
    background: var(--primary); color: white !important;
    padding: 10px 24px; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(47, 74, 109, 0.2);
}

.mobile-menu-btn {
    display: none; background: var(--bg-light); border: none;
    padding: 12px; border-radius: 10px; color: var(--primary); cursor: pointer;
}

.btn-login {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--primary);
    color: white !important;
}


/* =========================================
   3. SECCIONES Y TARJETAS PREMIUM
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; padding: 100px 0; text-align: center;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

/* Espaciado generoso entre secciones */
.section-spacing {
    padding-top: 50px !important ; 
    background-color: var(--white);
   
}


.section-title { text-align: center; font-size: 2.5rem; color: var(--primary); margin-bottom: 50px;}

.service-card, .why-box, .form-card {
    background: var(--white); padding: 40px;
    border-radius: var(--radius-md); border: 1px solid #f1f5f9;
    box-shadow: var(--shadow); transition: var(--transition);
    text-align: center;
}

.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.service-card i { color: var(--accent); margin-bottom: 20px; }

/* Formulario */
.form-section { background: var(--bg-light); padding: 80px 0; border-radius: var(--radius-lg); margin: 60px 20px; }
.input-group { position: relative; margin-bottom: 20px; }
.input-group i { position: absolute; left: 18px; top: 18px; color: var(--primary); opacity: 0.4; }
.input-group input, .input-group textarea {
    width: 100%; padding: 16px 16px 16px 50px;
    border: 1px solid #e2e8f0; border-radius: 14px;
    background: #f8fafc; transition: var(--transition);
}

.hero-btns {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.btn-premium {
    display: inline-block;
    background: linear-gradient(145deg, #e2e8f0, #cbd5e1); /* Efecto metal */
    color: var(--primary-dark) !important;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 25px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.btn-premium:hover {
    transform: translateY(-3px);
    background: linear-gradient(145deg, #cbd5e1, #94a3b8);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

    

/* =========================================
   4. FOOTER PROFESIONAL (ESTILO FINAL)
   ========================================= */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 40px;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 70px;
    filter: brightness (0) invert(1);
    margin-bottom: 20px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--accent); /* Ahora plateado */
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 3px solid var(--accent); /* Detalle elegante */
    padding-left: 10px;
}


.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a {
    color: white; text-decoration: none; opacity: 0.7; transition: var(--transition);
}
.footer-links ul li a:hover { opacity: 1; color: var(--accent); padding-left: 5px; }

/* Elimina el formato automático de teléfonos en navegadores */
a[href^="tel"] {
    color: inherit; /* Hereda el color del elemento padre (blanco en tu footer) */
    text-decoration: none; /* Quita el subrayado */
}

/* Específicamente para el footer para asegurar que sea blanco */
.footer-contact a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.footer-contact a:hover {
    color: var(--accent) !important; /* Cambia a dorado al pasar el mouse */
}


.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center; font-size: 0.9rem; opacity: 0.6;
}

/* =========================================
   5. RESPONSIVE (MÓVIL)
   ========================================= */
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    
    /* Menú lateral móvil */
    nav#mainNav {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--white); padding: 100px 30px;
        transition: var(--transition); box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    nav#mainNav.active { right: 0; }
    
    nav ul { flex-direction: column; align-items: flex-start; gap: 20px; }
    
    .footer-content { text-align: center; }
    .footer-contact p { justify-content: center; }
    
    
    .hero h1 { font-size: 2rem; } 
}

/* =========================================
   AUTORIDAD (ALINEADO AL SISTEMA PREMIUM)
   ========================================= */

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

.authority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.authority-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.authority-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.authority-card i {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
}

.authority-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}