/* =========================================================
   1) RESET & BASE
========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

html, body { height: 100%; }

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background: #f4f4f4;
  color: #222;
  display: flex;               /* sticky footer layout */
  flex-direction: column;
  min-height: 100vh;
}

/* Sticky footer: el main ocupa el espacio disponible */
main { flex: 1; }

/* Utilidades de layout */
.container { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.section { padding: 3rem 1rem; }
.narrow { max-width: 700px; margin: 0 auto; }
.center { text-align: center; }

.lead { font-size: 1.1rem; margin-bottom: 1rem; }

/* =========================================================
   2) HEADER / NAV (sticky, color fijo)
========================================================= */
:root {
  --header-h: 64px; /* ajusta si tu header es más alto/bajo */
}

.site-header {
  position: fixed;        /* siempre pegado a la ventana */
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 10000;
  background: #222;       /* color fijo */
}

/* Asegura la altura interna del nav */
.nav { 
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links a { margin-left: 1rem; color: #fff; }
.nav-links a.active { border-bottom: 2px solid #fff; }

/* Marca */
.brand {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;
}
.brand-text { display: inline-block; }
.brand-logo {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Botón Contacto resaltado en el nav */
.nav-links .btn--primary {
  background: #444;            /* más claro que el nav para contrastar */
  border-color: #444;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
}
.nav-links .btn--primary:hover {
  background: #666;
  border-color: #666;
}

/* =========================================================
   3) HERO (full-screen, overlay y fade inferior)
========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?q=80&w=1600&auto=format&fit=crop") center/cover no-repeat;
  color: #fff;
  text-align: left;
  overflow: hidden;
}

/* Overlay para legibilidad */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Fade inferior hacia el fondo de la página */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #f4f4f4 100%);
  z-index: 2;
}

/* Contenido del hero */
.hero__grid {
  position: relative;
  z-index: 3;
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Panel translúcido para el texto del hero */
.hero__text {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: saturate(120%) blur(2px);
  -webkit-backdrop-filter: saturate(120%) blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1.5rem;
  color: #fff;
}

/* Tipografía dentro del hero */
.hero__text .eyebrow {
  color: #cfd6e4;
  font-size: 0.95rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero__text h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0.6rem 0 0.75rem;
  color: #fff;
  text-wrap: balance;
}
.hero__text .lead {
  font-size: 1.125rem;
  color: #e8eef7;
  max-width: 60ch;
}

/* Sombras de texto para contraste */
.hero__text h1,
.hero__text .lead,
.hero__text .eyebrow {
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* CTAs del hero */
.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* =========================================================
   4) BOTONES (globales + variantes claras en hero)
========================================================= */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  text-align: center;
  transition: all 0.3s ease;
}

.btn--primary {
  background: #222;
  color: #fff;
  border: 2px solid #222;
}
.btn--primary:hover {
  background: #444;
  border-color: #444;
}

.btn--ghost {
  background: transparent;
  color: #222;
  border: 2px solid #222;
}
.btn--ghost:hover {
  background: #222;
  color: #fff;
}

/* Variantes dentro del hero (claras) */
.hero .btn { border-radius: 999px; font-weight: 600; }
.hero .btn--primary { background: #fff; color: #111; border: 2px solid #fff; }
.hero .btn--primary:hover { background: #e9edf3; border-color: #e9edf3; }
.hero .btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.9); }
.hero .btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

/* Botones centrados sueltos en secciones */
.center-btn { text-align: center; margin-top: 2rem; }
.center2-btn { text-align: center; margin-top: 2rem; }

/* Accesibilidad: foco visible en hero */
.hero a:focus-visible,
.hero .btn:focus-visible {
  outline: 3px solid rgba(255,255,255,0.85);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.25);
}

/* =========================================================
   5) CARDS (genéricas)
========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.card__icon { font-size: 2rem; margin-bottom: 0.5rem; }

/* =========================================================
   6) FORMULARIOS (básicos)
========================================================= */
.form .field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.form input, .form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.form button {
  background: #222;
  color: #fff;
  padding: 0.7rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.form button:hover { background: #444; }

/* =========================================================
   7) CONTACT PAGE (moderna)
========================================================= */
/* Hero con degradado suave */
.contact-hero {
  background: linear-gradient(135deg, #f0f2f5 0%, #ffffff 60%, #eef1ff 100%);
  border-bottom: 1px solid #e9e9e9;
  padding: 3rem 1rem 2rem;
}
.contact-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.contact-hero .muted { color: #555; }

/* Grid principal */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* Tarjeta elevada con glass ligero */
.card-elevated {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.card-title { font-size: 1.25rem; margin-bottom: 0.25rem; }

/* Form moderno */
.modern-form { margin-top: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.modern-form .field span { font-size: 0.9rem; color: #555; margin-bottom: 0.4rem; }
.modern-form input, .modern-form textarea {
  padding: 0.8rem 0.9rem;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.modern-form input::placeholder, .modern-form textarea::placeholder { color: #9aa0a6; }
.modern-form input:focus, .modern-form textarea:focus {
  outline: none;
  border-color: #222;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}
.inline-check { margin: 0.5rem 0 0.75rem; }
.btn-wide { width: 100%; margin-top: 0.3rem; }

/* Lateral suave */
.modern-side .soft {
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
}
.badges { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
}

/* Mapa */
.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 12px;
  margin-top: 0.5rem;
}

/* Listas dentro de paneles (contacto/horarios) con aire */
.panel ul {
  list-style-position: inside;
  padding-left: 0.5rem;
  margin-left: 0;
}
.panel ul li {
  padding-left: 0.5rem;
  margin: 0.35rem 0;
}

.panel {
  padding: 1rem; /* añade aire interno por todos lados */
}

.panel h3 {
  margin-top: 0;       /* elimina el colapso del margen */
  margin-bottom: 0.75rem; /* separa el título del contenido de abajo */
}


/* =========================================================
   8) FOOTER
========================================================= */
.site-footer { background: #222; color: #fff; padding: 1rem 0; }
.footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer__links a { margin-left: 1rem; color: #fff; }

/* =========================================================
   9) PRICING (planes) — botones alineados abajo
========================================================= */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: stretch;        /* mismas alturas */
}
.plan {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan--highlight {
  border: 2px solid #222;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.plan__header h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.plan__subtitle { color: #666; font-size: 0.95rem; margin-bottom: 0.75rem; }
.price { font-size: 2rem; font-weight: 700; margin: 0.5rem 0 0.75rem 0; }

/* La lista crece y empuja el bloque de acciones */
.features {
  list-style: none;
  margin: 0.5rem 0 1rem 0;
  padding: 0;
  flex: 1 1 auto;
}
.features li {
  padding-left: 1.25rem;
  position: relative;
  margin: 0.4rem 0;
}
.features li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1;
}

/* CTA pegada abajo */
.plan__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.plan__cta { display: block; text-align: center; }
.plan__tag { margin-top: 0.75rem; font-size: 0.9rem; color: #555; text-align: center; }

/* Nota de extras */
.note { margin-top: 2rem; }
.bullets { margin-top: 0.5rem; padding-left: 1.2rem; }
.bullets li { margin: 0.35rem 0; }

/* =========================================================
   10) EFECTOS / UTILIDADES
========================================================= */
/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   11) RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .hero__text { padding: 1.25rem; }
  .hero__text h1 { font-size: 2.1rem; }
  .hero__text .lead { font-size: 1.05rem; }
  .cta-row { gap: 0.9rem; justify-content: center; }

  .contact-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .btn-wide { width: 100%; }

  /* Si tuvieras hero__grid en columnas, colapsa a una */
  /* .hero__grid { grid-template-columns: 1fr; } */
}

/* Respeta usuarios con menos animación */
@media (prefers-reduced-motion: reduce) {
  .btn, .hero__text { transition: none; }
}

body { 
  padding-top: var(--header-h);
}



/* Botón hamburguesa (oculto en PC) */
.hamburger {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}

/* Sidebar oculto por defecto */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #111;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  z-index: 1000;
}

.sidebar a {
  padding: 10px 20px;
  text-decoration: none;
  font-size: 20px;
  color: #f1f1f1;
  display: block;
  transition: 0.2s;
}

.sidebar a:hover {
  background-color: #575757;
}

.sidebar .closebtn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 36px;
}

/* Responsive: en móvil ocultamos nav normal y mostramos hamburguesa */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }
}



/* Animación hover en los planes */
.plan {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan:hover {
  transform: translateY(-8px); /* se levanta un poco */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


.hamburger {
  font-size: 28px;   /* tamaño del símbolo ☰ */
  color: #fff;       /* color blanco */
  background: none;  /* quita fondo por si acaso */
  border: none;      /* quita borde */
  cursor: pointer;   /* cursor tipo mano */
}