:root {
    --primary: #2247A7;       /* Azul oscuro corporativo */
    --primary-dark: #1a3680;
    --secondary: #149EDC;     /* Azul claro */
    --accent: #10B981;        /* Verde acento */
    --dark: #0f172a;          /* Texto oscuro / Fondo Footer */
    --gray: #64748b;          /* Texto secundario */
    --light: #f8fafc;         /* Fondos claros */
    --white: #ffffff;
    
    --radius: 16px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --container: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

p {
    font-weight: 400;
    color: var(--gray);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* UTILIDADES */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(34, 71, 167, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 71, 167, 0.4);
}

.section-padding {
    padding: 80px 0;
}

.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* HERO SECTION */
.hero {
    padding: 160px 0 100px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-image {
    position: relative;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* PROPUESTA DE VALOR */
.value-prop {
    background-color: var(--white);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.value-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(20, 158, 220, 0.1);
    color: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card h3 {
    font-size: 1.25rem;
    color: var(--dark);
}

/* SERVICIOS */
.services {
    background-color: var(--light);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Tarjeta de servicio rediseñada con imagen */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    padding: 0; /* Sin padding general */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(34, 71, 167, 0.1);
}

/* Imagen superior de la tarjeta */
.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Contenido de texto de la tarjeta */
.service-content {
    padding: 30px;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-card.special {
    background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid rgba(20, 158, 220, 0.2);
}

/* RESULTADOS */
.results {
    background-color: var(--primary);
    color: var(--white);
}

.results h2 { color: var(--white); }
.results p { color: rgba(255,255,255, 0.8); }

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.metric-card {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255, 0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
}

.metric-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.metric-label {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 500;
}

/* SOBRE NOSOTROS */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* TESTIMONIOS */
.testimonials {
    background-color: var(--light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stars {
    color: #FFC107;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--dark);
}

.client-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* CTA */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(20, 158, 220, 0.1) 0%, transparent 70%);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* CONTACTO */
.contact {
    padding-bottom: 80px;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    border-top: 5px solid var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(20, 158, 220, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* FOOTER */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    max-width: 180px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-grid, .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { margin: 0 auto 30px auto; }
    
    .value-grid, .metrics-grid { grid-template-columns: 1fr; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo { margin: 0 auto 20px auto; }
}
@media (max-width: 768px) {

    /* Menú móvil */
    .nav-links { 
        display: none; 
    }

    /* Hero compensando header fijo */
    .hero { 
        padding-top: 110px; 
    }

    /* Contacto más compacto */
    .contact-container { 
        padding: 30px; 
    }

    /* Ocultar SOLO el botón del navbar en móvil */
    header nav a.btn.btn-primary[href="#contacto"] {
        display: none !important;
    }

    /* Logo más grande en móvil */
    header .logo img {
        height: 50px !important;
    }

    /* Header sólido y compacto */
    header {
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        padding: 6px 0;
    }

    /* CENTRAR contenido del navbar (lo que te faltaba) */
    header nav {
        display: flex;
        align-items: center;
        justify-content: center;   /* <-- ESTA ES LA CLAVE */
    }
}
