* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;

}

/* NAVBAR ESTILO PRINCIPAL */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  
}

/* Contenedor interno */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  height: 50px;
}



/* Botón de Contacto */
.nav-button {
  background-color: #004b8d;
  color: white;
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.nav-button:hover {
  background-color: #003366;
}

/* Ícono de Menú (Hamburguesa) */
.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #004b8d;
}

/* Checkbox oculto para manejar el estado del menú */
#menu-toggle {
  display: none;
}

/* Responsive: Estilos para pantallas pequeñas */
@media (max-width: 768px) {
  /* Ocultar menú normal en móvil */
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  /* Mostrar menú como columna */
  .nav-menu ul {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0;
  }

  .nav-menu ul li {
    margin: 1rem 0;
  }

  /* Mostrar ícono hamburguesa */
  .menu-icon {
    display: block;
  }

  /* Mostrar menú desplegable cuando se activa el checkbox */
  #menu-toggle:checked + .menu-icon + .nav-menu {
    display: block;
  }

  /* Opcional: esconder el botón en móvil */
  .nav-button {
    display: none;
  }
}

/* Hero */


/* Responsive Hero */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    padding: 0 1rem;
  }
}

/* Services */
.services {
  padding: 4rem 2rem;
  background-color: #f5f5f5;
  text-align: center;
}

.services h2 {
  font-size: 3rem;
  color: #004b8d;
  margin-bottom: 100px;
}

/* Contenedor de las cartas */
.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: 1fr;
  }
}
/* Carta general */
.card {
  perspective: 1000px;
  width: 100%;
  height: 400px; /* Aumenta la altura */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-front {
  background: white;
  display: flex;
  flex-direction: column;
}

.card-front img {
  width: 100%;
  height: 70%;
  object-fit: cover;
}

.card-front h3 {
  height: 15%;
  margin: 0;
  background-color: #004b8d;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  text-transform: uppercase;
}

.card-back {
  background-color: #004b8d;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}



/* Animación de entrada con scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ocultar inicialmente */
.card {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* Animación escalonada (delay para cada una) */
.card:nth-child(1) {
  animation-delay: 0.2s;
}
.card:nth-child(2) {
  animation-delay: 0.4s;
}
.card:nth-child(3) {
  animation-delay: 0.6s;
}


.ventajas {
  margin-top: 170px;
  background-color: #fff;
  padding: 5rem 2rem;
}

.ventajas-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.ventajas-texto h2 {
  font-size: 3rem; /* antes 2.5rem */
  color: #004b8d;
  margin-bottom: 1rem;
}

.ventajas-texto p {
  font-size: 1.25rem; /* antes 1.1rem */
  color: #333;
  line-height: 1.8; /* más respiro */
  margin-bottom: 2rem;
}

.ver-mas {
  color: #004b8d;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid #004b8d;
  padding-bottom: 0.2rem;
}

.ventajas-listado {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.ventaja-icono {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ventaja-icono img {
  width: 60px; /* antes 40px */
  height: 60px;
}

.ventaja-icono h3 {
  font-size: 1.3rem; /* antes 1.1rem */
}

.ventaja-icono p {
  font-size: 1.05rem; /* antes 0.95rem */
  line-height: 1.6;
}

@media (max-width: 900px) {
  .ventajas-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ventajas-listado {
    grid-template-columns: 1fr;
  }

  .ventaja-icono {
    justify-content: center;
    text-align: left;
  }
}

/* Clientes */
.clientes {
  margin-top: 150px;
  padding: 4rem 2rem;
  background-color: #f5f5f5;
  text-align: center;
}

.clientes h2 {
  font-size: 3rem;
  color: #004b8d;
  margin-bottom: 2rem;
}

/* Carrusel */
.slider {
  height: 100px;
  overflow: hidden;
  position: relative;
}

.slide-track {
  display: flex;
  width: calc(250px * 12); /* 6 logos x 2 para efecto continuo */
  animation: scroll 30s linear infinite;
}

.slide {
  width: 250px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: auto;
  height: 120px;
  max-width: 140px;  /* Ajusta según necesidad */
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: 0.3s ease;
}

.slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.slide img[src$="3.png"]{
  height: 92.8px !important;  /* prueba 92.7–92.9 si hace falta */
}

.logo-mcdermott {
  position: relative;
  top: 15px;
}

.logo-cabot {
   position: relative;
  top: 9.5px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.socios {
  padding: 4rem 2rem;
  background-color: #ffffff;
  text-align: center;
}

.socios-texto {
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.socios-texto h2 {
  font-size: 3rem;
  color: #004b8d;
}

.socios-texto p {
  font-size: 1.25rem;
  color: #333;
  margin-top: 0.8rem;
}

.socios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.socios-grid img {
  max-width: 130px;
  max-height: 80px;
  object-fit: contain;
  padding: 10px;

}

.socios-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.porque-mosaisa {
  padding: 5rem 2rem;
  background-color: #ffffff;
  margin-top: 100px;
}

.porque-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem auto;
}

.porque-header h2 {
  font-size: 3rem;
  color: #004b8d;
  margin-bottom: 1rem;
}

.porque-header p {
  font-size: 1.15rem;
  color: #333;
  line-height: 1.8;
  text-align: center;
}

.porque-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.porque-imagen {
  flex: 1 1 450px;
  text-align: center;
  margin-top: 20px;
}

.porque-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 20px;
}

.porque-grid {
  flex: 1 1 600px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.porque-item {
  background: #f5f7fa;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  text-align: center;
  transition: transform 0.3s ease;
}

.porque-item:hover {
  transform: translateY(-4px);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.5rem;
  background-color: #004b8d10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrapper img {
  width: 30px;
  height: 30px;
}

.porque-item h3 {
  font-size: 1.15rem;
  color: #004b8d;
  margin-bottom: 0.3rem;
}

.porque-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  margin: 0;
}

/* NAVBAR FUNCIONAL */
.main-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-menu li {
  position: relative;
}

.main-menu > li > a {
  color: #004b8d;
  font-weight: bold;
  text-decoration: none;
  padding: 1rem;
  display: block;
  font-size: 20px; /* este valor es el del index real */
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  list-style: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 999;
}

.submenu li a {
  display: block;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: #004b8d;
  font-size: 0.9rem;
  white-space: nowrap;
}

.submenu li a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover > .submenu {
  display: block;
}

/* Sub-submenús hacia la derecha */
.submenu .dropdown {
  position: relative;
}

.submenu .dropdown .submenu {
  top: 0;
  left: 100%;
  position: absolute;
}

.carousele{
    height: 600px; 
    perspective: 250px;    
    
}
.carousele .carousele-item {
  width: 450px;
  background: #fff;
  padding: 50px;
  height: auto;
  text-align: center;
    border-radius: 15px;
}
.img-area {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50%;
  border: inset 8px deepskyblue;
}
        .img-area img{
            width: 100%;
        }
        .testi p {
  color: #262626;
  font-size: 18px;
  line-height: 1.9;
}
        .testi h4 {
  font-size: 20px;
  margin: 0;
  color: #000;
}
        .testi h5 {
  font-size: 14px;
  letter-spacing: 5px;
  margin: 7px 0;
}

.section__container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
  text-align: center;
  padding: 35px;
}

.section__container h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.section__container h1 {
  position: relative;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.section__container h1::after {
  position: absolute;
  content: "";
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 2px;
  width: 5rem;
  background-color: var(--primary-color);
}

.section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.section__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 5rem 2rem 2rem;
  background-color: var(--white);
  border-radius: 5px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.section__card::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 75%;
  aspect-ratio: 1;
  border-radius: 100%;
  background-color: var(--primary-color);
  z-index: -1;
  transition: 0.5s;
}

.section__card span {
  position: absolute;
  top: 0;
  left: 0;
  padding: 1rem;
  font-size: 3rem;
  color: var(--white);
}

.section__card h4 {
  margin-top: 4rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: 0.3s;
}

.section__card p {
  margin-bottom: 2rem;
  color: var(--text-light);
  transition: 0.3s;
}

.section__card img {
  margin-bottom: 1rem;
  max-width: 100px;
  border-radius: 100%;
  border: 2px solid var(--primary-color);
  transition: 0.3s;
}

.section__card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: 0.3s;
}

.section__card h6 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
  transition: 0.3s;
}

.section__card:hover::before {
  width: 400%;
}

.section__card:hover :is(h4, h5) {
  color: var(--white);
}

.section__card:hover :is(p, h6) {
  color: var(--secondary-color);
}

.section__card:hover img {
  border-color: var(--white);
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #149e9e;
  --secondary-color: #e8e8e8;
  --text-dark: #0f172a;
  --text-light: #94a3b8;
  --white: #ffffff;
}




#testimonial_area {
  background-color: #f5f5f5;
  padding: 5rem 2rem;
  text-align: center;
}

.testimonios-header h2 {
  font-size: 3rem;
  color: #004b8d;
  margin-bottom: 1rem;
}

.testimonios-header p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 3rem;
}

.box-area {
  padding: 30px;
  background: #fff;
  color: #000;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  margin: 40px 0;
  position: relative;
}

.box-area h5 {
  font-size: 16px;
  font-weight: 700;
  color: #004b8d;
  margin-top: 30px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.box-area span {
  font-size: 13px;
  color: #333;
  margin-bottom: 10px;
  display: block;
}

.box-area .content {
  font-style: italic;
  font-size: 1rem;
  color: #333;
}

.img-area {
  width: 90px;
  height: 90px;
  position: absolute;
  top: -45px;
  left: 0;
  right: 0;
  margin: 0 auto;
  border: 5px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 5px 4px rgba(0, 0, 0, 0.2);
}

.img-area img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.socials {
  margin-top: 20px;
}

.socials i {
  margin: 0 10px;
  color: #004b8d;
  font-size: 18px;
}

.presencia {
  padding: 5rem 2rem;
  background-color: #ffffff;
  text-align: center;
}

.presencia-contenido {
  max-width: 900px;
  margin: 0 auto;
}

.presencia-contenido h2 {
  font-size: 3rem;
  color: #004b8d;
  margin-bottom: 1.5rem;
}

.presencia-contenido p {
  font-size: 1.25rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.mapa-mexico {
  width: auto;
  max-width: 100%;
  height: auto;
}

.producto-banner {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.producto-banner h1 {
  font-size: 3rem;
  color: #004b8d;
  margin-bottom: 1rem;
}

.producto-banner p {
  font-size: 1.2rem;
  color: #444;
  max-width: 800px;
  margin: 0 auto;
}

.productos {
  padding: 3rem 2rem;
  background-color: #f5f5f5;
}

.producto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.producto-item {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.producto-item:hover {
  transform: translateY(-5px);
}

.producto-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.producto-item h3 {
  font-size: 1.1rem;
  color: #004b8d;
  margin-bottom: 0.5rem;
}

.producto-item p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.colores {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ccc;
}

.color.azul { background-color: #004b8d; }
.color.gris { background-color: #aaa; }
.color.caqui { background-color: #c2b280; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: auto;
  
}
.product-card {
  background: #fff;
  border-radius: 10px;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
}
.product-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}
.product-card h3 {
  font-size: 1rem;
  margin: 0.5rem 0;
}
.product-card p {
  font-weight: bold;
}
.detalle {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.detalle-img img {
  width: 300px;
  border-radius: 10px;
}
.detalle-info {
  max-width: 400px;
}
.buttons {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}
.btn {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 10px;
  align-content: center;
  background-color: #004b8d;
  color: white;
}
.black {
  background: black;
  color: white;
}
.similares {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.product-card.small {
  width: 200px;
}

.title {
  text-align: center;
  font-size: 2rem;
  color: #004b8d;
  margin-bottom: 2rem;
}

.espacio{
  margin-top: 175px;
}

.productos-uniformes {
  
  padding: 0rem 2rem 4rem; /* Menos espacio arriba, lo demás igual */
  text-align: center;

}

.productos-uniformes h2 {
  
  color: #004b8d;
  
 padding: 0 2rem 4rem;
   margin-top: 0;
  padding-top: 0;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.producto {
  background: white;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.producto h3 {
  font-size: 1.3rem;
  color: #004b8d;
  margin-bottom: 0.5rem;
}

.producto p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.btn-interesa {
  display: inline-block;
  background-color: #004b8d;
  color: white;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-interesa:hover {
  background-color: #003366;
}

.colores-producto {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.colores-producto .color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid #ccc;
  transition: transform 0.2s ease;
}

.colores-producto .color:hover {
  transform: scale(1.1);
}

.color.azul { background-color: #004b8d; }
.color.negro { background-color: #000000; }
.color.militar { background-color: #4b5320; } /* verde militar */

.productos-con-filtros {
  display: flex;
  gap: 2rem;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: flex-start;
}

.filtros-laterales {
  flex: 0 0 220px;
  border-right: 1px solid #ccc;
  padding-right: 1.5rem;
}

.filtros-laterales h2 {
  font-size: 2rem;
  color: #004b8d;
  margin-bottom: 1.5rem;
}

.filtro-lista {
  list-style: none;
  padding: 0;
}

.filtro-lista li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.filtro-lista li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.3s;
}

.filtro-lista li a:hover {
  color: #004b8d;
}

.productos-uniformes {
  flex: 1;
}

.detalle {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 3rem auto;
  max-width: 1200px;
  padding: 2rem;
}

.detalle-img img {
  width: 350px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.detalle-info {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detalle-info h2 {
  font-size: 2rem;
  color: #004b8d;
  margin-bottom: 1rem;
}

.detalle-info p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #444;
  line-height: 1.6;
}

.similares {
  padding: 4rem 2rem;
  background-color: #f5f5f5;
  text-align: center;
}

.similares .title {
  font-size: 2rem;
  color: #004b8d;
  margin-bottom: 2rem;
}

/* Fondo difuminado para el popup */
.overlay-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
}

.overlay-popup.active {
  display: block;
}

/* Popup centrado */
.card-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 10000;
  transition: transform 0.3s ease;
  max-width: 400px;
  width: 90%;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.card-popup.active {
  transform: translate(-50%, -50%) scale(1);
}

.card-popup img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.card-popup .close-popup-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #004b8d;
}

.card-popup h3 {
  margin-top: 1rem;
  color: #004b8d;
}

.card-popup p {
  font-size: 0.95rem;
  color: #333;
  margin: 1rem 0;
}

.card-popup .color-picker-popup {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.card-popup .color-picker-popup .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: transform 0.2s ease;
  background-size: cover;
}

.card-popup .color-picker-popup .dot:hover {
  transform: scale(1.1);
}

.card-popup form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.card-popup input[type="text"],
.card-popup input[type="email"],
.card-popup textarea {
  width: 100%;
  max-width: 300px;
  padding: 0.6rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.card-popup input:focus,
.card-popup textarea:focus {
  outline: none;
  border-color: #004b8d;
}

.card-popup textarea {
  min-height: 80px;
  resize: vertical;
}

.card-popup .btn-interesa {
  margin-top: 0.5rem;
  padding: 0.6rem 1.5rem;
  background-color: #004b8d;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.card-popup .btn-interesa:hover {
  background-color: #003366;
}

@media (max-width: 768px) {
  .card-popup {
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-sizing: border-box;
  }

  .card-popup img {
    max-width: 100%;
    height: auto;
  }

  .card-popup form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }

  .card-popup input,
  .card-popup textarea,
  .card-popup button {
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
}

.nosotros-hero-block {
  background-color: #0a2b53;
  padding: 3rem 2rem;
  color: white;
}

.nosotros-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
}

.nosotros-hero .text {
  flex: 1;
  min-width: 280px;
}

.nosotros-hero .text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.nosotros-hero .text p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.nosotros-hero .imagen {
  flex: 1;
  text-align: center;
}

.nosotros-hero .imagen img {
  max-width: 100%;
  border-radius: 10px;
}

.nosotros-historia-bloque {
  background-color: #0a2b53;
  color: white;
  padding: 4rem 2rem;
}

.historia-contenido {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
  gap: 2rem;
}

.historia-texto {
  flex: 1;
  min-width: 280px;
}

.historia-texto h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.historia-texto ul {
  list-style: none;
  padding-left: 0;
  font-size: 1.1rem;
  line-height: 2;
}

.historia-img {
  flex: 1;
  text-align: center;
}

.historia-img img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nosotros-valores {
  background-color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
}

.nosotros-valores h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.valor-item {
  background-color: #0a2b53;
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.valor-item img {
  width: 48px;
  margin-bottom: 1rem;
}

.valor-item h3 {
  margin: 0;
  font-size: 1rem;
}

.nosotros-galeria {
  background-color: #0a2b53;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

.nosotros-galeria h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.galeria-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Tipografía y títulos */
.nosotros-hero-content h1,
.nosotros-historia-bloque h2,
.nosotros-valores h2,
.nosotros-galeria h2 {
  font-family: 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  color: white;
}

.nosotros-hero .text p,
.nosotros-historia-bloque ul,
.valor-item h3 {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: white;
}

/* Colores de fondo corregidos */
.nosotros-hero-block {
  background-color: #ffffff; /* Fondo blanco */
  color: #0a2b53; /* Texto azul oscuro */
  padding: 4rem 2rem;
}

.nosotros-hero .text h1 {
  color: #0a2b53;
}

.nosotros-hero .text p {
  color: #0a2b53;
}

/* Texto blanco si no se había aplicado correctamente */
.nosotros-hero .text,
.nosotros-historia-bloque .historia-texto,
.nosotros-galeria {
  color: white;
}

/* Espaciado más amplio entre secciones */
.nosotros-hero-block,
.nosotros-historia-bloque,
.nosotros-valores,
.nosotros-galeria {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Ajustes de íconos */
.valor-item img {
  width: 48px;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1); /* para asegurar buen contraste en fondo oscuro */
}

.flipcards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.flipcard {
  perspective: 1000px;
  width: 100%;
  height: 300px;
}

.flipcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flipcard:hover .flipcard-inner {
  transform: rotateY(180deg);
}

.flipcard-front,
.flipcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.flipcard-front {
  background-color: #ffffff;
  color: #004b8d;
}

.flipcard-front img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.flipcard-front h3 {
  font-size: 1.2rem;
  margin: 0;
}

.flipcard-back {
  background-color: #004b8d;
  color: white;
  transform: rotateY(180deg);
  font-size: 1rem;
  line-height: 1.6;
}

.flip-card {
  background-color: transparent;
  width: 300px;
  height: 320px;
  perspective: 1000px;
  margin: 20px auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s ease-in-out;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  overflow: hidden;
}

.flip-card-front {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.card-title {
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  font-weight: bold;
  padding: 15px;
  font-size: 1.1rem;
}

.flip-card-back {
  background-color: white;
  color: #004b8d;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.flip-card-back h3 {
  margin: 10px 0;
  font-size: 1.2rem;
}

.flip-card-back p {
  font-size: 0.95rem;
  color: #333;
}

.read-more {
  margin-top: 10px;
  text-decoration: none;
  color: #004b8d;
  font-weight: bold;
}

.footer {
  background-color: #010720;
  color: #ffffff;
  padding: 60px 20px 30px;
  font-family: 'Poppins', sans-serif;
}

.footer .container2 {
  max-width: 1200px;
  margin: auto;
}

.footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 0 2rem;
}
.footer-col {
  flex: 1 1 22%;
  min-width: 220px;
  margin: 20px 10px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  text-transform: capitalize;
  color: #ffffff;
}

.footer-col h4::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 2px;
  width: 50px;
  background-color: #efb810;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #bbbbbb;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 8px;
}

.footer-col .social-links a {
  display: inline-block;
  height: 40px;
  width: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: 0.3s;
}

.footer-col .social-links a:hover {
  background-color: #ffffff;
  color: #004b8d;
}

.mapa-footer iframe {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: 10px;
}

.footer-copy {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #ffffff;
  opacity: 0.8;
}

/* Responsive para móviles */
@media(max-width: 767px){
  .footer-col {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer .row {
    justify-content: center;
  }

  .footer-col .social-links {
    justify-content: center;
  }
}

.mapa-footer iframe {
  border-radius: 10px;
  width: 100%;
  height: 180px;
  border: none;
}

/* HERO full-bleed centrado */
.hero--fullbleed .hero__container{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: clamp(420px, 50vw, 800px);
  overflow: hidden;
  position: relative;
}

/* Imagen rellena; encuadre para desktop */
.hero--fullbleed .hero__img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 38% 42%;
}

/* En móvil centramos el encuadre (pero ya cargará bannercel.png) */
@media (max-width: 600px){
  .hero--fullbleed .hero__container{ height: clamp(420px, 110vw, 680px); }
  .hero--fullbleed .hero__img{ object-position: center; }
}

/* Fallback por si algún navegador no soporta aspect-ratio */
@supports not (aspect-ratio: 1) {
  .hero__container{ height: clamp(220px, 34vw, 420px); }
}

