/* Sistema visual Proposal Inc */
:root {
  --color-fondo: #F4EFE7;        /* crema calido */
  --color-fondo-alt: #ECE4D7;    /* crema un tono mas oscuro */
  --color-tinta: #1A1714;        /* casi negro */
  --color-tinta-suave: #6E655A;  /* gris calido, texto secundario */
  --color-acento: #A8755A;       /* terracota apagado */
  --color-claro: #FBF8F2;        /* casi blanco para texto sobre oscuro */

  --fuente-titulo: 'Cormorant Garamond', Georgia, serif;
  --fuente-cuerpo: 'Jost', system-ui, sans-serif;

  --ancho-max: 1180px;
  --espacio-seccion: clamp(4rem, 10vw, 8rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-fondo);
  color: var(--color-tinta);
  font-family: var(--fuente-cuerpo);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--fuente-titulo);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.contenedor {
  width: 100%;
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: var(--espacio-seccion) 0; }

/* Boton de WhatsApp */
.boton-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-tinta);
  color: var(--color-claro);
  font-family: var(--fuente-cuerpo);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  transition: background 0.25s ease;
}
.boton-wa:hover { background: var(--color-acento); }
.boton-wa svg { width: 1.15rem; height: 1.15rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  overflow: hidden;
}
.hero-foto {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,23,20,0.35) 0%, rgba(26,23,20,0.55) 100%);
}
.hero-contenido {
  position: relative;
  z-index: 2;
  color: var(--color-claro);
  padding: 1.5rem;
  max-width: 640px;
}
.hero-logo { width: 130px; margin: 0 auto 2rem; }
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  font-weight: 500;
}
.hero p {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  margin: 1rem auto 2rem;
  max-width: 26em;
}
.boton-wa-claro { background: var(--color-claro); color: var(--color-tinta); }
.boton-wa-claro:hover { background: var(--color-acento); color: var(--color-claro); }

/* Rotulos y titulos de seccion (reutilizables) */
.seccion-rotulo {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-acento);
  margin-bottom: 0.8rem;
}
.seccion-titulo {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 500;
  max-width: 18em;
}
.seccion-intro {
  color: var(--color-tinta-suave);
  max-width: 38em;
  margin-top: 1rem;
}

/* Lista de servicios */
.servicio-lista {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3.5rem;
}
.servicio-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.8rem 0 0.4rem;
}
.servicio-item p { color: var(--color-tinta-suave); }
.servicio-icono { color: var(--color-acento); }
.servicio-icono svg { width: 34px; height: 34px; }

@media (min-width: 680px) {
  .servicio-lista { grid-template-columns: repeat(2, 1fr); gap: 3rem 2.5rem; }
}
@media (min-width: 980px) {
  .servicio-lista { grid-template-columns: repeat(3, 1fr); }
}

/* Portafolio */
.portafolio .seccion-titulo { margin-bottom: 2.5rem; }
.portafolio-rejilla {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.portafolio-celda {
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: var(--color-fondo-alt);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.portafolio-celda img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.portafolio-celda:hover img { transform: scale(1.05); }
.portafolio-celda:focus-visible { outline: 2px solid var(--color-acento); outline-offset: 2px; }

@media (min-width: 720px) {
  .portafolio-rejilla { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
}
@media (min-width: 1024px) {
  .portafolio-rejilla { grid-template-columns: repeat(4, 1fr); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20,18,16,0.94);
  padding: 1rem;
}
.lightbox.abierto { display: flex; }
.lightbox-foto {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-claro);
  cursor: pointer;
  padding: 0.5rem;
}
.lightbox button svg { width: 2rem; height: 2rem; }
.lightbox-cerrar { top: 1rem; right: 1rem; }
.lightbox-flecha { top: 50%; transform: translateY(-50%); }
.lightbox-anterior { left: 0.5rem; }
.lightbox-siguiente { right: 0.5rem; }
@media (min-width: 720px) {
  .lightbox-anterior { left: 1.5rem; }
  .lightbox-siguiente { right: 1.5rem; }
}

/* Proceso */
.proceso { background: var(--color-fondo-alt); }
.proceso .seccion-titulo { margin-bottom: 3rem; }
.proceso-lista {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
}
.proceso-paso { border-top: 1px solid rgba(26,23,20,0.15); padding-top: 1.2rem; }
.proceso-numero {
  font-family: var(--fuente-titulo);
  font-size: 2rem;
  color: var(--color-acento);
}
.proceso-paso h3 { font-size: 1.4rem; margin: 0.4rem 0 0.3rem; }
.proceso-paso p { color: var(--color-tinta-suave); }
@media (min-width: 720px) {
  .proceso-lista { grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
}

/* Cierre */
.cierre {
  background: var(--color-tinta);
  color: var(--color-claro);
  text-align: center;
}
.cierre h2 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 500; }
.cierre p { color: rgba(251,248,242,0.75); margin: 0.8rem auto 2rem; max-width: 26em; }

/* Footer */
.pie {
  background: var(--color-tinta);
  color: var(--color-claro);
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid rgba(251,248,242,0.12);
}
.pie-logo { width: 110px; margin: 0 auto 1rem; }
.pie-lema { color: rgba(251,248,242,0.7); font-size: 0.95rem; }
.pie-redes {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin: 1.6rem 0;
}
.pie-redes a { color: var(--color-claro); transition: color 0.2s ease; }
.pie-redes a:hover { color: var(--color-acento); }
.pie-redes svg { width: 1.5rem; height: 1.5rem; }
.pie-contacto {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
}
.pie-contacto a { color: rgba(251,248,242,0.85); text-decoration: none; }
.pie-contacto a:hover { color: var(--color-acento); }
.pie-creditos {
  margin-top: 1.8rem;
  font-size: 0.8rem;
  color: rgba(251,248,242,0.45);
}

/* Aparicion suave al hacer scroll */
.aparece {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.aparece.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .aparece { opacity: 1; transform: none; transition: none; }
}

/* Boton flotante de WhatsApp */
.boton-flotante {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  background: var(--color-tinta);
  color: var(--color-claro);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(26,23,20,0.3);
  transition: background 0.25s ease, transform 0.25s ease;
}
.boton-flotante:hover { background: var(--color-acento); transform: scale(1.06); }
.boton-flotante svg { width: 1.8rem; height: 1.8rem; }

/* Preguntas frecuentes */
.faq .seccion-titulo { margin-bottom: 2.5rem; }
.faq-item { border-top: 1px solid rgba(26,23,20,0.15); }
.faq-item:last-child { border-bottom: 1px solid rgba(26,23,20,0.15); }
.faq-pregunta {
  font-family: var(--fuente-titulo);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 1.3rem 2.5rem 1.3rem 0;
  position: relative;
  list-style: none;
}
.faq-pregunta::-webkit-details-marker { display: none; }
.faq-pregunta::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--color-acento);
  font-family: var(--fuente-cuerpo);
  font-weight: 300;
}
.faq-item[open] .faq-pregunta::after { content: "\2013"; }
.faq-respuesta {
  padding: 0 2.5rem 1.4rem 0;
  color: var(--color-tinta-suave);
}
