:root {
  --blue-dark: #0f1c2e;
  --blue-mid: #16263f;
  --orange: #f28c28;
  --text-dark: #1f2933;
  --text-light: #ffffff;
  --gray-light: #f5f7fa;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #ffffff;
}

/* =========================
   HEADER
========================= */

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 72px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

header img {
  height: 38px;
}

nav a {
  margin-left: 28px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: var(--orange);
  font-weight: 600;
}

/* Botón hamburguesa – oculto en escritorio */
.menu-toggle {
  display: none; /* por defecto oculto */
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Mostrar sólo en móviles */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 72px; /* debajo del header */
    left: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1001;
  }

  nav.open {
    display: flex;
  }

  nav a {
    margin: 12px 0;
    text-align: center;
  }
}


/* =========================
   HERO
========================= */

.hero {
  min-height: 100vh;
  padding: 140px 80px 80px;
  background:
    linear-gradient(
      rgba(15, 28, 46, 0.85),
      rgba(15, 28, 46, 0.85)
    ),
    url("../img/hero-home.jpg") center / cover no-repeat;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 36px;
}

/* =========================
   CTA
========================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: #dd7f22;
  transform: translateY(-2px);
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: 96px 80px;
}

.section.dark {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: #fff;
}

.section h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.section p.lead {
  max-width: 720px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* =========================
   CARDS GENERALES
========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card h3 {
  margin-top: 16px;
  font-size: 1.25rem;
}

.card p {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #555;
}

/* =========================
   HOME – NUESTROS MODELOS
========================= */

.models-home {
  background: #ffffff;
  padding: 80px 20px;
}

.models-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #555;
  max-width: 720px;
  margin: 0 auto 56px;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  text-align: left;
}

.model-card {
  padding: 32px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
}

/* HOME – textos */
.models-home .model-name {
  font-size: 2.2rem;
  color: var(--orange);
  margin-bottom: 8px;
}

.models-home .model-type {
  font-weight: 600;
  margin-bottom: 16px;
}

.models-home .model-description {
  color: #444;
  margin-bottom: 20px;
}

.model-link {
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
}

.model-link:hover {
  text-decoration: underline;
}

/* =========================
   ÍCONOS MODELOS
========================= */

.model-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.model-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ícono grande (páginas internas) */
.model-icon-lg {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

/* Modelos – icono y título centrados */
.model-card {
  display: flex;
  flex-direction: column; /* icono arriba, texto abajo */
  align-items: center;    /* centra icono y título horizontalmente */
  text-align: center;     /* centra todo el texto */
  gap: 12px;              /* espacio entre icono y texto */
}

.model-card .model-icon .icon {
  width: 4rem;   /* doble tamaño aprox */
  height: 4rem;
}


/* =========================
   MODELOS – PÁGINA INTERNA
========================= */

.model-section {
  text-align: center;
}

.light-bg {
  background: var(--gray-light);
}

.model-section .model-name {
  color: var(--orange);
  font-size: 2rem;
  margin-top: 8px;
}

.model-section .model-type {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 16px;
}

.model-text {
  max-width: 820px;
  margin: 16px auto;
}

.model-list {
  max-width: 820px;
  margin: 12px auto 24px;
  text-align: left;
  padding-left: 20px;
}

.model-list li {
  margin-bottom: 6px;
  list-style: disc;
}

/* =========================
   CLIENTES / LOGOS
========================= */

.clients-bar {
  background: #ffffff;
  padding: 56px 20px;
  text-align: center;
}

.clients-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  margin-bottom: 40px;
  font-weight: 600;
}

/* GRID CONTROLADO PARA LOGOS – uniforme y responsive */
.clients-logos {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 logos por fila en escritorio */
  gap: 48px;
  align-items: center;
  justify-items: center;
  padding: 16px 0;
}

/* LOGOS UNIFICADOS – tamaños consistentes */
.clients-logos img {
  max-height: 60px; /* límite de altura uniforme */
  width: auto;       /* mantiene proporción */
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.clients-logos img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* RESPONSIVE: tablets */
@media (max-width: 900px) {
  .clients-logos {
    grid-template-columns: repeat(3, 1fr); /* 3 logos por fila */
    gap: 36px;
  }
}

/* RESPONSIVE: móviles */
@media (max-width: 600px) {
  .clients-logos {
    grid-template-columns: repeat(2, 1fr); /* 2 logos por fila */
    gap: 28px;
  }

  .clients-logos img {
    max-height: 50px;
  }
}

/* RESPONSIVE: muy pequeños */
@media (max-width: 480px) {
  .clients-logos {
    gap: 16px;
  }

  .clients-logos img {
    max-height: 40px;
  }
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: #0f172a;
  color: #ffffff;
  padding: 64px 24px 32px;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

.footer-logo img {
  max-width: 160px;
  height: auto;
}

.footer-title {
  color: var(--orange);
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-col p {
  margin-bottom: 14px;
  line-height: 1.4;
}

.footer-col a {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 48px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .models-grid {
    grid-template-columns: 1fr;
  }

  .clients-logos img {
    max-height: 40px;
  }
}

/* =========================
   MÉTRICAS – QUIÉNES SOMOS
========================= */

.metrics-bar {
  background: var(--orange);
  padding: 72px 20px;
}

.metrics-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.metric-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 1.1rem;
  color: #ffffff;
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
  .metrics-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .metric-number {
    font-size: 2.4rem;
  }
}

/* =========================
   PRESENCIA – ALCANCE REGIONAL
========================= */

.regional-scope {
  background: #ffffff;
}

.regional-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.regional-title {
  color: var(--orange);
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.regional-text {
  font-size: 1.05rem;
  color: #1f2933;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .regional-title {
    font-size: 1.9rem;
  }

  .regional-text {
    font-size: 1rem;
  }
}

/* =========================
   CTA REGIONAL – PRESENCIA
========================= */

.regional-cta {
  background: var(--orange);
  padding: 80px 20px;
  color: #ffffff;
}

.regional-cta-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.regional-cta h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: #ffffff;
}

.regional-cta p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  opacity: 0.95;
}

.regional-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.regional-cta-btn:hover {
  transform: translateY(-2px);
  background: #fff7ef;
}

/* Responsive */
@media (max-width: 768px) {
  .regional-cta h2 {
    font-size: 2rem;
  }

  .regional-cta p {
    font-size: 1.05rem;
  }
}

/* =========================
   CONTACTO – DOS COLUMNAS
========================= */

.contact-section {
  background: #ffffff;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: flex-start;
}

/* ---------- FORMULARIO ---------- */

.contact-form-intro {
  max-width: 520px;
  font-size: 1.05rem;
  margin-bottom: 32px;
  color: #333;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #222;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(242,140,40,0.15);
}

/* ---------- INFO CONTACTO ---------- */

.contact-info {
  background: #f9fafb;
  padding: 40px;
  border-radius: 12px;
}

.contact-title {
  font-size: 1.6rem;
  color: var(--orange);
  margin-bottom: 12px;
}

.contact-intro {
  font-size: 0.95rem;
  margin-bottom: 28px;
  color: #444;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 2px;
}

.contact-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 600;
  color: #222;
}

.contact-item p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
}

.contact-item a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info {
    padding: 32px;
  }
}

/* =========================
   LOGOS CLIENTES – ANIMACIÓN ON SCROLL
========================= */

.clients-logos img {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.clients-logos img.is-visible {
  opacity: 0.7; /* mantiene el look actual */
  transform: translateY(0);
}

/* Hover sigue funcionando */
.clients-logos img.is-visible:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* =========================
   CARDS – ANIMACIÓN ON SCROLL
========================= */

.cards .card {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.cards .card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   NUESTRO PROCESO – ANIMACIÓN
========================= */

.process-steps .process-step {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.process-steps .process-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   QUÉ HACEMOS – CARDS
========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* máximo 3 por fila */
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr); /* 2 por fila tablet */
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr; /* 1 por fila móvil */
  }
}

/* =========================
   NUESTRO PROCESO – BLOQUE COMPLETO
========================= */

/* Sección con fondo naranja y texto blanco */
.process-section {
  background: var(--orange);
  color: var(--text-light);
  padding: 60px 80px;
}

/* Contenedor de steps en fila */
.process-steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* baja en pantallas pequeñas */
  gap: 32px;
  margin-top: 40px;
}

/* Cada step */
.process-step {
  flex: 1 1 22%; /* 4 pasos en fila */
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255,255,255,0.1); /* tarjeta semi-transparente opcional */
  
  /* Animación inicial */
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Color de texto dentro de cada step */
.process-step h4,
.process-step p,
.process-step .step-number {
  color: #fff;
}

/* Animación visible al hacer scroll */
.process-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Escalonar aparición con delay */
.process-steps .process-step:nth-child(1) {
  transition-delay: 0s;
}
.process-steps .process-step:nth-child(2) {
  transition-delay: 0.15s;
}
.process-steps .process-step:nth-child(3) {
  transition-delay: 0.3s;
}
.process-steps .process-step:nth-child(4) {
  transition-delay: 0.45s;
}

/* RESPONSIVE – apilar pasos en tablet/móvil */
@media (max-width: 900px) {
  .process-steps {
    flex-direction: column;
    gap: 24px;
  }

  .process-step {
    flex: 1 1 100%;
  }
}

/* =========================
   CARDS – ANIMACIÓN ON SCROLL – QUIENES SOMOS
========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 por fila desktop para Quienes Somos */
  gap: 32px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr; /* 1 por fila móvil */
  }
}

/* Cards – Quienes Somos: títulos naranjas */
.intervention-cards .card h3 {
  color: var(--orange);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* Nuestro Proceso – números grandes */
.process-step .step-number {
  display: inline-block;
  font-size: 3rem; /* aumenta según quieras, antes era menor */
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff; /* blanco para que contraste con fondo naranja */
}

/* Opcional: si quieres hacer un círculo alrededor del número */
.process-step .step-number {
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: inline-block;
  text-align: center;
  font-size: 2.5rem; /* ajusta tamaño del número dentro del círculo */
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

/* Presencia – títulos de Cards (Perú, Panamá) más grandes */
.cards.presence-cards .card h3 {
  font-size: 1.8rem; /* ajusta según prefieras */
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--orange); /* opcional si quieres destacar en naranja */
}

/* Contacto – íconos SVG en naranja */

.contact-icon {
  color: var(--orange);
}

/* Presencia – título Alcance Regional en negro */
.regional-title {
  color: #000000; /* negro */
}

/* MODELOS – iconos más grandes */
.model-section .model-icon .icon {
  width: 96px; /* tamaño del logo */
  height: 96px;
}

/* Contenedor para icono y título centrados horizontalmente */
.model-header {
  display: flex;
  flex-direction: column; /* icono arriba, título debajo */
  align-items: center; /* centra horizontalmente */
  margin-bottom: 24px;
}

.model-header .model-name {
  margin-top: 16px;
  font-size: 2rem; /* tamaño del título */
  font-weight: 700;
  text-align: center;
}

