/* ------------------------------
    VARIABLES GLOBALES
--------------------------------*/

:root {
    /* Colores */
    --color-primary: #0f2a44;
    /* Azul técnico */
    --color-secondary: #2e2e2e;
    /* Gris industrial */
    --color-accent: #f5a623;
    /* Acento seguridad */
    --color-light: #f5f7fa;
    /* Fondo claro */
    --color-white: #ffffff;
    --color-text: #333333;

    /* Tipografía */
    --font-base: 'Inter', 'Roboto', 'Montserrat', Arial, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Layout */
    --max-width: 1100px;
}

/* ------------------------------
    RESET BÁSICO
--------------------------------*/

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    }
}


/* ------------------------------
    ELEMENTOS GENERALES
--------------------------------*/

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ------------------------------
    CONTENEDOR
--------------------------------*/

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* ------------------------------
    TIPOGRAFÍA
--------------------------------*/

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}
.header__logo {
    display: flex;
    align-items: center;
}

.header__logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
}


.section__title {
    margin-bottom: var(--space-md);
}

.section__text {
    max-width: 800px;
}

.cv-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
}

.cv-link:hover {
    color: var(--color-accent);
}

.cta__schedule p {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
    color: white;
}

/* ------------------------------
    HEADER
--------------------------------*/

.header {
    background-color: var(--color-white);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.nav__list {
    display: flex;
    gap: var(--space-sm);
}

.nav__link {
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.nav__link--cta {
    font-weight: 600;
    color: var(--color-primary);
}

/* ------------------------------
    HERO
--------------------------------*/

.hero {
    opacity: 1;
    transform: none;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.85);
    z-index: 1;
}

.hero__content {
    position: relative;
    color: var(--color-white);
    text-align: left;
    z-index: 2;
    will-change: transform, opacity;

}

.hero__content.animate {
    animation: heroFadeUp 0.6s ease-out;
}

.hero__title {
    font-size: 2.4rem;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.hero__subtitle {
    max-width: 600px;
    margin-bottom: var(--space-md);
    color: #e0e0e0;
}

/* ------------------------------
    BOTONES
--------------------------------*/

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn--primary {
    background-color: var(--color-accent);
    color: #000;
    font-weight: 600;
}

.btn--primary:hover {
    background-color: #e39a1f;
}

.btn--secondary {
    border: 1px solid var(--color-white);
    color: var(--color-white);
}

/* ------------------------------
    SECCIONES
--------------------------------*/

section {
    padding: var(--space-lg) 0;
}

.services,
.services-secondary {
    background-color: var(--color-light);
}

.service {
    padding: var(--space-lg) 0;
}

.service--primary {
    background-color: var(--color-white);
}

/* ------------------------------
    LISTAS DE SERVICIOS
--------------------------------*/

.service__list,
.card__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.service__list li,
.card__list li {
    font-size: 0.9rem;
    padding-left: 1rem;
    position: relative;
}

.service__list li::before,
.card__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* ------------------------------
    CARDS
--------------------------------*/

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.card {
    background-color: var(--color-white);
    padding: var(--space-md);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    will-change: transform;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* ------------------------------
    SECTORES
--------------------------------*/

.sectors__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.sectors__list li {
    background-color: var(--color-light);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ------------------------------
    CTA
--------------------------------*/

.cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.cta__title {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

/* ------------------------------
    FOOTER
--------------------------------*/

.footer {
    background-color: var(--color-secondary);
    padding: var(--space-md) 0;
    font-size: 0.85rem;
    text-align: center;
}
.footer p {
  color: #e5e7eb; /* gris claro accesible */
  margin-bottom: 0;
}

/* ==========================================
    MOBILE FIRST (DEFAULT YA APLICA)
    Breakpoints:
    - Tablet: 768px
    - Desktop: 1024px
========================================== */


/* ------------------------------
    HEADER / NAV (MOBILE)
--------------------------------*/

.nav__list {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: var(--color-white);
    width: 100%;
    padding: var(--space-sm);
    display: none;
}

.nav__list.is-active {
    display: flex;
}

.nav__link {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid #eaeaea;
}

/* (opcional) botón hamburguesa */
.header__menu {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
}


/* ------------------------------
    HERO (MOBILE)
--------------------------------*/

.hero {
    min-height: 90vh;
    padding: var(--space-lg) 0;
}

.hero__overlay {
    background: rgba(2, 6, 23, 0.88);
}

.hero__title {
    font-size: 1.8rem;
}

.hero__subtitle {
    font-size: 0.95rem;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}


/* ------------------------------
    SECCIONES
--------------------------------*/

section {
    padding: var(--space-md) 0;
}

.section__title {
    font-size: 1.4rem;
}


/* ------------------------------
    LISTAS Y CARDS
--------------------------------*/

.service__list,
.card__list {
    grid-template-columns: 1fr;
}

.cards {
    grid-template-columns: 1fr;
}


/* ------------------------------
    CTA
--------------------------------*/

.cta__title {
    font-size: 1.4rem;
}


/* ==========================================
    TABLET ≥ 768px
========================================== */

@media (min-width: 768px) {

    /* NAV */
    .header__menu {
        display: none;
    }

    .nav__list {
        position: static;
        flex-direction: row;
        display: flex;
        width: auto;
        padding: 0;
    }

    .nav__link {
        border: none;
    }

    /* HERO */
    .hero__title {
        font-size: 2.2rem;
    }

    .hero__actions {
        flex-direction: row;
    }

    /* LISTAS */
    .service__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* ==========================================
    DESKTOP ≥ 1024px
========================================== */

@media (min-width: 1024px) {

    /* HERO */
    .hero {
        min-height: 80vh;
    }

    .hero__title {
        font-size: 2.6rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    /* SECCIONES */
    section {
        padding: var(--space-xl) 0;
    }

    /* LISTAS */
    .service__list {
        grid-template-columns: repeat(3, 1fr);
    }

    .cards {
        grid-template-columns: repeat(3, 1fr);
    }

    /* CTA */
    .cta__title {
        font-size: 1.8rem;
    }
}

/* ==========================================
   MICRO ANIMACIONES SOBRIAS
========================================== */

/* Variables de animación */
:root {
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-standard);
  --transition-medium: 0.35s var(--ease-standard);
}

/* ------------------------------
   LINKS Y NAV
--------------------------------*/

.nav__link {
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-medium);
}

.nav__link:hover::after {
  width: 100%;
}

/* ------------------------------
   BOTONES
--------------------------------*/

.btn {
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background-color var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ------------------------------
   CARDS
--------------------------------*/

.card {
  transition: transform var(--transition-medium),
              box-shadow var(--transition-medium);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.btn,
.nav__link,
.card {
    will-change: transform;
}

/* ------------------------------
   SECCIONES (ENTRADA SUAVE)
--------------------------------*/
section:not(.hero) {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}

section.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.5s ease-out,
              transform 0.5s ease-out;
}


/* ------------------------------
   LISTAS (SUTIL)
--------------------------------*/

.service__list li,
.card__list li {
  transition: transform var(--transition-fast);
}

.service__list li:hover,
.card__list li:hover {
  transform: translateX(4px);
}

/* ------------------------------
   HERO TEXTO
--------------------------------*/

.hero__title,
.hero__subtitle,
.hero__actions {
  opacity: 1;
  transform: none;
}

.hero__subtitle {
  animation-delay: 0.1s;
}

.hero__actions {
  animation-delay: 0.2s;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
