/* ══════════════════════════════════════════
   RESET & VARIABLES
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue:      #1651C8;
  --blue-dk:   #0f3a96;
  --blue-deep: #091f52;
  --blue-mid:  #5a87e8;
  --blue-lt:   #e8eefa;
  --black:     #0a0a0a;
  --g900:      #111;
  --g600:      #4b4b4b;
  --g700:      #333;
  --g500:      #666;
  --g300:      #bbb;
  --g100:      #f0f0f0;
  --white:     #fff;
  --fd: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --transition: all .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--fb);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

section[id] {
  scroll-margin-top: 95px;
}
/* ══════════════════════════════════════════
   NAV — MOBILE FIRST
══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
}
nav {
  position: relative;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 58px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-name { font-family: var(--fd); font-weight: 800; font-size: 20px; color:var(--blue-mid); }
.logo-name span { color:white ; }

/* hamburger */
.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer;
  padding: 4px; border-radius: 6px; transition: background .18s;
}
.burger:hover { background: rgba(255,255,255,0.08); }
.burger span {
  display: block; height: 2px; background: white; border-radius: 2px;
  transition: var(--transition); transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu drawer */
.nav-drawer {
  position: fixed; top: 58px; left: 0; right: 0; bottom: 0;
  background: var(--black); z-index: 499;
  display: flex; flex-direction: column; padding: 2rem 1.5rem;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  color: rgba(255,255,255,0.75); text-decoration: none; font-size: 22px;
  font-family: var(--fd); font-weight: 700; padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color .18s;
}
.nav-drawer a:hover { color: white; }
.nav-drawer .d-cta {
  margin-top: 1.5rem; background: var(--blue); color: white !important;
  text-align: center; padding: 14px !important; border-radius: 8px;
  border-bottom: none !important; font-size: 16px !important;
}

/* desktop nav links — hidden on mobile, shown on desktop */
.nav-links {
  display: none;
  align-items: center; gap: 1.75rem; list-style: none;
}
.nav-links a { font-size: 13.5px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color .18s; }
.nav-links a:hover { color: white; }
.nav-cta {
  background: var(--blue) !important; color: white !important;
  padding: 7px 18px; border-radius: 6px; font-weight: 500 !important;
  transition: background .18s !important;
}
.nav-cta:hover { background: var(--blue-dk) !important; }

@media (min-width: 768px) {
  nav { padding: 0 2.5rem; height: 62px; }
  .nav-links { display: flex; }
  .burger { display: none; }
  .nav-drawer { display: none !important; }
}

/* ══════════════════════════════════════════
   HERO — mobile first, bg photo ready
══════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  min-height: 85vh;
  display: flex; align-items: center; justify-content: center;

  /*
    ── FONDO ──
  */
  background-color: var(--blue-deep);
  background-image:
    /* foto de fondo */
    url('../imagenes/fondoHero.jpg');
  background-size: cover;
  background-position: center;
}

/* overlay oscuro semitransparente sobre la foto */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9,31,82,0.80) 0%,
    rgba(9,31,82,0.65) 60%,
    rgba(9,31,82,0.85) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 700px; margin: 0 auto;
}


.hero h1 {
  font-family: var(--fd); font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 4rem);
  color: white; line-height: 1.1; letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: clamp(15px, 3vw, 18px);
  color: rgba(255,255,255,0.7);
  max-width: 480px; margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.btn-w {
  background: white; color: var(--blue-dk);
  border: none; padding: 12px 24px; border-radius: 8px;
  font-family: var(--fb); font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-w:hover { background: #dce9ff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

.btn-ghost {
  background: rgba(255,255,255,0.1); color: white;
  border: 1px solid rgba(255,255,255,0.3); padding: 12px 24px; border-radius: 8px;
  font-family: var(--fb); font-size: 14px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
  transition: var(--transition); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ══════════════════════════════════════════
   BOLETO ESTUDIANTIL
══════════════════════════════════════════ */
.be-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #0f3a96 100%);
  padding: 2rem 1.5rem;
}

.be-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: center;
}

.be-content {
  max-width: 780px;
}

.be-content h2 {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 22px;
  color: white;
  margin-bottom: 0.55rem;
}

.be-content p {
  max-width: 720px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.be-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.be-list li {
  position: relative;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13.5px;
  line-height: 1.45;
}

.be-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}

.be-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  background: white;
  color: var(--blue-dk);
  padding: 11px 20px;
  border-radius: 8px;
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease;
}

.be-cta:hover {
  background: #dce9ff;
}

.be-cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@media (min-width: 768px) {
  .be-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .be-cta {
    justify-self: end;
    white-space: nowrap;
  }
}
/* ══════════════════════════════════════════
   LAYOUT HELPERS
══════════════════════════════════════════ */
.section { padding: 3rem 1.5rem; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.sec-hd { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.sec-title { font-family: var(--fd); font-weight: 700; font-size: 22px; color: var(--black); display: flex; align-items: center; gap: 9px; }
.sec-title svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 2; flex-shrink: 0; }
.sec-hint { font-size: 13px; color: var(--g500); }

/* ══════════════════════════════════════════
   HORARIOS
══════════════════════════════════════════ */
.lineas-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.linea-btn {
  background: white; border: 1.5px solid var(--g100);
  border-radius: 8px; padding: .65rem 1.1rem; cursor: pointer; text-align: left;
  transition: var(--transition); min-width: 100px;
  box-shadow: var(--shadow);
}
.linea-btn:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.linea-btn.active { background: var(--black); border-color: var(--black); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.l-num { font-family: var(--fd); font-size: 22px; font-weight: 800; color: var(--black); line-height: 1.1; transition: color .18s; }
.linea-btn.active .l-num { color: white; }
.l-lbl { font-size: 11px; color: var(--g500); line-height: 1.3; transition: color .18s; }
.linea-btn.active .l-lbl { color: rgba(255,255,255,0.55); }
.aviso-festivos { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(245, 158, 11, 0.4); background: #fff7ed; color: #7c2d12; font-size: 14px; line-height: 1.45; }
.aviso-festivos strong { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 800; letter-spacing: 0.2px; }
.aviso-festivos span { display: block; }
.dia-tabs { display: flex; gap: 0; margin-bottom: 1.25rem; border: 1.5px solid var(--g100); border-radius: 8px; overflow: hidden; width: 100%; }
.dia-tab {
  flex: 1; background: white; border: none; border-right: 1.5px solid var(--g100);
  padding: 9px 6px; font-family: var(--fb); font-size: 12px; color: var(--g500);
  cursor: pointer; transition: var(--transition); white-space: nowrap; text-align: center;
}
.dia-tab:last-child { border-right: none; }
.dia-tab:hover { background: var(--g100); color: var(--black); }
.dia-tab.active { background: var(--black); color: white; font-weight: 500; }
.dia-tab.festivo { color: var(--blue); }
.dia-tab.festivo.active { background: var(--blue); color: white; }

.rec-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.rec-tab {
  background: var(--g100); border: none; border-radius: 6px;
  padding: 7px 13px; font-family: var(--fb); font-size: 12px; color: var(--g700);
  cursor: pointer; transition: var(--transition);
}
.rec-tab:hover { background: #dce5fb; color: var(--blue); transform: translateY(-1px); }
.rec-tab.active { background: var(--blue); color: white; font-weight: 500; box-shadow: 0 4px 12px rgba(22,81,200,0.3); }

.h-panel {
  background: var(--g100); border-radius: var(--radius); padding: 1.25rem;
  transition: var(--transition);
}
.h-panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem;
  padding-bottom: 1rem; border-bottom: 1px solid #ddd;
}
.h-title { font-family: var(--fd); font-size: 14px; font-weight: 700; color: var(--black); }
.h-badge { font-size: 11px; background: white; border: 1px solid #ddd; border-radius: 20px; padding: 3px 12px; color: var(--g500); }
.h-cols { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.turno-lbl { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--g500); margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.turno-lbl svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.times { display: flex; flex-wrap: wrap; gap: 6px; }
.tc {
  background: white; border: 1px solid #e0e0e0; border-radius: 6px;
  font-size: 13px; font-weight: 500; color: var(--black); padding: 5px 11px;
  font-family: var(--fb); transition: var(--transition); cursor: default;
}
.sin-servicio { text-align: center; padding: 2rem; color: var(--g500); font-size: 14px; font-style: italic; grid-column: 1/-1; }

@media (min-width: 600px) {
  .dia-tab { font-size: 13px; padding: 9px 16px; }
  .h-cols { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════
   NOSOTROS
══════════════════════════════════════════ */
.nosotros { background: var(--black); padding: 3rem 1.5rem; }
.nosotros-inner { max-width: 1080px; margin: 0 auto; }
.nosotros-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
  margin-top: 1.75rem;
}
.nos-text h2 { font-family: var(--fd); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); color: white; line-height: 1.2; margin-bottom: 1.25rem; }
.nos-text h2 span { color: var(--blue-mid); }
.nos-text p { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 1rem; }
.nos-img {
  border-radius: var(--radius); overflow: hidden;
  height: 260px; position: relative;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  transition: var(--transition);
}
.nos-img:hover { transform: scale(1.01); box-shadow: 0 32px 64px rgba(0,0,0,0.5); }
.nos-img img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
  .nosotros-grid { grid-template-columns: 1fr 1fr; }
  .nos-img { height: 360px; }
}
.nos-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.nos-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--g300);
  font-size: 15px;
  line-height: 1.6;
}

.nos-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
/* ══════════════════════════════════════════
   GALERÍA
══════════════════════════════════════════ */
.galeria { padding: 3rem 1.5rem; background: var(--g100); }
.galeria-inner { max-width: 1080px; margin: 0 auto; }
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  gap: 10px;
  margin-top: 1.75rem;
}
.gal-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.gal-item:hover { transform: scale(1.02); box-shadow: var(--shadow-hover); z-index: 2; }
.gal-item img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform .4s ease; }
.gal-item:hover img { transform: scale(1.06); }
.gal-item:first-child { grid-column: span 2; }
.gal-item:first-child img { height: 220px; }
.gal-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,31,82,0.55) 0%, transparent 50%);
  opacity: 0; transition: opacity .3s;
}
.gal-item:hover .gal-overlay { opacity: 1; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lb-img { max-width: 90vw; max-height: 85vh; border-radius: 8px; object-fit: contain; }
.lb-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.1); border: none; color: white;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  font-size: 20px; display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.lb-close:hover { background: rgba(255,255,255,0.2); }
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: white;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 22px; display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.lb-arrow:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

@media (min-width: 600px) {
  .galeria-grid { grid-template-columns: repeat(3, 1fr); }
  .gal-item:first-child { grid-column: span 2; }
  .gal-item img { height: 200px; }
  .gal-item:first-child img { height: 260px; }
}

/* ══════════════════════════════════════════
   TRABAJÁ CON NOSOTROS
══════════════════════════════════════════ */
.trabaja {
  padding: 2.5rem 1.5rem;
  background: var(--white);
}

.trabaja-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  background: var(--g100);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

.trabaja-text h2 {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.trabaja-text p {
  max-width: 700px;
  font-size: 14px;
  color: var(--g600);
  line-height: 1.7;
  margin-bottom: 0.65rem;
}
.trabaja-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 8px;
  transition: background 0.18s ease;
}

.trabaja-btn:hover {
  background: var(--blue-dk);
}

@media (min-width: 768px) {
  .trabaja-inner {
    grid-template-columns: 1fr auto;
    padding: 1.75rem 2rem;
  }

  .trabaja-btn {
    justify-self: end;
    white-space: nowrap;
  }
}

/* ══════════════════════════════════════════
   FORMULARIO DE CONTACTO
══════════════════════════════════════════ */
.contacto {
  padding: 3rem 1.5rem;
}

.ct-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.ct-left h2 {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 22px;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.ct-left p {
  font-size: 14px;
  color: var(--g500);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Datos de contacto */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.contact-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--blue-mid);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item span {
  font-size: 13px;
  color: var(--g600);
  line-height: 1.5;
}

.contact-item a {
  color: var(--g600);
  text-decoration: none;
  transition: color 0.18s ease;
}

.contact-item a:hover {
  color: var(--black);
}

/* Card del formulario */
.f-card {
  background: var(--g100);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}


.fg {
  margin-bottom: 14px;
}

.fg label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--g700);
  margin-bottom: 5px;
}

.fg input,
.fg select,
.fg textarea {
  width: 100%;
  box-sizing: border-box;
  background: white;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 10px 13px;
  font-family: var(--fb);
  font-size: 14px;
  color: var(--black);
  outline: none;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 81, 200, 0.1);
}

.fg textarea {
  resize: vertical;
  min-height: 110px;
}

.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Botón enviar */
.btn-send {
  width: 100%;
  background: var(--blue);
  color: white;
  border: none;
  padding: 13px;
  border-radius: 8px;
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition:
  background 0.18s ease,
  opacity 0.18s ease,
  box-shadow 0.18s ease,
  transform 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.btn-send.is-success {
  background: #22a95a;
  color: white;
  cursor: default;
  box-shadow: 0 10px 22px rgba(34, 169, 90, 0.28);
  animation: successPop 0.28s ease;
}

.btn-send.is-success:hover {
  background: #22a95a;
}

.btn-send.is-success:disabled {
  opacity: 1;
}

.btn-send.is-success svg {
  stroke: white;
}

@keyframes successPop {
  0% {
    transform: scale(0.98);
  }

  60% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}
/* Error formulario */
.f-err {
  display: none;
  background: #fff0f0;
  border: 1px solid #ffc5c5;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 13px;
  color: #c0392b;
}

@media (min-width: 768px) {
  .ct-inner {
    grid-template-columns: 1fr 1.6fr;
    align-items: start;
  }

}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Botón flotante Instagram */
.instagram-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 16px 10px 11px;
  border-radius: 999px;

  background: white;
  color: var(--blue-mid);
  border: 1px solid rgba(22, 81, 200, 0.18);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);

  font-size: 14px;
  font-weight: 700;
  text-decoration: none;

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.instagram-float-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;

  display: inline-grid;
  place-items: center;

  background: rgba(22, 81, 200, 0.09);
  color: var(--blue-mid);

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.instagram-float-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.instagram-float:hover {
  transform: translateY(-3px);
  color: var(--g900);
  border-color: transparent;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

.instagram-float:hover .instagram-float-icon {
  color: white;
  background: linear-gradient(
    135deg,
    #f58529 0%,
    #dd2a7b 35%,
    #8134af 70%,
    #515bd4 100%
  );
  transform: rotate(-5deg) scale(1.06);
}

@media (max-width: 520px) {
  .instagram-float {
    right: 14px;
    bottom: 14px;
    padding: 9px 13px 9px 9px;
    font-size: 13px;
  }

  .instagram-float-icon {
    width: 32px;
    height: 32px;
  }
}

/* ============================= */
/* BOTÓN FLOTANTE INSTAGRAM */
/* ============================= */

.instagram-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 52px;
  height: 52px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: white;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    #f58529 0%,
    #dd2a7b 35%,
    #8134af 70%,
    #515bd4 100%
  );
  border: none;
  box-shadow: 0 14px 34px rgba(129, 52, 175, 0.22);

  font-size: 14px;
  font-weight: 700;
  text-decoration: none;

  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  overflow: hidden;

  transition:
    width 0.26s ease,
    opacity 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease,
    padding 0.26s ease,
    gap 0.26s ease;
}

.instagram-float.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.instagram-float-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
}

.instagram-float-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.instagram-float-text {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  transform: translateX(-4px);

  transition:
    max-width 0.24s ease,
    opacity 0.18s ease,
    transform 0.22s ease;
}

.instagram-float:hover {
  width: 145px;
  padding: 0 17px;
  gap: 9px;

  color: white;
  box-shadow: 0 20px 46px rgba(129, 52, 175, 0.34);
  filter: saturate(1.08) brightness(1.03);
  transform: translateY(-3px);
}

.instagram-float:hover .instagram-float-text {
  max-width: 90px;
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 520px), (hover: none) {
  .instagram-float {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
    padding: 0;
    gap: 0;
  }

  .instagram-float:hover {
    width: 50px;
    padding: 0;
    gap: 0;
    transform: translateY(0);
  }

  .instagram-float-text {
    display: none;
  }

  .instagram-float:hover .instagram-float-text {
    max-width: 0;
    opacity: 0;
  }
}


/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--g900);
  color: white;
}

.footer-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand .f-logo {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 20px;
  color: var(--blue-mid);
  margin-bottom: 0.5rem;
}

.footer-brand .f-logo span {
  color: white;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-col p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.footer-col strong {
  color: rgba(255, 255, 255, 0.86);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-contact-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--blue-mid);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-contact-item a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.42);
}

/* Desktop */
@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
/* firma del dev */
.dev-sig {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.36);
  display: inline-flex;
  align-items: center;
  transition: color 0.25s ease;
}

.dev-sig:hover {
  color: rgba(255, 255, 255, 0.65);
}

.dev-sig a {
  color: inherit;
  text-decoration: none;
}
/* ══════════════════════════════════════════
   SCROLL REVEAL (animaciones de entrada)
   - Los elementos son visibles por defecto
   - JS agrega .js-ready al body para activar las animaciones
══════════════════════════════════════════ */
.js-ready .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1 !important; transform: translateY(0) !important; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
