/* --- VARIABLES Y PALETA EJECUTIVA --- */
:root {
    --primary: #0F172A;      /* Azul Marino Ejecutivo */
    --primary-light: #1E293B;
    --secondary: #475569;    /* Gris Acero */
    --accent: #D97706;       /* Ámbar Industrial */
    --accent-hover: #B45309;
    --bg-light: #F8FAFC;     /* Blanco Hueso Técnico */
    --white: #FFFFFF;
    --border: #E2E8F0;
}

/* --- RESET Y DESPLAZAMIENTO SUAVE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px; /* Evita que el menú fijo tape los títulos al bajar */
}
body {
    font-family: 'Roboto', sans-serif;
    color: var(--secondary);
    background-color: var(--white);
    line-height: 1.65;
    padding-top: 72px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
h1, h2, h3, h4, h5 {
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    line-height: 1.25;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 0;
}
.section-light { background-color: var(--bg-light); }
.section-white { background-color: var(--white); }

/* --- ENCABEZADOS DE SECCIÓN --- */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}
.section-subtitle {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--secondary);
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
}
.btn-outline-dark {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline-dark:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* --- BARRA DE NAVEGACIÓN --- */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(15, 23, 42, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}
.logo-img:hover { transform: scale(1.04); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    align-items: center;
}
.nav-links li a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary);
    transition: color 0.3s;
}
.nav-links li a:hover { color: var(--accent); }
.nav-links li a.nav-cta {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.55rem 1.2rem;
    border-radius: 4px;
}
.nav-links li a.nav-cta:hover {
    background-color: var(--accent);
    color: var(--white);
}
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
}

/* --- HERO CON VIDEO DE FONDO --- */
.hero {
    position: relative;
    background-color: var(--primary);
    color: var(--white);
    overflow: hidden;
    min-height: 82vh;
    display: flex;
    align-items: center;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.80) 100%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 920px;
}
.hero-badge {
    display: inline-block;
    background: rgba(217, 119, 6, 0.2);
    border: 1px solid var(--accent);
    color: #FBBF24;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}
.hero h1 {
    color: var(--white);
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.15rem;
    color: #CBD5E1;
    margin-bottom: 2.2rem;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* --- BARRA DE CREDENCIALES --- */
.credentials-bar {
    background-color: var(--primary-light);
    color: var(--white);
    border-bottom: 4px solid var(--accent);
}
.credentials-grid {
    padding: 1.8rem 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.cred-item strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    color: #FBBF24;
}
.cred-item span {
    font-size: 0.85rem;
    color: #CBD5E1;
}

/* --- SOBRE MÍ --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3.5rem;
    align-items: center;
}
.about-image-wrapper {
    position: relative;
    text-align: center;
}
.profile-img {
    width: 100%;
    max-width: 360px;
    height: 440px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15);
    border: 4px solid var(--white);
}
.about-experience-tag {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 1.4rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: -30px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-left: 4px solid var(--accent);
}
.about-experience-tag .number {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}
.about-experience-tag .text {
    font-size: 0.82rem;
    text-align: left;
    max-width: 160px;
    line-height: 1.2;
}
.about-text h2 {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}
.about-text h4 {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.4rem;
}
.about-text p { margin-bottom: 1rem; }

.skills-box {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.skills-box h5 {
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.skill-tags span {
    background-color: var(--white);
    border: 1px solid #CBD5E1;
    color: var(--primary);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- EXPERIENCIA Y PROYECTOS (TARJETAS VISUALES) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}
.project-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}
.project-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
}
.project-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.1) 60%);
}
.project-period, .project-category {
    position: relative;
    z-index: 2;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
}
.project-period {
    background-color: var(--primary);
    color: var(--white);
}
.project-category {
    background-color: var(--accent);
    color: var(--white);
}
.project-body {
    padding: 1.6rem;
    flex: 1;
}
.company-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}
.project-body h3 {
    font-size: 1.22rem;
    margin-bottom: 1rem;
}
.project-body ul {
    padding-left: 1.2rem;
    font-size: 0.94rem;
}
.project-body ul li {
    margin-bottom: 0.5rem;
}

/* --- SERVICIOS DE CONSULTORÍA --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-bottom: 3rem;
}
.service-box {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
.service-number {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #CBD5E1;
    margin-bottom: 0.5rem;
}
.service-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.service-box p {
    font-size: 0.94rem;
    margin-bottom: 0.8rem;
}
.service-box .deliverable {
    background-color: var(--bg-light);
    padding: 0.8rem;
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    margin-bottom: 0;
}

.cta-banner {
    background-color: var(--primary);
    color: var(--white);
    padding: 2.5rem 3rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.cta-banner h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}
.cta-banner p { color: #CBD5E1; }

/* --- SECCIÓN VIDEOS --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.video-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    transition: transform 0.3s ease;
}
.video-card:hover { transform: translateY(-5px); }
.video-thumb {
    height: 180px;
    background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.play-icon {
    width: 55px;
    height: 55px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
}
.video-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #FBBF24;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}
.video-info { padding: 1.5rem; }
.video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}
.video-info p { font-size: 0.92rem; }

/* --- PÁGINA DE CONTACTO (2 COLUMNAS) --- */
.page-section { flex: 1; }
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: start;
}
.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.contact-info p { margin-bottom: 2rem; }
.info-item {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
}
.info-item strong {
    display: block;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}
.info-item a {
    color: var(--accent);
    font-weight: 600;
}
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border);
}
.contact-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}
.form-group textarea {
    resize: vertical;
    height: 110px;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--primary);
    color: var(--white);
    margin-top: auto;
}
.footer-content {
    padding: 3.5rem 0 2rem;
    text-align: center;
}
.footer-cta h2 {
    color: var(--white);
    margin-bottom: 0.6rem;
}
.footer-cta p {
    color: #CBD5E1;
    margin-bottom: 1.5rem;
}
.footer-divider {
    border: none;
    border-top: 1px solid #334155;
    margin: 2.5rem 0 1.5rem;
}
.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #94A3B8;
}

/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 860px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 65px;
        left: 0;
        background-color: var(--white);
        padding: 1.5rem 0;
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 1.9rem; }
    .credentials-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-layout { grid-template-columns: 1fr; }
    .cta-banner {
        flex-direction: column;
        text-align: center;
    }
}