/* Cyntia Gladys Arquitectura Interior
   Paleta: yeso, niebla, salvia, olivo y grafito.
   Tipografías: Ibarra Real Nova (títulos) y Jost (texto). */

:root {
  --yeso: #F0F2EC;
  --niebla: #E2E7DC;
  --salvia: #9AA58C;
  --olivo: #36412F;
  --olivo-hondo: #2B3426;
  --grafito: #2B2F28;
  --gris: #555B51;
  --claro: #EEF1E8;
  --claro-2: #C6CEBB;
  --whatsapp: #25D366;

  --serif: "Ibarra Real Nova", Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1rem, 0.5rem + 2.4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--yeso);
  color: var(--grafito);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--olivo); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Recuadros para logos e imágenes: muestran su nombre hasta que les pongas un <img> */
.ph {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--niebla);
  outline: 1px dashed var(--salvia);
  outline-offset: -1px;
}
.ph:empty::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  color: var(--gris);
  font-size: 0.875rem;
  text-align: center;
}
.ph:not(:empty) { background: none; outline: 0; }
.ph > img { width: 100%; height: 100%; object-fit: cover; }

/* Cabecera: solo el logo */
.header { display: flex; justify-content: center; padding-block: 1.5rem; }
.logo { width: 13rem; height: 8rem; }
.logo > img { object-fit: contain; }
.logo--footer { width: 12rem; height: 7.25rem; }

/* Portada: imagen a todo el ancho con el lema encima */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(26rem, 72vh, 46rem);
  background: var(--olivo-hondo);
  color: var(--claro);
}
.hero__media { position: absolute; inset: 0; background: var(--olivo-hondo); outline-color: rgba(238, 241, 232, 0.25); }
.hero__media:empty::before { place-items: start end; padding: 1.25rem var(--gutter); color: var(--claro-2); }
.hero__media:not(:empty)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 29, 21, 0.75) 0%, rgba(24, 29, 21, 0.4) 50%, rgba(24, 29, 21, 0) 85%);
}

/* Carrusel de la portada: las imágenes se superponen y cambian con un fundido */
.hero__media > img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__media:not([data-carrusel]) > img:first-child,
.hero__media > img.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  /* Acercamiento lento: dura un poco más que cada foto (4,5 s, en index.html) */
  .hero__media > img.is-active { animation: acercar 5s ease-out both; }
}
@keyframes acercar {
  from { transform: scale(1.06); }
  to { transform: none; }
}

.hero__content { position: relative; padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); }
.hero h1 {
  max-width: 13ch;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.5rem + 4.4vw, 5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

/* Sobre el estudio */
.about {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(4rem, 3rem + 5vw, 8rem);
}
.about h2 {
  margin-bottom: 1.75rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
}
.about__text p { max-width: 36rem; color: var(--gris); }
.about__text p + p { margin-top: 1rem; }
.about__text strong { color: var(--grafito); font-weight: 500; }
.about__lead {
  margin-bottom: 1.75rem;
  color: var(--grafito) !important;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  line-height: 1.35;
}
.about__lead strong { font-weight: 500; }
.about__img { width: 100%; max-width: 24rem; aspect-ratio: 3 / 4; }

/* Pie de página */
.footer { background: var(--olivo); color: var(--claro-2); font-size: 0.9375rem; }
.footer :focus-visible { outline-color: var(--claro); }
.footer__top { display: grid; gap: 2rem; padding-block: 3rem 2.5rem; }
.footer .logo { background: rgba(238, 241, 232, 0.08); outline-color: var(--claro-2); }
.footer .logo:empty::before { color: var(--claro-2); }
.footer .logo:not(:empty) { background: none; }
.footer__info { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem 3rem; }
.contact { display: flex; flex-wrap: wrap; gap: 1.25rem 3rem; }
.contact span { display: block; font-size: 0.8125rem; }
.contact li { color: var(--claro); line-height: 1.5; overflow-wrap: anywhere; }
.contact a { text-decoration: underline; text-decoration-color: rgba(238, 241, 232, 0.45); text-underline-offset: 0.3em; }
.contact a:hover { text-decoration-color: currentColor; }
/* Botones de redes sociales: solo el logo, en el color de las letras */
.redes { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.red {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(238, 241, 232, 0.45);
  border-radius: 50%;
  transition: background-color 0.2s, border-color 0.2s;
}
.red:hover { border-color: var(--claro); background: rgba(238, 241, 232, 0.1); }
.red img { width: 1.25rem; height: 1.25rem; }
.footer__legal {
  padding-block: 1.25rem 5.5rem;
  border-top: 1px solid rgba(238, 241, 232, 0.16);
  font-size: 0.8125rem;
}

/* Burbuja de WhatsApp */
.wa-bubble {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 10;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.wa-bubble:hover { transform: scale(1.06); }
.wa-bubble:focus-visible { outline-color: var(--grafito); }
.wa-bubble img { width: 1.9rem; height: 1.9rem; }

/* Pantallas grandes */
@media (min-width: 900px) {
  .header .logo { width: 17rem; height: 10rem; }
  .about { grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 6vw, 6rem); }
  .about__img { max-width: none; }
  .footer__top { grid-template-columns: auto 1fr; align-items: center; gap: var(--gutter) 4rem; }
  .footer__info { justify-content: flex-end; }
  .footer__legal { padding-bottom: 1.5rem; }
}
