/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: #f4f6f9;
  color: #1a1f36;
  line-height: 1.6;
}

/* ===== CONTENEDOR ===== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 1.5rem;
}

/* ===== HEADER ===== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #dce3ee;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 78px;
}

.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #0b5fa5;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #0f7bdc;
  transition: width 0.2s;
}

.nav a:hover {
  color: #073b6d;
}

.nav a:hover::after {
  width: 100%;
}

/* ===== LANG SWITCH ===== */
.lang-switch {
  display: flex;
  gap: 0.25rem;
}

.lang-switch button {
  border: 1px solid #d0d7e2;
  background: #f8fafc;
  color: #0b1a2b;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-switch button.active {
  background: #0b5fa5;
  color: #fff;
  border-color: #0b5fa5;
}

.lang-switch button:hover:not(.active) {
  background: #e5edf7;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0d4a77 0%, #0f7bdc 100%);
  color: white;
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 400;
}

.lead {
  font-size: 1.0rem;
  opacity: 0.9;
  margin: 1rem 0 2rem;
}

.btn {
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s;
}

.btn.primary {
  background: #ffffff;
  color: #0b5fa5;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  background: #e8eef7;
}

.btn.ghost {
  background: transparent;
  border: 2px solid white;
  color: white;
  margin-left: 1rem;
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.note {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.75rem;
}

.hero-media img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* Zoom suave en hover */
.zoom-on-hover img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.zoom-on-hover:hover img {
  transform: translateY(-4px) scale(1.30);
  box-shadow: 0 22px 50px rgba(0,0,0,0.45);
}

/* Zoom suave en hover */
.zoom-on-hover-gallery img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.zoom-on-hover-gallery:hover img {
  transform: translateY(-4px) scale(1.50);
  box-shadow: 0 22px 50px rgba(0,0,0,0.45);
}


/* ===== SECCIONES ===== */
.section {
  padding: 3rem 0;
  scroll-margin-top: 70px;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.6rem;
  color: #0b1a2b;
}

/* ===== BENEFICIOS ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  list-style: none;
}

.features li {
  background: white;
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid #e1e7f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ===== GALERÍA ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #dce3ee;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ===== TARJETA CERTIFICADO ===== */
.card {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid #e1e7f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cert-image {
  width: 94%;
  max-width: 175px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cert-image:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
}


/* ===== ENLACES DE INTERES ===== */

.i18n-label {
  display: inline-block;
  margin-right: 0.4rem;
  font-weight: 600;
  color: #222;
}

/* Asegúrate de que los enlaces sean visibles */
.enlace-right a {
  color: #0066cc;
  text-decoration: underline;
}


.enlace {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid #e1e7f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.enlace-anim {
  animation: fadeUp 0.6s ease-out;
}

.enlace-image {
  width: 95%;
  max-width: 175px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.enlace-image:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
}




/* ===== EQUIPO ===== */


.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
 
}

.team-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .5rem;
  text-align: center;
  color: #333;
}


.team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}


.team-wrapper {
  position: relative;
  width: 40%;        /* antes era 100% */
  margin: 0 auto;    /* centrado */
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 12px;
}


.team-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 1rem;
  text-align: center;
  transition: opacity .4s ease;
}

.team-wrapper:hover .team-overlay {
  opacity: 1;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.team-wrapper:hover .team-img {
  transform: scale(1.05);
}


.team-link {
  text-decoration: none;
  display: inline-block;
}


.team-figure {
  text-align: center;
  margin: 0;
}

.team-cau {
  text-align: center;
  margin: 0;
}

.team-caption a {
  text-decoration: none;
  color: #005bbb;
  font-weight: 600;
  
}

.team-caption a:hover {
  color: #003f7d;
}


.muted {
	text-decoration: underline;
	text-decoration-color: #005bbb;
  text-decoration-thickness: 2px;
  color: #005bbb;
  margin-top: 0.75rem;
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 2rem 0;
  color: #6b7280;
  font-size: 0.9rem;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.65);
  z-index: 50;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===== ANIMACIONES ===== */
.fade-in {
  animation: fadeInBody 0.5s ease-out;
}

@keyframes fadeInBody {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-anim {
  animation: fadeUp 0.6s ease-out;
}


.img-anim:hover {
  animation: fadeUp 1.2s ease-out forwards;
}


.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


.modal-anim {
  animation: scaleIn 0.25s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .btn.ghost {
    margin-left: 0;
    margin-top: 1rem;
  }

  .card {
    flex-direction: column;
    text-align: center;
  }
  
  .enlace {
    flex-direction: column;
    text-align: center;
  }

  .site-header .container {
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .team {
    grid-template-columns: 1fr;
  }

  .team-wrapper {
    width: 60%; /* un poco más grande en móvil */
  }
}



/* ===== FOOTER ===== */

.bg-bluedark {
   
  background: linear-gradient(to bottom, #0d4a77 95%, #0f7bdc 100%);
  color: white;
}


.footer {
  width: 100%;
  padding: 2.75rem 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container-xl, container-fluid
 {
    padding-left: 15.75rem;
    padding-right: 15.75rem;
}


.columna {
  flex: 1;              /* Ambas columnas ocupan el mismo ancho */
  padding: 10px;
}

.columna img {
  max-width: 100%;      /* La imagen se adapta al ancho de su columna */
  height: auto;
  display: block;
}


.footer-image img {
    width: 234px;
    height: auto;
    filter: invert(1)
}

.footer-content {
    text-align: center;
}

.footer-content__copyright
 {
    color: #fff;
    font-weight: 400;
}


