/* ==========================================================================
   Dra. Nombre Apellido – Dermatología Clínica y Estética
   Hoja de estilos principal (CSS3 nativo, sin dependencias)

   Índice
   1.  Variables (colores, tipografía, espacios)
   2.  Base
   3.  Utilidades
   4.  Botones
   5.  Encabezado y navegación
   6.  Selector de idioma
   7.  Hero (página de inicio)
   8.  Secciones genéricas
   9.  Tarjetas
   10. Preguntas frecuentes
   11. Páginas internas
   12. Pie de página
   13. Botones flotantes, ventana modal y aviso (toast)
   14. Animaciones
   15. Responsive
   ========================================================================== */


/* 1. Variables
   -------------------------------------------------------------------------- */
:root {
  /* Fondo y texto */
  --color-bg: #fbf9f6;            /* blanco suave */
  --color-surface: #ffffff;
  --color-text: #2f3b47;          /* gris pizarra */
  --color-text-soft: #5a6672;
  --color-border: #e7e1d8;

  /* Neutros */
  --color-neutral: #f2eee8;       /* crudo */
  --color-beige: #f4eee6;

  /* Azul pastel */
  --color-blue-soft: #e3eef6;
  --color-blue: #9dbbd3;
  --color-blue-deep: #3f6a8a;

  /* Verde salvia */
  --color-sage-soft: #e4ece3;
  --color-sage: #9db59f;
  --color-sage-deep: #4f6f5c;     /* color principal de acción */

  /* Rosa pálido / terracota */
  --color-rose-soft: #f7e6e1;
  --color-terracotta: #d9a28c;
  --color-terracotta-deep: #9c5b44;

  --color-whatsapp: #25d366;
  --color-footer: #2f3b47;

  /* Tipografía (fuentes del sistema: carga instantánea, sin descargas) */
  --font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Bordes, sombras y medidas */
  --radius-sm: 0.8rem;
  --radius-md: 1.6rem;
  --radius-lg: 2.8rem;
  --radius-pill: 99.9rem;
  --shadow-sm: 0 0.2rem 0.8rem rgba(47, 59, 71, 0.06);
  --shadow-md: 0 1.2rem 3.2rem rgba(47, 59, 71, 0.09);
  --shadow-lg: 0 2.4rem 6rem rgba(47, 59, 71, 0.14);
  --header-height: 7.6rem;
  --container: 120rem;
  --transition: 0.25s ease;
}


/* 2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.6rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.7rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}


h1,
h2,
h3,
h4 {
  margin: 0 0 1.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

/* El h1 se usa una sola vez por página (título principal) */
h1 {
  font-size: clamp(3.6rem, 2.4rem + 3.6vw, 6.4rem);
}

h2 {
  font-size: clamp(2.8rem, 2.2rem + 1.8vw, 4rem);
}

h3 {
  font-size: 2.2rem;
}

p {
  margin: 0 0 1.6rem;
}

a {
  color: var(--color-blue-deep);
  text-underline-offset: 0.3rem;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-sage-deep);
}

:focus-visible {
  outline: 0.3rem solid var(--color-blue-deep);
  outline-offset: 0.3rem;
  border-radius: 0.4rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}


/* 3. Utilidades
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 2rem;
}

.container--narrow {
  max-width: 80rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1.6rem;
  z-index: 300;
  padding: 1.2rem 2rem;
  background: var(--color-text);
  color: #ffffff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1.6rem;
  color: #ffffff;
}

.icon {
  display: inline-block;
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-terracotta-deep);
}

.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 0.2rem;
  background: var(--color-terracotta);
  border-radius: 0.2rem;
}

.lead {
  font-size: 1.9rem;
  color: var(--color-text-soft);
}

.text-soft {
  color: var(--color-text-soft);
}

.check-list {
  display: grid;
  gap: 0.8rem;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 2.8rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 0.2rem;
  width: 1.4rem;
  height: 0.8rem;
  border-left: 0.2rem solid var(--color-sage-deep);
  border-bottom: 0.2rem solid var(--color-sage-deep);
  transform: rotate(-45deg);
}


/* 4. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 4.8rem;
  padding: 1.2rem 2.6rem;
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 0.15rem solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-0.2rem);
}

.btn-primary {
  background-color: var(--color-sage-deep);
  color: #ffffff;
  box-shadow: 0 0.8rem 2rem rgba(79, 111, 92, 0.25);
}

.btn-primary:hover {
  background-color: #3f5c4b;
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-sage);
  color: var(--color-sage-deep);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #0e2f1c;
}

.btn-whatsapp:hover {
  background-color: #1fbd5a;
  color: #0e2f1c;
}

.btn-small {
  min-height: 4rem;
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-sage-deep);
}

.btn-link .icon {
  width: 1.8rem;
  height: 1.8rem;
  transition: transform var(--transition);
}

.btn-link:hover .icon {
  transform: translateX(0.4rem);
}


/* 5. Encabezado y navegación
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 249, 246, 0.9);
  -webkit-backdrop-filter: blur(1.2rem);
  backdrop-filter: blur(1.2rem);
  border-bottom: 0.1rem solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--color-text);
  text-decoration: none;
}

.brand img {
  width: 4.4rem;
  height: 4.4rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 600;
}

.brand-tag {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0.9rem 1.2rem;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: background-color var(--transition), color var(--transition);
}

.nav-list a:hover {
  background-color: var(--color-neutral);
  color: var(--color-text);
}

.nav-list a[aria-current="page"] {
  background-color: var(--color-sage-soft);
  color: var(--color-sage-deep);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* Botón del menú móvil (hamburguesa) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  width: 4.8rem;
  height: 4.8rem;
  padding: 0;
  background: var(--color-surface);
  border: 0.1rem solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 2rem;
  height: 0.2rem;
  background: var(--color-text);
  border-radius: 0.2rem;
  transition: transform var(--transition), opacity var(--transition);
}

.site-header.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(0.7rem) rotate(45deg);
}

.site-header.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-0.7rem) rotate(-45deg);
}


/* 6. Selector de idioma (usa <details>, funciona incluso sin JavaScript)
   -------------------------------------------------------------------------- */
.lang-switcher {
  position: relative;
}

.lang-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 4.4rem;
  padding: 0.8rem 1.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  list-style: none;
  background: var(--color-surface);
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color var(--transition);
}

.lang-switcher summary::-webkit-details-marker {
  display: none;
}

.lang-switcher summary:hover {
  border-color: var(--color-sage);
}

.lang-switcher summary .icon {
  width: 1.8rem;
  height: 1.8rem;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  z-index: 10;
  min-width: 20rem;
  padding: 0.8rem;
  list-style: none;
  background: var(--color-surface);
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 1.4rem;
  font-size: 1.5rem;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.lang-menu a:hover {
  background: var(--color-neutral);
  color: var(--color-text);
}

.lang-menu a[aria-current="true"] {
  background: var(--color-sage-soft);
  color: var(--color-sage-deep);
  font-weight: 600;
}

.lang-code {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-soft);
}


/* 7. Hero (página de inicio)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.6rem 0 12rem;
  background:
    radial-gradient(circle at 88% 18%, var(--color-rose-soft) 0, transparent 38%),
    radial-gradient(circle at 6% 92%, var(--color-blue-soft) 0, transparent 42%),
    radial-gradient(circle at 50% 50%, var(--color-beige) 0, transparent 70%),
    var(--color-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 6.4rem;
}

.hero-name {
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 1.9rem + 0.8vw, 2.8rem);
  font-weight: 600;
  color: var(--color-terracotta-deep);
}

.hero h1 {
  margin-bottom: 2rem;
}

.hero h1 span {
  display: block;
  color: var(--color-sage-deep);
  font-style: italic;
  font-weight: 500;
}

.hero-university {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.4rem;
  font-size: 1.5rem;
  color: var(--color-text-soft);
}

.hero-university .icon {
  color: var(--color-terracotta-deep);
}

.hero-lead {
  max-width: 56rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 3.2rem 0 2.8rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.4rem;
  font-size: 1.4rem;
  font-weight: 500;
  background: var(--color-surface);
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius-pill);
}

.chip .icon {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--color-sage-deep);
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.hero-media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 46rem;
}

/* Marco en forma de arco con un contorno decorativo desplazado */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 2.4rem -2.4rem -2.4rem 2.4rem;
  border: 0.15rem solid var(--color-terracotta);
  border-radius: 24rem 24rem 3.2rem 3.2rem;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 24rem 24rem 3.2rem 3.2rem;
  background: var(--color-sage-soft);
  box-shadow: var(--shadow-lg);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.8rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.hero-badge--top {
  top: -8%;
  left: -6rem;
}

.hero-badge--bottom {
  bottom: 10%;
  right: -3.2rem;
}

.hero-badge-number {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-sage-deep);
}

.hero-badge-label {
  max-width: 12rem;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--color-text-soft);
}


/* 8. Secciones genéricas
   -------------------------------------------------------------------------- */
.section {
  padding: 9.6rem 0;
}

.section--beige {
  background-color: var(--color-beige);
}

.section--white {
  background-color: var(--color-surface);
}

.section-header {
  max-width: 72rem;
  margin: 0 auto 5.6rem;
  text-align: center;
}

.section-header p {
  color: var(--color-text-soft);
}

.section-footer {
  margin-top: 4.8rem;
  text-align: center;
}

/* Franja de contacto superpuesta al hero */
.contact-strip {
  position: relative;
  z-index: 2;
  margin-top: -7.2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.6rem;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 2.4rem;
  background: var(--color-surface);
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.info-card h3 {
  margin: 1.2rem 0 0.4rem;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.info-card p,
.info-card address {
  margin: 0;
  font-size: 1.6rem;
}

.info-card a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.info-card .btn-link {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: 1.5rem;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1.4rem;
  background: var(--color-blue-soft);
  color: var(--color-blue-deep);
}

.icon-badge--sage {
  background: var(--color-sage-soft);
  color: var(--color-sage-deep);
}

.icon-badge--rose {
  background: var(--color-rose-soft);
  color: var(--color-terracotta-deep);
}

.icon-badge--beige {
  background: var(--color-neutral);
  color: var(--color-text);
}

.icon-badge--whatsapp {
  background: #dcf8e7;
  color: #128c4a;
}

.icon-badge--large {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 1.6rem;
}

.icon-badge--large .icon {
  width: 2.6rem;
  height: 2.6rem;
}

/* Bloque de dos columnas: texto + imágenes */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6.4rem;
}

.media-stack {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.6rem;
  align-items: end;
}

.media-stack figure:last-child {
  margin-bottom: 4.8rem;
}

figure {
  margin: 0;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-neutral);
  box-shadow: var(--shadow-md);
}

.media-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

figcaption {
  margin-top: 1.2rem;
  font-size: 1.4rem;
  color: var(--color-text-soft);
}

/* Pasos para agendar */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  list-style: none;
}

.step {
  position: relative;
  padding: 3.2rem;
  background: var(--color-surface);
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius-lg);
}

.step-number {
  display: grid;
  place-items: center;
  width: 4.8rem;
  height: 4.8rem;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--color-terracotta-deep);
  background: var(--color-rose-soft);
  border-radius: 50%;
}

.step h3 {
  font-size: 2rem;
}

.step p {
  margin: 0;
  color: var(--color-text-soft);
}

/* Franja final de llamada a la acción */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 6.4rem 3.2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--color-sage-soft), var(--color-blue-soft));
  border-radius: var(--radius-lg);
}

.cta-band::after {
  content: "";
  position: absolute;
  top: -8rem;
  right: -8rem;
  width: 24rem;
  height: 24rem;
  background: var(--color-rose-soft);
  border-radius: 50%;
  opacity: 0.7;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band p {
  max-width: 56rem;
  margin-inline: auto;
  color: var(--color-text-soft);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 3.2rem;
}


/* 9. Tarjetas
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 2.4rem;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 3.2rem;
  background: var(--color-surface);
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-0.4rem);
  box-shadow: var(--shadow-md);
}

.card .icon-badge {
  margin-bottom: 2.4rem;
}

.card h3 {
  margin-bottom: 1.2rem;
}

.card p {
  color: var(--color-text-soft);
}

.card .check-list {
  margin-bottom: 2.4rem;
  font-size: 1.6rem;
}

.card > :last-child {
  margin-bottom: 0;
}

.card-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 0.1rem dashed var(--color-border);
  font-size: 1.5rem;
}

.card-footer p {
  margin: 0;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.8rem 0 1.6rem;
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-sage-deep);
}

.price small {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-soft);
}

.label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terracotta-deep);
}

.tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-blue-deep);
  background: var(--color-blue-soft);
  border-radius: var(--radius-pill);
}

.tag--sage {
  color: var(--color-sage-deep);
  background: var(--color-sage-soft);
}

.tag--rose {
  color: var(--color-terracotta-deep);
  background: var(--color-rose-soft);
}

.tag--muted {
  color: var(--color-text-soft);
  background: var(--color-neutral);
}

/* Tarjetas del blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 3.2rem;
  list-style: none;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--color-surface);
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: var(--shadow-md);
}

.blog-card-media {
  aspect-ratio: 16 / 10;
  background: var(--color-neutral);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1.2rem;
  padding: 2.4rem 2.4rem 2.8rem;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.blog-card h2,
.blog-card h3 {
  margin: 0;
  font-size: 2.1rem;
}

.blog-card h2 a,
.blog-card h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card h3 a:hover {
  color: var(--color-sage-deep);
}

.blog-card p {
  margin: 0;
  font-size: 1.6rem;
  color: var(--color-text-soft);
}

.blog-card .btn-link {
  margin-top: auto;
  font-size: 1.5rem;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 4.8rem;
}

.filter-btn {
  min-height: 4.4rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.filter-btn:hover {
  border-color: var(--color-sage);
}

.filter-btn[aria-pressed="true"] {
  color: #ffffff;
  background: var(--color-sage-deep);
  border-color: var(--color-sage-deep);
}


/* 10. Preguntas frecuentes
   Título destacado; contenido con un tono más suave.
   -------------------------------------------------------------------------- */
.faq-title {
  display: inline;
  padding: 0 0.4rem;
  background-image: linear-gradient(transparent 62%, var(--color-rose-soft) 62%);
}

.faq-list {
  max-width: 84rem;
  margin: 0 auto;
  border-top: 0.1rem solid var(--color-border);
}

.faq-item {
  border-bottom: 0.1rem solid var(--color-border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 0.4rem;
  font-size: 1.7rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Flecha que gira al abrir */
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-right: 0.6rem;
  border-right: 0.2rem solid var(--color-sage-deep);
  border-bottom: 0.2rem solid var(--color-sage-deep);
  transform: rotate(45deg);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item summary:hover {
  color: var(--color-sage-deep);
}

.faq-answer {
  padding: 0 0.4rem 2.4rem;
  font-size: 1.6rem;
  color: var(--color-text-soft);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.price-table {
  width: 100%;
  margin: 0.8rem 0 1.6rem;
  border-collapse: collapse;
  font-size: 1.6rem;
}

.price-table th,
.price-table td {
  padding: 1.2rem 1.6rem;
  text-align: left;
  border-bottom: 0.1rem solid var(--color-border);
}

.price-table th {
  font-weight: 500;
}

.price-table td {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  color: var(--color-text);
}

.price-table tr:nth-child(odd) {
  background: var(--color-neutral);
}


/* 11. Páginas internas
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 6.4rem 0 5.6rem;
  text-align: center;
  background:
    radial-gradient(circle at 85% 10%, var(--color-rose-soft) 0, transparent 35%),
    radial-gradient(circle at 10% 100%, var(--color-blue-soft) 0, transparent 40%),
    var(--color-beige);
}

.page-hero h1 {
  font-size: clamp(3.4rem, 2.6rem + 2.4vw, 5.2rem);
}

.page-hero .lead {
  max-width: 68rem;
  margin-inline: auto;
}

.breadcrumb {
  margin-bottom: 2rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  list-style: none;
  font-size: 1.4rem;
  color: var(--color-text-soft);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.8rem;
  color: var(--color-terracotta);
}

/* Acerca de nosotros */
.about-photo {
  overflow: hidden;
  border-radius: 24rem 24rem var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-role {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-style: italic;
  color: var(--color-terracotta-deep);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.6rem;
  list-style: none;
}

.stat {
  padding: 2.8rem 2.4rem;
  text-align: center;
  background: var(--color-surface);
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius-md);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 4.4rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-sage-deep);
}

.stat-label {
  font-size: 1.5rem;
  color: var(--color-text-soft);
}

.timeline {
  position: relative;
  display: grid;
  gap: 2.4rem;
  list-style: none;
  padding-left: 3.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  bottom: 0.8rem;
  left: 0.7rem;
  width: 0.2rem;
  background: var(--color-border);
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: -3.2rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--color-surface);
  border: 0.3rem solid var(--color-sage);
  border-radius: 50%;
}

.timeline h3 {
  margin-bottom: 0.4rem;
  font-size: 1.9rem;
}

.timeline p {
  margin: 0;
  color: var(--color-text-soft);
}

.note {
  padding: 2rem 2.4rem;
  font-size: 1.5rem;
  color: var(--color-text);
  background: var(--color-rose-soft);
  border-left: 0.4rem solid var(--color-terracotta);
  border-radius: var(--radius-sm);
}

.note p:last-child {
  margin-bottom: 0;
}

.video-frame {
  overflow: hidden;
  background: var(--color-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Servicios */
.service-group + .service-group {
  margin-top: 8rem;
}

.service-group-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3.2rem;
}

.service-group-header h2 {
  margin: 0;
}

.service-group-header p {
  margin: 0.4rem 0 0;
  color: var(--color-text-soft);
}

.payment-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  list-style: none;
}

.payment-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  font-weight: 500;
  background: var(--color-surface);
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius-pill);
}

.payment-list .icon {
  color: var(--color-sage-deep);
}

/* Artículo del blog */
.article-header {
  padding: 5.6rem 0 4rem;
  text-align: center;
  background: var(--color-beige);
}

.article-header h1 {
  font-size: clamp(3.2rem, 2.4rem + 2.4vw, 4.8rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2rem;
  font-size: 1.5rem;
  color: var(--color-text-soft);
}

.article-cover {
  margin-top: -1px;
  padding-top: 4rem;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.article-body {
  padding: 4.8rem 0 8rem;
  font-size: 1.8rem;
}

.article-body h2 {
  margin-top: 4.8rem;
  font-size: clamp(2.4rem, 2rem + 1vw, 3rem);
}

.article-body ul {
  margin: 0 0 1.6rem;
  padding-left: 2.4rem;
}

.article-body li + li {
  margin-top: 0.6rem;
}

.myth-box {
  display: grid;
  gap: 1.2rem;
  margin: 2.4rem 0;
  padding: 2.4rem;
  background: var(--color-surface);
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius-md);
}

.myth-box p {
  margin: 0;
}

.summary-box {
  margin: 4rem 0;
  padding: 2.8rem;
  background: var(--color-sage-soft);
  border-radius: var(--radius-md);
}

.summary-box h2 {
  margin-top: 0;
}

.disclaimer {
  font-size: 1.4rem;
  color: var(--color-text-soft);
}

/* Contacto */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 1.6rem;
  list-style: none;
}

.contact-item {
  display: flex;
  gap: 1.8rem;
  padding: 2.4rem;
  background: var(--color-surface);
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-item h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.contact-item p,
.contact-item address {
  margin: 0;
}

.contact-item strong {
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.map-frame {
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height) + 2.4rem);
  min-height: 48rem;
  background: var(--color-neutral);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.map-frame iframe {
  width: 100%;
  height: 48rem;
  border: 0;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  list-style: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 4.8rem;
  padding: 1rem 2rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-surface);
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: border-color var(--transition), color var(--transition);
}

.social-link:hover {
  color: var(--color-sage-deep);
  border-color: var(--color-sage);
}


/* 12. Pie de página
   -------------------------------------------------------------------------- */
.site-footer {
  color: #dfe6ec;
  background: var(--color-footer);
}

.site-footer a {
  color: #dfe6ec;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 4.8rem;
  padding: 7.2rem 0 4.8rem;
}

.footer-brand .brand {
  color: #ffffff;
  margin-bottom: 2rem;
}

.footer-brand .brand-tag {
  color: #b9c4ce;
}

.footer-brand p {
  max-width: 36rem;
  font-size: 1.5rem;
  color: #b9c4ce;
}

.footer-title {
  margin-bottom: 1.6rem;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 1rem;
  list-style: none;
  font-size: 1.5rem;
}

.footer-contact li {
  display: flex;
  gap: 1rem;
}

.footer-contact .icon {
  width: 1.8rem;
  height: 1.8rem;
  margin-top: 0.3rem;
  color: var(--color-sage);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
  list-style: none;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background-color var(--transition), border-color var(--transition);
}

.footer-social a:hover {
  background: var(--color-sage-deep);
  border-color: var(--color-sage-deep);
}

.footer-social .icon {
  width: 2rem;
  height: 2rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem 3.2rem;
  padding: 2.4rem 0 3.2rem;
  font-size: 1.35rem;
  color: #b9c4ce;
  border-top: 0.1rem solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
}


/* 13. Botones flotantes, ventana modal y aviso (toast)
   -------------------------------------------------------------------------- */
.float-whatsapp {
  position: fixed;
  right: 2rem;
  bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  color: #ffffff;
  background: var(--color-whatsapp);
  border-radius: 50%;
  box-shadow: 0 1rem 2.4rem rgba(37, 211, 102, 0.35);
  transition: transform var(--transition);
}

.float-whatsapp:hover {
  color: #ffffff;
  transform: scale(1.06);
}

.float-whatsapp .icon {
  width: 3.2rem;
  height: 3.2rem;
}

/* Onda suave para llamar la atención */
.float-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 0.2rem solid var(--color-whatsapp);
  animation: pulse 2.4s ease-out infinite;
}

.back-to-top {
  position: fixed;
  right: 2.6rem;
  bottom: calc(9.6rem + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 4.8rem;
  height: 4.8rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 0.1rem solid var(--color-border);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--color-sage-deep);
}

/* Ventana modal: <dialog> nativo con el estilo de la web */
.modal {
  width: 100%;
  max-width: min(56rem, calc(100% - 3.2rem));
  max-height: calc(100% - 3.2rem);
  padding: 0;
  color: var(--color-text);
  background: var(--color-surface);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal[open] {
  animation: modal-in 0.3s ease;
}

.modal::backdrop {
  background: rgba(47, 59, 71, 0.5);
  -webkit-backdrop-filter: blur(0.4rem);
  backdrop-filter: blur(0.4rem);
}

.modal-content {
  position: relative;
  padding: 4rem 3.2rem 3.2rem;
}

.modal-content h2 {
  padding-right: 4rem;
  font-size: 3rem;
}

.modal-content > p {
  color: var(--color-text-soft);
}

.modal-close {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  color: var(--color-text);
  background: var(--color-neutral);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--transition);
}

.modal-close:hover {
  background: var(--color-border);
}

.modal-options {
  display: grid;
  gap: 1.2rem;
  margin: 2.4rem 0;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.8rem 2rem;
  color: var(--color-text);
  text-decoration: none;
  border: 0.15rem solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background-color var(--transition);
}

.option-card:hover {
  color: var(--color-text);
  background: var(--color-sage-soft);
  border-color: var(--color-sage);
}

.option-card strong {
  display: block;
  font-size: 1.7rem;
}

.option-card span {
  font-size: 1.45rem;
  color: var(--color-text-soft);
}

.option-card > .icon {
  margin-left: auto;
  color: var(--color-sage-deep);
}

.modal-note {
  margin: 0;
  padding: 1.4rem 1.6rem;
  font-size: 1.45rem;
  color: var(--color-text-soft);
  background: var(--color-neutral);
  border-radius: var(--radius-sm);
}

/* Aviso visual breve (por ejemplo, "Copiado") */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(3.2rem + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: calc(100% - 3.2rem);
  padding: 1.2rem 2.2rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--color-text);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 2rem);
  transition: opacity var(--transition), transform var(--transition);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* 14. Animaciones
   -------------------------------------------------------------------------- */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(2rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Aparición suave al hacer scroll (solo si JavaScript está activo) */
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(2.4rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.has-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respeta a quienes prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .has-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}


/* 15. Responsive
   -------------------------------------------------------------------------- */

/* Tabletas y pantallas medianas: menú desplegable */
@media (max-width: 1100px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2.4rem;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    padding: 2.4rem 2rem 3.2rem;
    overflow-y: auto;
    background: var(--color-bg);
    border-bottom: 0.1rem solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  /* Oculto solo cuando JavaScript está activo (si no, el menú queda visible) */
  .js .site-nav {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-1rem);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }

  .js .site-header.is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .nav-list a {
    padding: 1.4rem 1.8rem;
    font-size: 1.8rem;
    border-radius: var(--radius-md);
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .lang-switcher summary {
    width: 100%;
    justify-content: center;
  }

  .lang-menu {
    position: static;
    margin-top: 0.8rem;
    box-shadow: none;
  }
}

@media (max-width: 960px) {
  .hero {
    padding-top: 4rem;
  }

  .hero-grid,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 4.8rem;
  }

  .hero-media {
    max-width: 38rem;
  }

  .hero-badge--top {
    left: -1.6rem;
  }

  .hero-badge--bottom {
    right: -1.6rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .map-frame {
    position: static;
  }
}

/* Celulares */
@media (max-width: 600px) {
  body {
    font-size: 1.6rem;
  }

  .section {
    padding: 6.4rem 0;
  }

  .brand-name {
    font-size: 1.7rem;
  }

  .brand img {
    width: 4rem;
    height: 4rem;
  }

  .lead {
    font-size: 1.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-media::before {
    inset: 1.6rem -1.2rem -1.2rem 1.6rem;
  }

  .hero-badge {
    padding: 1rem 1.4rem;
  }

  .hero-badge--top {
    left: -0.8rem;
  }

  .hero-badge--bottom {
    right: -0.8rem;
  }

  .hero-badge-number {
    font-size: 2.6rem;
  }

  .media-stack {
    grid-template-columns: 1fr;
  }

  .media-stack figure:last-child {
    margin-bottom: 0;
  }

  .card,
  .step {
    padding: 2.4rem;
  }

  .cta-band {
    padding: 4.8rem 2rem;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .contact-item {
    flex-direction: column;
    gap: 1.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .modal-content {
    padding: 3.2rem 2rem 2rem;
  }

  .price-table th,
  .price-table td {
    padding: 1rem;
  }
}


/* 16. Utilidades de espaciado
   -------------------------------------------------------------------------- */
.mt-24 {
  margin-top: 2.4rem;
}

.mt-48 {
  margin-top: 4.8rem;
}

.mt-64 {
  margin-top: 6.4rem;
}

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