/*
 * IDENTIDAD VISUAL
 * Colores y tipografías tomados del Manual Aplicativo de Marca de Yanina Torres.
 * DM Serif Display: títulos y destacados.
 * Montserrat: textos extensos, navegación y cuerpos pequeños.
 * Filosofia Unicase OT no se incluye porque el proyecto no contiene su archivo
 * ni una licencia web; está reservada en el manual para la bajada del logotipo.
 */

:root {
  /* Paleta cromática oficial. */
  --brand-light: #f0eceb;
  --brand-coral: #e06350;
  --brand-blue: #728ea4;
  --brand-sand: #d3bfb0;
  --brand-dark: #373543;

  /* Variables semánticas usadas en toda la web. */
  --bg: var(--brand-dark);
  --text: var(--brand-light);
  --muted: var(--brand-sand);
  --accent: var(--brand-coral);
  --accent-text: var(--brand-dark);
  --border: rgba(114, 142, 164, 0.45);
  --card: rgba(240, 236, 235, 0.05);
  --display: "DM Serif Display", Georgia, serif;
  --body: "Montserrat", Arial, sans-serif;
}

/* Base: tipografía, enlaces y estilos generales. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 300 16px/1.5 var(--body);
  letter-spacing: .01em;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.01em;
}

h1, h2, h3, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

section {
  scroll-margin-top: 80px;
}

/* Utilidades de diseño compartidas por las secciones. */
.wrap {
  max-width: 1152px;
  margin-inline: auto;
}

.wide {
  max-width: 1280px;
  margin-inline: auto;
}

.gold {
  color: var(--accent);
}

.gradient {
  background: linear-gradient(135deg, var(--brand-coral), var(--brand-sand));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .3em;
}

.muted {
  color: var(--muted);
}

.display {
  font-family: var(--display);
}

.center {
  text-align: center;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 64px;
  align-items: center;
}

.three {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 500;
  transition: border-color .15s,opacity .15s;
}

.button:hover {
  border-color: var(--accent);
}

.button.primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.button.primary:hover {
  opacity: .9;
}

/* Encabezado fijo y navegación. */
.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  background: rgba(55, 53, 67, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(114, 142, 164, 0.32);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}

.brand {
  font: 400 20px/1.4 var(--display);
  letter-spacing: .025em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  transition: color .15s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav .button {
  font-size: 14px;
  padding: 8px 20px;
}

/* Portada y brillos originales */

.hero {
  position: relative;
  overflow: hidden;
  padding: 160px 24px 96px;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: 25%;
  left: -128px;
  width: 384px;
  height: 384px;
  background: rgba(224, 99, 80, 0.18);
  filter: blur(120px);
}

.hero::after {
  bottom: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: rgba(114, 142, 164, 0.16);
  filter: blur(140px);
}

.hero > .grid2 {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 72px;
  line-height: 1.05;
}

.hero .subtitle {
  margin-top: 24px;
  color: var(--muted);
  font: italic 30px/1.25 var(--display);
}

.hero .intro {
  margin-top: 32px;
  max-width: 512px;
  color: var(--muted);
  line-height: 1.625;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/5;
  justify-self: center;
  background: #a39f9b url("assets/hero-fondo-extendido.png") center / cover no-repeat;
  border: 1px solid rgba(114, 142, 164, 0.6);
  border-radius: 50%;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: linear-gradient(
    to top right,
    rgba(224, 99, 80, 0.34),
    rgba(114, 142, 164, 0.12),
    transparent
  );
  filter: blur(40px);
}

.hero-image img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  /* Conserva la foto original y completa los laterales con su fondo extendido. */
  object-fit: contain;
  object-position: center center;
  border-radius: 50%;
  /* Difumina solo el fondo lateral para que la unión no forme líneas. */
  -webkit-mask-image: linear-gradient(to right, transparent 8.5%, #000 14%, #000 86%, transparent 91.5%);
  mask-image: linear-gradient(to right, transparent 8.5%, #000 14%, #000 86%, transparent 91.5%);
}

/* Secciones y retrato de la presentación. */
.section {
  padding: 112px 24px;
  border-top: 1px solid rgba(114, 142, 164, 0.32);
}

.section h2 {
  font-size: 48px;
  line-height: 1.25;
}

.portrait {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 16px;
}

.copy h2 + p {
  margin-top: 32px;
}

.copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.625;
  margin-bottom: 20px;
}

.copy strong {
  color: var(--text);
  font-weight: 500;
}

.copy .eyebrow {
  color: var(--accent);
}

/* Método: tarjetas y galería con zoom al pasar el cursor. */
.method {
  background: rgba(114, 142, 164, 0.08);
}

.method-head {
  max-width: 672px;
  margin: 0 auto 80px;
}

.method-head p:last-child {
  margin-top: 24px;
  color: var(--muted);
}

.step {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(55, 53, 67, 0.72);
  transition: border-color .15s;
}

.step:hover {
  border-color: rgba(224, 99, 80, 0.72);
}

.step .number {
  color: var(--accent);
  font: 400 30px/1.2 var(--display);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.625;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin-top: 80px;
}

.gallery > div {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 12px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Catálogo: tarjetas de servicios, precios y botones. */
.catalog-head {
  max-width: 672px;
  margin: 0 auto 64px;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.service.featured {
  border-color: var(--accent);
  background: linear-gradient(to bottom, rgba(224, 99, 80, 0.16), transparent);
}

.badge {
  position: absolute;
  top: -12px;
  left: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  padding: 4px 12px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.service .tag {
  font: 400 14px/1.4 var(--display);
  color: var(--accent);
}

.service h3 {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.2;
}

.service .sub {
  margin-top: 8px;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

.service .description {
  flex: 1;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.625;
}

.details {
  border-top: 1px solid rgba(114, 142, 164, 0.45);
  padding-top: 24px;
  margin-top: 24px;
  list-style: none;
  font-size: 14px;
}

.details li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
}

.details li span:last-child {
  color: var(--text);
}

.details li:last-child, .details li:last-child span:last-child {
  color: var(--accent);
  font: 400 18px/1.5 var(--display);
}

.service .button {
  display: block;
  width: 100%;
  margin-top: 32px;
  padding: 12px 24px;
  text-align: center;
  font-size: 14px;
}

/* Contacto: tarjetas interactivas y resplandor de la foto. */
#contacto h2 {
  font-size: 60px;
}

#contacto .lead {
  margin-top: 24px;
  color: var(--muted);
  font: italic 20px/1.4 var(--display);
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .15s;
}

.contact-card:first-of-type {
  margin-top: 40px;
}

.contact-card:hover {
  border-color: var(--accent);
}

.contact-card small {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-card span {
  font: 400 18px/1.5 var(--display);
}

.contact-card b {
  color: var(--accent);
  font-weight: 400;
  transition: transform .15s;
}

.contact-card:hover b {
  transform: translateX(4px);
}

.contact-photo {
  position: relative;
}

.contact-photo::before {
  content: "";
  position: absolute;
  inset: -16px;
  background: linear-gradient(
    to bottom right,
    rgba(224, 99, 80, 0.24),
    rgba(114, 142, 164, 0.16),
    transparent
  );
  filter: blur(64px);
}

.contact-photo img {
  position: relative;
}

/* Pie de página. */
.footer {
  padding: 40px 24px;
  border-top: 1px solid rgba(114, 142, 164, 0.32);
  color: var(--muted);
  font-size: 14px;
}

.footer .wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer .brand {
  color: var(--text);
  font-size: 18px;
  letter-spacing: 0;
}

/* Adaptación a pantallas pequeñas. */
@media(max-width:767px) {
  .nav-links {
    display: none;
  }

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

  .hero h1 {
    font-size: 48px;
  }

  .hero .subtitle {
    font-size: 24px;
  }

  .about-photo {
    order: 2;
  }

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

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

  .section h2 {
    font-size: 36px;
  }

  #contacto h2 {
    font-size: 48px;
  }

  .footer .wide {
    flex-direction: column;
    text-align: center;
  }

}
