/* =======================================================
   VARIABLES Y BASE
======================================================= */
:root {
  /* 🎨 Colores institucionales */
  --blue-dark: #003366;      /* Azul corporativo oscuro */
  --blue-mid: #005a99;       /* Azul intermedio para títulos */
  --blue-light: #0096D6;     /* Azul claro/acento */
  --blue-soft: #E6F4FA;      /* Fondo suave azul */

  --gray-light: #F2F2F2;     /* Fondo general claro */
  --gray-text: #444;         /* Texto secundario */
  --white: #fff;

  /* ✨ Configuración general */
  --max-width: 1100px;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);

  /* 🖋 Tipografía moderna */
  font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
}

* { box-sizing: border-box; scroll-behavior: smooth; }

body {
  margin: 0;
  color: #0b2233;
  line-height: 1.6;
  background: var(--white);
}

/* Contenedor central */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

/* =======================================================
   HEADER / NAV
======================================================= */
.site-header {
  background: var(--blue-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 120;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px; /* antes 12px */
  min-height: 100px;  /* fuerza aire interno */

}

.logo img {
  height: 80px;
  width: auto;
  transform: scale(1.8);   /* 🔥 multiplica visualmente el tamaño sin romper el header */
  transform-origin: left center;
}

@media (max-width: 768px) {
  .logo img {
    height: 60px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 45px;
  }
}


/* Nav - desktop */
.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  position: static;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.12s;
}

.nav a:hover { color: var(--blue-light); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

/* =======================================================
   HERO (imagen principal)
======================================================= */
.hero {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 55%),
    url('../images/hero.png') right center / cover no-repeat;
  color: var(--white);
  padding: 100px 0;
  min-height: 440px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 42px;
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 640px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.35);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.25s, transform 0.12s;
}
.btn.primary { background: var(--blue-light); color: var(--white); }
.btn.primary:hover { background: #007bb5; transform: translateY(-2px); }

/* =======================================================
   SECCIONES GENERALES
======================================================= */
.light { background: var(--gray-light); padding: 60px 0; }
.white { background: #fff; padding: 60px 0; }
.accent { background: var(--blue-light); color: var(--white); padding: 40px 0; }

/* =======================================================
   QUIÉNES SOMOS / ABOUT
======================================================= */
#quienes, #about {
  background: var(--gray-light);
  padding: 80px 0;
}

#quienes h2, #about h2 {
  color: var(--blue-dark);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Estructura de cards */
.about-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.about-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  flex: 1 1 220px;
  max-width: 300px;
  min-width: 220px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.about-card h3 { color: #003366; font-weight:700; margin-bottom:10px; }
.about-card p, .about-card ul { color: #333; margin:0; padding:0; }
.about-card ul li { list-style: none; margin-bottom:8px; }

/* =======================================================
   TIMELINE
======================================================= */
.timeline-list {
  position: relative;
  list-style: none;
  padding-left: 36px;
  border-left: 3px solid var(--blue-light);
  margin: 0;
}

.timeline-list li {
  position: relative;
  margin-bottom: 26px;
  padding-left: 10px;
}

.timeline-list .dot {
  position: absolute;
  left: -12px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 3px solid var(--blue-light);
  border-radius: 50%;
}

.timeline-list .year {
  display:block;
  font-weight:700;
  color: var(--blue-light);
  margin-bottom:6px;
}

/* =======================================================
   SERVICIOS
======================================================= */

.cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
  flex: 1 1 300px;
  max-width: 350px;
  min-width: 250px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.22s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.card svg {
  width: 64px;
  height: 64px;
  fill: #0098db;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.05rem;
  color: #002d45;
  font-weight: 600;
}

/* ===========================
   SERVICIOS – GRID
=========================== */

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

/* ===========================
   SERVICE CARD
=========================== */

.service-card {
  background: #fff;
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* TÍTULO */
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #003366;
  margin: 0;
  text-align: center;
}

/* ===========================
   CONTENIDO – BASE
=========================== */

.service-content {
  display: none;           /* 🔥 CLAVE PARA MOBILE */
  margin-top: 14px;
  font-size: 0.95rem;
  color: #333;
}

/* ===========================
   DESKTOP – HOVER
=========================== */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.15);
  }

  .service-card:hover .service-content {
    display: block;
  }
}

/* ===========================
   MÓVIL – CLICK (ACTIVE)
=========================== */

.service-card.active .service-content {
  display: block;          /* 🔥 AHORA SÍ SE DESPLIEGA */
}

/* Listas */
.service-content ul {
  padding-left: 18px;
  margin-top: 10px;
}

.service-content li {
  margin-bottom: 8px;
}


/* =======================================================
   CLIENTES - Grid Profesional
======================================================= */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 20px 10px;
  max-width: 100%;
  margin: 0 auto;
}

.clients-grid img {
  height: 45px;          /* tamaño base uniforme */
  width: auto;
  max-width: 90px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

/* Responsive tablets */
@media (max-width: 768px) {
  .clients-grid { gap: 10px; padding: 16px 8px; }
  .clients-grid img {
    height: 35px;
    max-width: 75px;
  }
}

/* Responsive móviles */
@media (max-width: 480px) {
  .clients-grid { gap: 8px; padding: 14px 6px; }
  .clients-grid img {
    height: 28px;
    max-width: 65px;
  }
}
/* =======================================================
   SEDES - Diseño Profesional
======================================================= */
.sedes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
  padding: 10px;
}

.sede-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--blue-dark);
  padding: 18px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sede-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 12px;
}

.sede-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.sede-card p {
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
  color: var(--gray-text);
}

.sede-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}



/* =======================================================
   CONTACTO
======================================================= */
.contact-grid {
  display:grid;
  grid-template-columns: 1fr 1.5fr;
  gap:40px;
  align-items:flex-start;
  background:#f5f7fa;
  padding:60px 20px;
  border-radius:10px;
}

.suggestions {
  background:#fff;
  border-radius:12px;
  padding:30px 25px;
  box-shadow:0 4px 15px rgba(0,0,0,0.08);
}

.suggestions form { display:flex; flex-direction:column; gap:12px; }
.suggestions input, .suggestions textarea {
  padding:10px 12px; border:1px solid #ccc; border-radius:8px; font-size:0.95rem; width:100%;
}

/* ==========================================
   AJUSTE FINAL ICONOS SECCIÓN "VALORES"
   (más grandes y equilibrados)
========================================== */
.about-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px; /* más espacio entre filas */
}

.about-card ul li {
  display: flex;
  align-items: center;
  gap: 16px; /* más separación entre icono y texto */
  justify-content: flex-start;
}

.about-card ul li img {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

.about-card ul li span,
.about-card ul li p,
.about-card ul li strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: #003366;
}


/* =======================================================
   FOOTER
======================================================= */
/* =======================================================
   FOOTER - Diseño Profesional
======================================================= */

.site-footer { 
    background: var(--blue-dark); 
    color: var(--white); 
    padding: 18px 0;
    margin-top: 24px;
}

.footer-inner { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0 40px;
}

.footer-left p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* ==== Navegación central ==== */
.footer-center {
    display: flex;
    justify-content: center;
    flex: 1;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
}

.footer-nav a:hover {
    opacity: 0.7;
}

/* ==== Redes Sociales ==== */
.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social a {
    font-size: 24px;
    color: var(--white);
    transition: 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.15);
    color: #00e676;
}


/* =======================================================
   RESPONSIVE
======================================================= */
@media (max-width: 900px) {
  .menu-toggle { display:block; }
  .nav { display:none; position:fixed; top:64px; left:0; right:0; background:var(--blue-dark);
         padding:18px 10px; z-index:130; flex-direction:column; gap:6px; align-items:center; }
  .nav.show { display:flex; }
  .nav a { display:block; padding:10px 8px; width:100%; text-align:center;
           border-bottom:1px solid rgba(255,255,255,0.06); }
  html.nav-open, body.nav-open { overflow:hidden; height:100%; }

  .hero { padding:60px 0; background-position:center; background-size:cover; min-height:380px; }
  .hero-content h1 { font-size:28px; }
  .contact-grid { grid-template-columns:1fr; padding:30px 15px; }
  .cards { flex-direction:column; align-items:stretch; gap:18px; }
  .card { max-width:100%; }
  .footer-logo { height:28px; margin:10px auto; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 22px; }
  .about-card { padding:18px 12px; max-width: 100%; }
}
@media (max-width: 600px) {
  .sede-card img {
    height: 110px;
  }
  .sede-card h3 {
    font-size: 1.1rem;
  }
}


/* ===========================
    FOOTER RESPONSIVE
=========================== */
@media (max-width: 600px) {

  .footer-inner {
      flex-direction: column;
      text-align: center;
      gap: 12px;
      padding: 20px 10px;
  }

  .footer-left {
      width: 100%;
  }

  .footer-center {
      width: 100%;
      margin-top: -6px;
  }

  .footer-right {
      width: 100%;
      display: flex;
      justify-content: center;
      margin-top: -4px;
  }

  .footer-social {
      gap: 22px;
  }

  .footer-nav a {
      font-size: 18px;
      margin-right: 8px;
  }
}

/* =======================================================
   NAV SIMPLE PARA PÁGINAS INTERNAS (SEDES)
======================================================= */
.page-interna .nav {
  display: flex !important;
  position: static;
  background: transparent;
  flex-direction: row;
  gap: 16px;
}
/* =======================================================
   GALERÍA HOME – CORPORATIVA Y LIMPIA
======================================================= */

.galeria-home {
  background: linear-gradient(135deg, #047bb0, #0593d1);
  padding: 90px 0;
}

.galeria-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 60px 60px 70px;
  max-width: 1200px;
  margin: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  text-align: left;
}

/* Encabezado */
.galeria-box h2 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: 10px;
}

.galeria-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 45px;
  max-width: 600px;
}

/* Grid de imágenes */
.galeria-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 45px;
}

/* Tarjeta de imagen */
.galeria-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  background: #f4f6f8;
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
  transition: transform .35s ease, box-shadow .35s ease;
}

/* Hover elegante */
@media (hover: hover) {
  .galeria-preview img:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  }
}

/* Botón */
.btn-galeria {
  display: inline-block;
  background: #0593d1;
  color: #fff;
  padding: 15px 36px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background .3s ease, transform .2s ease;
}

.btn-galeria:hover {
  background: #047bb0;
  transform: translateY(-2px);
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 900px) {
  .galeria-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .galeria-box {
    padding: 40px 25px;
    text-align: center;
  }

  .galeria-box h2 {
    font-size: 2.1rem;
  }

  .galeria-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .galeria-preview {
    grid-template-columns: 1fr;
  }

  .galeria-preview img {
    height: 200px;
  }
}

