/* =================================================
   TIPOGRAFÍA OFICIAL – RETHINK SANS
   ================================================= */
@import url('https://fonts.googleapis.com/css2?family=Rethink+Sans:wght@400;500;700&display=swap');

/* =================================================
   BRAND GUIDELINES – COLORES OFICIALES
   ================================================= */
:root{
  --brand-blue: #01537b;       /* Azul Von Hesse */
  --brand-blue-light: #378ba4; /* Azul claro */
  --midnight-blue: #01273e;    /* Azul medianoche */
  --gray-light: #f2f2f2;
  --gray-medium: #d3d3d3;
  --text-primary: #1f2937;
  --text-muted: #4b5563;
  --max-width: 1200px;
}

/* =================================================
   RESET BASE
   ================================================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body {
  font-family: 'Rethink Sans', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: linear-gradient(to bottom, #f9fbfd, #e6f0f7);
}
body, html {
  background: #ffffff; /* blanco total */
}

.hero-wrapper::before {
  pointer-events: none;
}

.logo {
  position: relative;
  z-index: 10;
}
.logo a {
  display: inline-block;
}
/* Opcional: asegurar que todo contenedor también sea blanco */
.nosotros-sections,
.historia-section,
.team-section {
  background: #ffffff; 
}
/* Línea separadora después de Historia */
.separator-line {
  content: "";
  display: block;
  width: 100%;
  max-width: 900px;  /* igual al texto */
  height: 3px;
  background-color: #01537b;
  margin: 0 auto 40px;
  border-radius: 2px;       /* bordes suaves */
}
img{
  max-width:100%;
  display:block;
}

a{
  text-decoration:none;
  color:inherit;
}

.container{
  max-width: var(--max-width);
  margin: auto;
  padding: 0 20px;
}

/* =================================================
   HEADER / NAV
   ================================================= */
.header {
  background: transparent;
  padding: 20px 0;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 52px;       /* tamaño ideal para header */
  width: auto;
  max-width: 290px; 
  position: relative;  
  top: 15px;/* evita logos gigantes */
}
.contact-item a {
  color: inherit;
  text-decoration: none;
}



nav ul{
  display:flex;
  align-items:center;
  gap:30px;
  list-style:none;
  margin:0;
  padding:0;
}

nav li{
  display:flex;
  align-items:center;
}

.nav a {
  color: #fff;
  margin-left: 24px;
  text-decoration: none;
}


.nav a {
  color: #0c0c0c;
  margin-left: 24px;
  text-decoration: none;
}

nav .btn-primary{
  background: var(--brand-blue);
  border-radius:6px;
  padding:0 20px;
}

nav .btn-primary:hover{
  background: var(--brand-blue-light);
  color:#fff;
}

nav a:hover{
  color: var(--brand-blue-light);
}
nav ul li a {
  text-decoration: none;
  color: #ffffff;
  padding: 9px 13px;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
nav ul li a.btn-contact {
  background-color: #01537b; /* color de ejemplo */
  color: #fff;
  border-radius: 5px;
  padding: 12px 18px; /* más grande que antes */
  font-size: 1.05rem; /* ligeramente más grande */
  font-weight: 500;   /* un poco más visible */
}

nav ul li a.btn-contact:hover {
  background-color: #01334a;
}


/* ================= HERO NUEVO LAYOUT ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero .container {
 
  margin-right: auto;
  padding-left: 0;
}
.home .hero-wrapper {
  min-height: 80vh;
}

.home .hero {
  min-height: 60vh;
  align-items: center;
}

/* Ajuste fino de posición (no tan arriba) */
.home .hero-grid {
  transform: translateX(-600px) translateY(50px);
}

/* ================= HERO + HEADER ================= */
.hero-wrapper {
  min-height: 100vh;
  background-image: url("../img/image.png");

  background-size: cover;
  background-position: center,top;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
}

.hero-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  z-index: 2;
  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(20, 60, 90, 0.28),   /* ⬅️ antes 0.45 */
      rgba(20, 60, 90, 0.28)
    ),
    url("../img/10603.jpg");

  background-repeat: no-repeat;
  background-size: cover;
  background-position: left top;

  opacity: 0.65;              /* ⬅️ antes 0.90 */
  mix-blend-mode: overlay;    /* se mantiene */

  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 75%,
    rgba(0,0,0,0.4) 90%,
    rgba(0,0,0,0) 100%
  );

  mask-image: linear-gradient(
    to right,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 75%,
    rgba(0,0,0,0.4) 90%,
    rgba(0,0,0,0) 100%
  );
}



  


/* Overlay oscuro para legibilidad */
.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  z-index: 1;
}

/* Todo el contenido encima del fondo */
.header,
.hero {
  position: relative;
  z-index: 3;
}

.hero-grid {
  max-width: 760px;
  transform: translateX(-450px);
  margin-left: 800px;
}

.hero-text {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-text h1 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-left: 350px;
  margin-top: 180px; /* antes 180px ❌ */
}

.hero-text p {
  font-size: 1.05rem;
  line-height: 1.5; /* un poco más compacto */
  margin-bottom: 20px;
  margin-left: 270px;
  margin-top: 5px; /* antes 30px ❌ */
  white-space: nowrap;
}

.hero-tagline {
  font-size: 1.2rem;
  font-weight: 500;
  color: #cde8f5;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.9);
}

.hero-actions {
  margin-top: 10px;
}

/* Imagen */
.hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

.hero-stamps {
  margin-top: 28px;
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-stamps img {
  height: 78px;                 /* tamaño uniforme */
  object-fit: contain;
  filter: grayscale(100%) brightness(2) contrast(1.2);
  opacity: 0.85;
}

/* =================================================
   BOTONES
   ================================================= */
.btn{
  display:inline-block;
  padding:14px 34px;
  border-radius:40px;
  font-weight:500;
  transition:.3s ease;
}

.btn-primary{
  background: var(--brand-blue);
  color:#fff;
}

.btn-primary:hover{
  background: var(--brand-blue-light);
}

.btn-secondary{
  background:#378ba4;
  color:#fff;
}

.btn-secondary:hover{
  background:#01537b;
}

/* ===============================
   SECCIÓN NOSOTROS
================================ */
/* ===============================
   SECCIÓN NOSOTROS
================================ */

/* CONTENEDOR DE MISION Y VISION */
.nosotros-sections {
  display: grid;
  grid-template-columns: 1fr 2px 1fr; /* Misión | Línea | Visión */
  align-items: start;
  justify-content: space-between; /* esto fuerza separación máxima */
  gap: 20px;           /* espacio opcional */
  padding: 60px 40px;
  width: 100%;         /* ocupa todo el ancho */
  max-width: 1200px;
  margin: 0 auto;
}
.mision, .vision {
  text-align: center; /* en lugar de left */
}
.nosotros-sections h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--midnight-blue);
  margin-bottom: 16px;
}
.nosotros-sections p {
  font-size: 1.1rem;
  color: var(--text-primary);
  max-width: 400px;
  margin: 0 auto; /* centra párrafos */
  line-height: 1.75;
}
/* MISIÓN */
.mision {
  grid-column: 1;
  text-align: left;
  max-width: 420px;
  opacity: 0;
  animation: slideInLeft 0.9s ease forwards;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-140px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* LÍNEA CENTRAL */
.linea-central {
  background-color: var(--brand-blue-light);
  width: 1.5px; 
  height: 90%;
  opacity: 0.7;
  margin-top: 25px; /* 👈 baja la línea */
}
.mision, .vision {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* VISIÓN */
.vision {
  grid-column: 3;
  justify-self: end;   /* 👈 empuja el bloque a la derecha dentro de su columna */
  text-align: left;
  max-width: 420px;
  padding-right: 16px;
  opacity: 0;
  animation: slideInRight 0.9s ease forwards;
}


@keyframes slideInRight {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* RESPONSIVE: en pantallas pequeñas, columna única */
@media (max-width: 900px) {
  .nosotros-sections {
    grid-template-columns: 1fr;
  }
  
  .linea-central {
    display: none;  /* ocultar línea vertical en mobile */
  }

  .mision, .vision {
    max-width: 100%;
    margin-bottom: 40px;
    transform: none; /* quitar offset de animación vertical */
  }
}

.nosotros-sections {
  margin-bottom: 80px;
}
.historia-section {
  margin-top: 60px;
}
/* Contenedor relativo para poder posicionar los logos */
.historia {
  grid-column: 1 / -1;   /* ocupa todo el ancho */
  max-width: 860px;
  margin: 100px auto 0;
  padding: 0 20px;
  position: relative; /* 👈 clave para los logos */
  animation: fadeUp 0.8s ease both;
}

/* Logos en esquinas, mucho más arriba */
.historia .logo-left,
.historia .logo-right {
  position: absolute;
  width: 100px; /* tamaño del logo */
  height: auto;
  top: 40px; /* mucho más arriba */
}

.historia .logo-left {
  left: -250px; /* pegado al borde izquierdo */
}

.historia .logo-right {
  right: -250px; /* pegado al borde derecho */
}

/* Línea decorativa */
.historia::before {
  content: "";
  display: block;
  width: 100%;
  max-width: 900px;  /* igual al texto */
  height: 3px;
  background-color: #01537b;
  margin: 0 auto 40px;
  border-radius: 2px;
}
.historia p {
  font-size: 1.08rem;
  line-height: 1.85;
  text-align: justify;
  color: var(--text-primary);
}
/* Animación del texto */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Títulos y párrafos */
.historia h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.historia p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
  text-align: justify;
  hyphens: auto;
}

.historia p:last-child::before {
  content: "— ";
  color: #01537b;
}

.historia p:last-child {
  font-weight: 500;
  color: #111;
}


.historia-section {
  margin-top: 100px; /* espacio extra arriba */
  padding-bottom: 60px; /* opcional: un poco de espacio abajo */
}
.nosotros-sections {
  margin-bottom: 80px; /* espacio antes de Historia */
}
.team-header {
  text-align: center;       /* todo centrado */
  margin-bottom: 40px;      /* espacio debajo de la cabecera */
}

.team-header h2 {
  font-size: 2.8rem;        /* título grande y destacado */
  font-weight: 700;
  color: #0f172a;           /* color oscuro para resaltar */
  margin-bottom: 15px;
}

.team-header p {
  font-size: 1.15rem;       /* texto legible */
  color: #4b5563;           /* gris oscuro para contraste */
  max-width: 800px;         /* evita que el texto sea demasiado ancho */
  line-height: 1.6;
  margin: 0 auto;           /* centra el párrafo */
}
/* TÍTULOS */
.nosotros-sections h2 {
  font-size: 1.8rem;
  color: #01537b;
  margin-bottom: 14px;
  text-align: center;
}

/* TEXTO */
.nosotros-sections p {
  color: #333;
  line-height: 1.7;
}/* ================= TEAM SECTION FULL WIDTH ================= */
.team-section {
  padding: 100px 8%;
  background: #f8f9fb;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px;
}

.team-item {
  position: relative;
  overflow: hidden;
}

.team-item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

/* Información siempre visible */
.team-info {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: white;
  z-index: 2;
}

.team-info h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
}

.team-info span {
  font-size: 14px;
  opacity: 0.8;
  display: block;
  margin-bottom: 18px;
}
.team-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--brand-blue); /* 🔵 Azul directo */
  border: 2px solid var(--brand-blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.35s ease;
}

.team-btn:hover {
  background: var(--midnight-blue); /* azul más oscuro al pasar */
  border-color: var(--midnight-blue);
  color: #ffffff;
}

/* Fondo oscuro elegante */
.team-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), rgba(0,0,0,0.05));
  z-index: 1;
}
.team-item {
  position: relative;
  overflow: hidden;
}

.team-item img {
  width: 100%;
  display: block;
}

.team-item::before {
  content: "";
  position: absolute;
  bottom: 0;          /* empieza desde abajo */
  left: 0;
  width: 100%;
  height: 45%;        /* solo cubre la parte inferior */
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.8),
    rgba(0,0,0,0.4),
    rgba(0,0,0,0)
  );
  z-index: 1;
}

.team-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  z-index: 2;
}.team-item {
  position: relative;
  overflow: hidden;
}

.team-item .shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.8s ease;
  pointer-events: none; /* 🔥 evita que el brillo active otras tarjetas */
}

/* 👇 Solo afecta al .team-item exacto que tiene hover */
.team-item:hover > .shine {
  left: 150%;
}
/* BIO OCULTA */
.team-bio {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  color: white;
  padding: 60px 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all .4s ease;
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.7;
}

/* SOLO aparece cuando pasan por el botón */
.btn-profile:hover ~ .team-bio {
  opacity: 1;
  transform: translateY(0);
}

/* Zoom elegante */
.team-item:hover img {
  transform: scale(1.05);
}
.team-bio {
  opacity: 0;
  visibility: hidden;
  transition: .4s ease;
}

.team-item.active .team-bio {
  opacity: 1;
  visibility: visible;
}
/* =============================== */
/* FONDO BLANCO UNIFORME – OVERRIDE TOTAL */
/* =============================== */
.nosotros-sections,
.historia-section,
.team-section {
  background: #ffffff !important; /* blanco forzado */
}

/* Quitar cualquier overlay o pseudo-elemento oscuro */
.team-item::after {
  background: linear-gradient(to top, rgba(0,0,0,0.05), rgba(0,0,0,0)) !important;
}

/* Asegurar separación entre secciones */
.nosotros-sections {
  margin-bottom: 80px; 
  padding-top: 80px;
  padding-bottom: 80px;
}

.historia-section {
  margin-top: 80px;
  padding-bottom: 80px;
}
/* =================================================
   FOOTER
   ================================================= */
/* ================= FOOTER COMPLETO CON LOGO ================= */
footer{
  background: var(--midnight-blue);
  color: #fff;
  padding: 50px 20px 20px 20px;
  font-size: 0.95rem;
}
.footer-contact {
  color: #fff;
}

.footer-contact h4 {
  margin-bottom: 18px;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-contact .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.footer-contact .contact-item img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  opacity: 0.85;
}

.footer-contact .contact-item span {
  line-height: 1.4;
}
footer a{
  color: #e0f0ff;
  text-decoration: none;
}

footer a:hover{
  color: var(--brand-blue-light);
}

.footer-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 40px;
  max-width: var(--max-width);
  margin: auto;
}

.footer-grid h4{
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.footer-grid ul{
  list-style: none;
  padding: 0;
}

.footer-grid ul li{
  margin-bottom: 8px;
}

.footer-bottom{
  text-align:center;
  padding-top:20px;
  font-size:0.85rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top:30px;
}

/* ================= LOGO + CONTACTO ================= */
footer .footer-top {
  display: flex;
  justify-content: space-between; /* separa logo y resto */
  align-items: flex-start;
  gap: 40px; /* espacio entre el logo y el resto del contenido */
  padding-bottom: 20px;
}

.footer-logo {
  margin-left: 0; /* logo pegado a la izquierda */
}

.footer-logo img {
  height: 60px;
  width: auto;
  display: block;
}


.cta-blue {
  background: #fff; /* azul Von Hesse */
  color: #01537b; /* texto por defecto blanco */
}

.cta-blue .section-subtitle {
  color: #01537b; /* un azul clarito para subtitulo */
}

.hamburger-btn {
  font-size: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2000;
  display: none; /* 🔹 oculto por defecto en pantallas grandes */
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Iconos dentro del botón */
.hamburger-btn .hamburger-icon {
  display: block;
  color: #1962ea;
}

.hamburger-btn .close-icon {
  display: none;
  color: #000;
}

/* Cuando el menú está abierto */
.hamburger-btn.open .hamburger-icon {
  display: none;
}
.hamburger-btn.open .close-icon {
  display: block;
}

/* ================= MENÚ HAMBURGUESA ================= */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  padding: 190px 20px 20px 20px;
  background: rgba(25, 98, 234, 0.9);
  width: 280px;
  height: 100%;
  position: fixed;
  top: 0;
  right: -280px; 
  z-index: 1000;
  transition: right 0.3s ease;
}

.hamburger-menu.open {
  right: 0;
}

/* Animación de links */
.hamburger-menu a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  margin: 18px 0;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateX(20px);
}

.hamburger-menu.open a:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateX(0); }

.hamburger-menu a:hover {
  transform: translateX(5px);
}


.team-member-single {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 50px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-member-single:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.team-photo {
  width: 300px;
  height: 260px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.team-content h3 {
  font-size: 1.5rem;
  color: var(--brand-blue);
  margin-bottom: 6px;
}

.team-content .role {
  font-weight: 500;
  margin-bottom: 12px;
  display: block;
}

.team-content p {
  line-height: 1.6;
  color: #333;
}

/* BOTÓN “VER MÁS” solo móviles */
.btn-see-more {
  display: none; /* ❌ por defecto oculto en desktop */
}/* Iconos dentro del botón */
.hamburger-btn .hamburger-icon {
  display: block;
  color: #1962ea;
}

.hamburger-btn .close-icon {
  display: none;
  color: #000;
}

/* Cuando el menú está abierto */
.hamburger-btn.open .hamburger-icon {
  display: none;
}
.hamburger-btn.open .close-icon {
  display: block;
}
.scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 20px;
  z-index: 9999;

  font-size: 38px; /* tamaño grande de la flecha */
  background: none; /* quitamos el fondo azul */
  border: none;

  cursor: pointer;
  display: none; /* oculto por defecto */
  transition: transform 0.2s ease;
}

.scroll-top-btn:hover {
  transform: scale(1.2); /* pequeño efecto al tocar */
}

/* solo móviles */
@media (max-width:768px){
  .scroll-top-btn{
    display:block;
  }
}

@media (max-width: 900px) {
/* 🔒 BLOQUEAR SCROLL CUANDO EL MENÚ ESTÁ ABIERTO */
html:has(.hamburger-menu.open),
body:has(.hamburger-menu.open) {
  overflow: hidden;
  height: 100vh;
}

  /* ================= HEADER / NAV ================= */
 .header-content {
    display: flex;
    justify-content: space-between; /* logo a la izquierda, hamburguesa a la derecha */
    align-items: center;
    padding: 10px 20px;
  }
  nav ul {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    display: none; /* oculto por defecto */
    background: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 10px;
    z-index: 10;
  }

  nav ul.show {
    display: flex;
  }

 
  /* HERO WRAPPER */
/* HERO WRAPPER */
.hero-wrapper {
  position: relative;
  min-height: auto;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-image: url("../img/image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden; /* importante para overlay */
}

/* LÁMINA SEMITRANSPARENTE */
.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* lámina negra semitransparente */
  z-index: 1; /* debajo del texto, encima de la imagen */
}


  .hero,
.hero-wrapper {
  position: relative;
  z-index: 1;
}

  /* HERO GRID */
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    transform: none !important;  /* ⚡ quitar transform que movía todo fuera */
  }

  /* TEXTO HERO */
.hero-text {
  opacity: 1;
  transform: none;
  animation: none;
  color: #f5f5f5;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.hero-text h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 19px;
}

.hero-text p {
  font-size: 1.03rem;
  margin-bottom: 25px;
}

.hero-text h1,
.hero-text p {
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}
.hamburger-menu.open ~ .hero .hero-text {
  opacity: 0;
  pointer-events: none;
}
/* cuando el menú está abierto */
body.menu-open .hero {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

  html, body {
    overflow-x: hidden;
  }

 


  /* HERO IMAGE */
  .hero-image img {
    max-width: 100%;
    height: auto;
    margin: 15px auto 0 auto;
    border-radius: 12px;
    display: block;
    z-index: 2;
  }

  /* HERO STAMPS */
  .hero-stamps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
  }

  .hero-stamps img {
    max-width: 70px;
    height: auto;
    display: block;
  }
    /* BOTÓN HAMBURGUESA - visible en mobile */
   /* Logo */
  .header-content .logo {
    max-width: 150px; /* ajusta según tu gusto */
    height: auto;
  }
  /* ================= HEADER / MENÚ HAMBURGUESA ================= */

/* Desktop: menú normal */
.hamburger-btn {
  display: none; /* oculto en desktop */
}
.hamburger-menu {
  display: none; /* oculto en desktop */
}

/* Mobile (≤900px) */

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

/* Botón hamburguesa */
.hamburger-btn {
  display: flex;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Iconos dentro del botón */
.hamburger-btn .hamburger-icon { display: inline; color: #1962ea; }
.hamburger-btn .close-icon { display: none; color: #fff; }
.hamburger-btn.open .hamburger-icon { display: none; }
.hamburger-btn.open .close-icon { display: inline; }

/* Menú hamburguesa */
.hamburger-menu {
  width: 100vw;
  height: auto;             /* 🔹 dejar altura automática para que no corte el footer */
  min-height: 100vh;        /* para que siga ocupando toda la pantalla si hay pocos links */
  right: -100vw;            /* oculto al inicio */
  top: 0;
  padding: 60px 20px 20px 20px;
  background: #01537b;
  display: flex;
  flex-direction: column;
  align-items: center;      /* centra horizontalmente */
  justify-content: flex-start;
  gap: 20px;                /* espacio entre links */
  position: fixed;
  z-index: 10000;
  transition: right 0.3s ease;
  overflow-y: auto;         /* permite scroll si el contenido es muy grande */
}
/* Abrir menú */
.hamburger-menu.open {
  right: 0;
}

/* Links del menú siempre visibles */
.hamburger-menu a {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-align: center;
  font-size: 1.2rem;
  width: 100%;
  max-width: 250px;
  margin: 10px auto;       /* agrega espacio vertical entre links */
  padding: 10px 0;         /* aumenta el “clic area” y separación */
  color: #fff;
  text-decoration: none;
}

/* Botón de cerrar (“X”) siempre en esquina superior derecha */
.close-btn {
  display: flex;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10001;
  background: transparent;
  border: none;
  cursor: pointer;
}
.close-btn img {
  width: 48px;
  height: auto;
}

/* Overlay para bloquear scroll y oscurecer fondo */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Bloquear scroll cuando el menú está abierto */
body.menu-open {
  overflow: hidden;
  height: 100vh;
}
/* Redes sociales dentro del menú */
.menu-socials {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.menu-socials a i {
  color: #fff;
  font-size: 1.4rem;
}

.menu-footer {
  margin-top: -90px;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
}

  /* LOGO PRIMERO */
  
  .footer-logo {
    width: 100%;
    display: flex;
    justify-content: center;   /* 🔥 centra horizontal */
    margin: 0;
    padding: 0;
  }

  .footer-logo img {
    display: block;
    margin: 0 auto;            /* 🔥 mata espacio lateral */
    max-width: 570px;
  }
  /* CONTACTO */
  .footer-contact {
    order: 2;
    width: 100%;
  }

  .footer-contact h4 {
    margin-bottom: 12px;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .contact-item img {
    width: 18px;
    height: 18px;
  }

  /* REDES */
  .footer-social {
    order: 3;
    width: 100%;
  }

  .footer-social ul {
    padding-left: 0;
    list-style: none;
  }

  .footer-social li {
    margin-bottom: 8px;
  }
  
 
  footer .footer-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* todo a la izquierda */
    gap: 30px;
  }

  /* LOGO PRIMERO */
  
  .footer-logo {
    width: 100%;
    display: flex;
    justify-content: center;   /* 🔥 centra horizontal */
    margin: 0;
    padding: 0;
  }

  .footer-logo img {
    display: block;
    margin: 0 auto;            /* 🔥 mata espacio lateral */
    max-width: 570px;
  }
  /* CONTACTO */
  .footer-contact {
    order: 2;
    width: 100%;
  }

  .footer-contact h4 {
    margin-bottom: 12px;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .contact-item img {
    width: 18px;
    height: 18px;
  }

  /* REDES */
  .footer-social {
    order: 3;
    width: 100%;
  }

  .footer-social ul {
    padding-left: 0;
    list-style: none;
  }

  .footer-social li {
    margin-bottom: 8px;
  }
  
  .services-row .service-image,
  .services-row .service-image img,
  .services-row img.service-img {
    display: none !important;
  }

  /* ✅ ICONOS */
  .services-row .service-icon,
  .services-row i,
  .services-row svg {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Layout limpio */
  .services-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .services-row .service-card {
    padding: 18px 16px;
  }

.services-intro-mobile {
    display: block;          /* asegurarnos que se muestre solo en móviles */
    font-size: 1rem;         /* tamaño cómodo para leer en móvil */
    line-height: 1.5;        /* buen espaciado entre líneas */
    text-align: center;      /* centrado para que quede bonito */
    margin: 15px 10px;       /* margen superior e inferior y algo a los lados */
    color: #333;             /* color legible sobre fondo claro */
  }

  .hero-p {
    display: none; /* ocultar hero-p original en móviles */
  }
  /* Apilar cada servicio: imagen arriba, texto abajo */
  .services-row {
    display: flex;
    flex-direction: column;
    gap: 20px; /* espacio entre cada servicio */
  }
 .service-item {
    display: flex !important;
    flex-direction: column !important; /* apilar vertical */
  }
.service-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* línea fina y suave */
  padding-bottom: 20px; /* espacio debajo del contenido */
  margin-bottom: 20px;  /* espacio entre servicios */
}

/* Opcional: quitar línea del último servicio */
.services-row .service-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
  /* Imagen primero */
  .service-item img {
    order: -1 !important;  /* fuerza que la imagen quede arriba */
    width: 100%;
    height: auto;
    margin-bottom: 15px;   /* espacio con el texto */
  }

  .service-text {
    order: 0 !important;   /* texto debajo de la imagen */
    width: 100%;
  }
  .service-text h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .service-text ul {
    padding-left: 0;
    list-style: none;
  }

  .service-text ul li {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.4;
  }

@media (max-width: 900px) {
  /* Contenedor en columna única */
  .nosotros-sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
  }

  /* Ocultar línea central */
  .linea-central {
    display: none;
  }

  /* Misión y Visión idénticas */
  .mision,
  .vision {
    max-width: 100%;
    text-align: center;   /* centrar texto */
    margin: 0;
    padding: 0 10px;      /* margen lateral uniforme */
    transform: none;
    opacity: 1;
  }

  /* Quitar margen extra que tenía Visión */
  .vision p {
    margin-left: 0 !important;
  }

  /* Títulos iguales */
  .mision h2,
  .vision h2 {
    font-size: 1.6rem;
    color: #01537b;
    margin-bottom: 14px;
  }

  /* Párrafos iguales */
  .mision p,
  .vision p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
  }
}
.team-member-single {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    gap: 12px;
  }

  .team-photo {
    width: 80%;
    max-width: 280px;
    margin-bottom: 12px;
  }

    .team-content h3,
  .team-content .role,
  .team-content .full-desc {
    display: none;  /* ocultamos todo al inicio */
  }

  /* Mostrar solo el botón */
  .btn-see-more {
    display: inline-block;
    background: var(--brand-blue);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
    
  }

  .btn-see-more:hover {
    background: var(--brand-blue-light);
  }

  /* Full description oculto por defecto */
  .team-content .full-desc {
    display: none;
  }
.team-member-single .team-photo {
    margin: 0 auto;       /* centra la imagen */
    display: block;
    position: relative;   /* para moverla si quieres */
    left: 0%;            /* mueve la imagen un 10% a la derecha */
    max-width: 90%;       /* no ocupe todo el ancho */
    border-radius: 10px;
  }

  /* Ocultar contenido completo al inicio */
  .team-content .full-desc {
    display: none;
  }

  /* Botón solo en móviles */
  .btn-see-more {
    display: inline-block;
    margin-top: 12px;
  }

  /* Mostrar nombre y rol si quieres */
  .team-content h3,
  .team-content .role {
    display: block;
    text-align: center; /* opcional: centrado en móviles */
  }
/* Botón del primer miembro */
/* Primer miembro */
.team-section .team-member-single:nth-of-type(1) .btn-see-more {
  align-self: flex-start;
  margin-left: 40px;
}

/* Segundo miembro */
.team-section .team-member-single:nth-of-type(2) .btn-see-more {
  align-self: flex-start;
  margin-left: 30px;
}

/* Tercer miembro */
.team-section .team-member-single:nth-of-type(3) .btn-see-more {
  align-self: flex-start;
  margin-left: 15px;
}

/* Cuarto miembro */
.team-section .team-member-single:nth-of-type(4) .btn-see-more {
  align-self: flex-start;
  margin-left: 70px;
}
/* Quinto miembro */
.team-section .team-member-single:nth-of-type(5) .btn-see-more {
  align-self: flex-start;
  margin-left: 50px;  /* ajusta según quieras */
}

/* Sexto miembro */
.team-section .team-member-single:nth-of-type(6) .btn-see-more {
  align-self: flex-start;
  margin-left: 20px;
}

/* Séptimo miembro */
.team-section .team-member-single:nth-of-type(7) .btn-see-more {
  align-self: flex-start;
  margin-left: 30px;
}

/* Octavo miembro */
.team-section .team-member-single:nth-of-type(8) .btn-see-more {
  align-self: flex-start;
  margin-left: 50px;
}
.team-member-single::before {
  content: "";
  position: absolute;
  top: 0;                 /* inicio arriba del bloque */
  left: 1%;              /* mover más a la derecha de la imagen */
  width: 6px;             /* grosor de la línea vertical */
  height: 100%;           /* sigue siendo vertical */
  background: linear-gradient(to bottom, #01537b, #378ba4);
  border-radius: 3px;     
  z-index: 0;             /* debajo del contenido */
}

/* Contenido encima de la línea */
.team-photo,
.team-content,
.btn-see-more {
  position: relative;
  z-index: 1;
}

}
/* Evitar espacio en blanco horizontal */
html, body {
  overflow-x: hidden;
}
/* 🔒 BLOQUEAR SCROLL CUANDO MENÚ ESTÁ ABIERTO */
body.menu-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}


.hamburger-btn {
  font-size: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2000;
  display: none; /* 🔹 oculto por defecto en pantallas grandes */
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Iconos dentro del botón */
.hamburger-btn .hamburger-icon {
  display: block;
  color: #1962ea;
}

.hamburger-btn .close-icon {
  display: none;
  color: #000;
}

/* Cuando el menú está abierto */
.hamburger-btn.open .hamburger-icon {
  display: none;
}
.hamburger-btn.open .close-icon {
  display: block;
}

/* ================= MENÚ HAMBURGUESA ================= */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  padding: 190px 20px 20px 20px;
  background: rgba(25, 98, 234, 0.9);
  width: 280px;
  height: 100%;
  position: fixed;
  top: 0;
  right: -280px; 
  z-index: 1000;
  transition: right 0.3s ease;
}

.hamburger-menu.open {
  right: 0;
}

/* Animación de links */
.hamburger-menu a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  margin: 18px 0;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateX(20px);
}

.hamburger-menu.open a:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateX(0); }

.hamburger-menu a:hover {
  transform: translateX(5px);
}


/* ================= MEDIA QUERY - mostrar en móviles ================= */


/* ================= HEADER / MENÚ HAMBURGUESA ================= */

/* Desktop: menú normal */
.hamburger-btn {
  display: none; /* oculto en desktop */
}
.hamburger-menu {
  display: none; /* oculto en desktop */
}


/* SOLO MÓVILES */
@media (max-width: 768px) {
  .hamburger-btn.open-btn {
    display: flex;           /* siempre visible */
    position: absolute;      /* relativo a header */
    top: 20px;               /* desde arriba del header */
    right: 20px;             /* desde la derecha del header */
    z-index: 50;             /* suficiente solo para el header */
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .hamburger-btn.open-btn img {
    width: 100%;
    height: auto;
  }
}
.scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 20px;
  z-index: 9999;

  font-size: 38px; /* tamaño grande de la flecha */
  background: none; /* quitamos el fondo azul */
  border: none;

  cursor: pointer;
  display: none; /* oculto por defecto */
  transition: transform 0.2s ease;
}

.scroll-top-btn:hover {
  transform: scale(1.2); /* pequeño efecto al tocar */
}

/* solo móviles */
@media (max-width:768px){
  .scroll-top-btn{
    display:block;
  }
}
/* =================================================
   RESPONSIVE MOBILE (≤900px)
================================================= */
@media (max-width: 900px) {


/* =================================================
   BLOQUEAR SCROLL CUANDO EL MENÚ ESTÁ ABIERTO
================================================= */

html:has(.hamburger-menu.open),
body:has(.hamburger-menu.open) {
  overflow: hidden;
  height: 100vh;
}

html, body {
  overflow-x: hidden;
}


/* =================================================
   HEADER
================================================= */

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.header-content .logo {
  max-width: 150px;
  height: auto;
}
.header {
  position: relative;
}

/* =================================================
   NAV
===

/* seguridad para el boton */
.hamburger-btn{
  pointer-events:auto !important;
}

.hero,
.hero-wrapper {
  position: relative;
  z-index: 1;
}




/* BOTONES */
.hero-text .btn {
  display: block;        /* 🔥 uno debajo del otro */
  width: 100%;
  max-width: 260px;
  margin: 10px auto;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.95rem;
  border-radius: 30px;
}


.hamburger-menu.open ~ .hero .hero-text {
  opacity: 0;
  pointer-events: none;
}



/* =================================================
   MENÚ HAMBURGUESA
================================================= */

/* Desktop */

.hamburger-btn {
  display: none;
}

.hamburger-menu {
  display: none;
}


/* Mobile */

.hamburger-btn {
  display: flex;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
}


/* Iconos */

.hamburger-btn .hamburger-icon { display: inline; color: #1962ea; }
.hamburger-btn .close-icon { display: none; color: #fff; }
.hamburger-btn.open .hamburger-icon { display: none; }
.hamburger-btn.open .close-icon { display: inline; }


/* Menú */

.hamburger-menu {
  width: 100vw;
  height: auto;
  min-height: 100vh;
  right: -100vw;
  top: 0;
  padding: 60px 20px 20px 20px;
  background: #01537b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  position: fixed;
  z-index: 10000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.hamburger-menu.open {
  right: 0;
}

.hamburger-menu a {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-align: center;
  font-size: 1.2rem;
  width: 100%;
  max-width: 250px;
  margin: 10px auto;
  padding: 10px 0;
  color: #fff;
  text-decoration: none;
}


/* Cerrar */

.close-btn {
  display: flex;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10001;
  background: transparent;
  border: none;
  cursor: pointer;
}

.close-btn img {
  width: 48px;
  height: auto;
}


/* Overlay */

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}
@media (max-width: 768px) {
  .hero-text {
    margin-left: 0;
    margin-top: 0;
    text-align: center;
  }

  .hero-text h1,
  .hero-text p {
    margin-left: 0;
  }

  .hero-text p {
    white-space: normal; /* 🔥 importante para que no se salga */
  }
}
}





