@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600&display=swap');

:root {
  --azul: #1c4587;
  --azul-rgb: 28, 69, 134;
  --gris-clarito: #e6e7e8;
  --gris-medio: #d1d3d4;
  --gris-texto: #58595b;
  --gris-oscuro: #414042;
  --rojo: #e6454a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  color: var(--gris-oscuro);
  padding-top: 76px;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; }

/* ===== MENU ===== */
.menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 76px;
  background: var(--azul);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.menu-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-logo img { height: 42px; width: auto; }

.menu-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.menu-nav a {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  position: relative;
  padding: 6px 0;
}

.menu-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--rojo);
  transition: width .25s ease;
}

.menu-nav a:hover::after { width: 100%; }

.menu-nav .menu-avion { font-size: 18px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* ===== HERO / HOME ===== */
.hero {
  position: relative;
  height: calc(100vh - 76px);
  min-height: 560px;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.55) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  width: 90%;
  max-width: 560px;
}

.hero-content .hero-logo { width: min(320px, 80vw); }
.hero-content .hero-frase { width: min(380px, 85vw); }

.hero-buttons {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-buttons img {
  height: 56px;
  width: auto;
  transition: transform .2s ease;
}

.hero-buttons a:hover img { transform: translateY(-3px); }

.hero-statsbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(var(--azul-rgb), .7);
  padding: 16px 0;
}

.hero-stats-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats-row img { height: 34px; width: auto; }

/* ===== HACEMOS QUE EL CONOCIMIENTO TENGA ESCENARIO ===== */
.section-hacemos {
  background: var(--gris-clarito);
  padding: 80px 0 70px;
  text-align: center;
}

.section-hacemos h2 {
  color: var(--azul);
  font-weight: 800;
  font-size: clamp(19px, 2.2vw, 30px);
  max-width: 1100px;
  margin: 0 auto 28px;
  letter-spacing: .3px;
}

.section-hacemos p {
  color: #111;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
  font-size: 16px;
}

.iconos-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;
}

.iconos-row img { width: 130px; }

/* ===== VERTICAL TITLE (Servicios / Nos eligen / Tambien hacemos / Footer) ===== */
.vtitle {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 150px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.vtitle-label {
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.vtitle-line-area {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.vtitle-line {
  position: absolute;
  left: 75.4%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #000;
}

.footer .vtitle-line { background: #bcbec0; }

/* ===== SERVICIOS ===== */
.section-servicios {
  position: relative;
  background: #fff;
  padding: 90px 0 90px 190px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.servicio-item img.servicio-foto { border-radius: 2px; }

.servicio-item h3 {
  display: none; /* el título ya viene incluido en la imagen */
}

.servicio-item p {
  color: var(--gris-texto);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 16px 0 10px;
}

.servicio-item .ver-mas img { height: 20px; width: auto; }

/* ===== EVENTOS ===== */
.section-eventos {
  background: var(--gris-medio);
  padding: 90px 0;
}

.section-eventos .container { max-width: 1400px; }

.eventos-carousel {
  display: flex;
  align-items: center;
  gap: 18px;
}

.eventos-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.eventos-track {
  display: flex;
  transition: transform .5s ease;
}

.eventos-page {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  flex: 0 0 100%;
  min-width: 0;
}

.eventos-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--azul);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.eventos-arrow:hover:not(:disabled) { background: var(--rojo); }

.eventos-arrow:disabled {
  opacity: .35;
  cursor: default;
}

.eventos-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.eventos-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #b9bbbd;
  cursor: pointer;
}

.eventos-dot.active { background: var(--azul); }

.evento-item picture { display: block; }

.evento-item img.evento-flyer {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 380px;
  border-radius: 4px;
}

.evento-linea {
  width: 46px;
  height: 3px;
  background: var(--rojo);
  margin: 18px 0 10px;
}

.evento-item h3 {
  color: var(--gris-texto);
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 6px;
  letter-spacing: .5px;
}

.evento-item p {
  color: var(--gris-texto);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

/* ===== NOS ELIGEN ===== */
.section-noseligen {
  position: relative;
  background: #fff;
  padding: 90px 0 90px 190px;
}

.noseligen-carousel {
  position: relative;
  min-height: 160px;
}

.noseligen-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.noseligen-carousel img.active { position: relative; opacity: 1; }

/* ===== TAMBIEN HACEMOS ===== */
.section-tambien {
  position: relative;
  background: var(--gris-clarito);
  padding: 90px 0 90px 190px;
}

.tambien-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.tambien-item { text-align: center; }

.tambien-item img { border-radius: 4px; }

.tambien-linea {
  width: 36px;
  height: 2px;
  background: var(--gris-oscuro);
  margin: 16px auto 10px;
}

.tambien-item h3 {
  color: var(--gris-oscuro);
  font-weight: 800;
  font-size: 14px;
  margin: 0;
  letter-spacing: .5px;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  background: var(--azul);
  color: #fff;
}

.footer-main {
  padding: 80px 0 50px 190px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding: 20px 0;
}

.footer-bottom p {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .75);
}

.footer-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.footer-form input,
.footer-form textarea {
  width: 100%;
  border: none;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  border-radius: 2px;
}

.footer-form textarea { min-height: 90px; resize: vertical; }

.footer-form button {
  background: var(--rojo);
  color: #fff;
  border: none;
  padding: 12px 26px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity .2s ease;
}

.footer-form button:hover { opacity: .85; }

.footer-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.footer-form-msg {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 2px;
  font-size: 13.5px;
  line-height: 1.5;
}

.footer-form-msg-ok {
  background: rgba(255, 255, 255, .92);
  color: #1c6b3a;
}

.footer-form-msg-error {
  background: rgba(255, 255, 255, .92);
  color: var(--rojo);
}

.footer-info { display: flex; flex-direction: column; gap: 22px; }
.footer-info .footer-logo img { width: 190px; }

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.footer-info-item img { width: 24px; height: 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .vtitle { width: 130px; }
  .section-servicios,
  .section-noseligen,
  .section-tambien { padding-left: 170px; }
  .footer-main { padding-left: 170px; }
}

@media (max-width: 992px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .eventos-page { grid-template-columns: repeat(2, 1fr); }
  .tambien-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .menu-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--azul);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .menu-nav.open { max-height: 340px; padding: 10px 24px 20px; }
  .menu-nav a { padding: 12px 0; width: 100%; }
  .menu-toggle { display: block; }

  .vtitle { width: 100px; }
  .section-servicios,
  .section-noseligen,
  .section-tambien { padding-left: 120px; }
  .footer-main { padding-left: 120px; }

  .iconos-row img { width: 100px; }
}

@media (max-width: 560px) {
  .servicios-grid,
  .eventos-page,
  .tambien-grid { grid-template-columns: 1fr; }

  .hero-buttons img { height: 46px; }

  .vtitle { width: 80px; }
  .section-servicios,
  .section-noseligen,
  .section-tambien { padding-left: 96px; }
  .footer-main { padding-left: 96px; }

  .eventos-carousel { gap: 8px; }
  .eventos-arrow { width: 34px; height: 34px; font-size: 16px; }
}

/* ===== GALERIA DE SERVICIOS ===== */
.galeria-header img {
  display: block;
  width: 100%;
  height: auto;
}

.galeria-intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.galeria-intro .galeria-titulo {
  height: 26px;
  width: auto;
  display: block;
}

.galeria-intro .galeria-volver {
  display: inline-block;
  color: var(--azul);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
}

.galeria-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px 90px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.galeria-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 0;
  min-width: 0;
}

.galeria-item {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: none;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.galeria-item.decorativa { cursor: default; }

.galeria-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform .3s ease, opacity .3s ease;
}

.galeria-item:not(.decorativa):hover img {
  transform: scale(1.05);
  opacity: .92;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

body.lightbox-active { overflow: hidden; }

.lightbox-volver {
  position: absolute;
  top: 22px;
  left: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  z-index: 2;
}

.lightbox-figure {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-figure img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 2px;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.lightbox-arrow:hover { background: rgba(255, 255, 255, .25); }
.lightbox-arrow-prev { left: 16px; }
.lightbox-arrow-next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  letter-spacing: .3px;
}

@media (max-width: 768px) {
  .lightbox-arrow { width: 42px; height: 42px; font-size: 20px; }
  .lightbox-arrow-prev { left: 8px; }
  .lightbox-arrow-next { right: 8px; }
}

@media (max-width: 480px) {
  .galeria-grid { gap: 10px; }
  .galeria-col { gap: 10px; }
}
