/* ===== Variables ===== */
:root {
  color-scheme: dark;

  --fondo: #000000;
  --superficie: #151515;
  --texto: #F2F2F2;
  --texto-suave: #A3A3A3;
  --linea: #2E2E2E;

  --rojo: #D90F14;        /* botones con texto blanco */
  --rojo-oscuro: #B30B10; /* hover de botones */
  --rojo-claro: #FF4A4F;  /* texto y detalles sobre negro */

  --fuente-titulo: "Bricolage Grotesque", system-ui, sans-serif;
  --fuente-texto: "Figtree", system-ui, sans-serif;

  --alto-navbar: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--alto-navbar) + 16px);
}

body {
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fondo);
}

h1, h2, h3 {
  font-family: var(--fuente-titulo);
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--rojo-claro);
  outline-offset: 3px;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--texto);
  border-radius: 10px;
  font: 600 1rem/1 var(--fuente-texto);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn--contorno { background: transparent; color: var(--texto); }
.btn--contorno:hover { background: var(--texto); color: var(--fondo); }

.btn--tinta { background: var(--texto); color: var(--fondo); }
.btn--tinta:hover { background: var(--rojo); border-color: var(--rojo); color: #fff; }

.btn--whatsapp { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.btn--whatsapp:hover { background: var(--rojo-oscuro); border-color: var(--rojo-oscuro); }

.btn--grande { padding: 0.95rem 1.5rem; font-size: 1.05rem; }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--alto-navbar);
  padding: 0 1rem 0 0.75rem;
  background: var(--fondo);
  border-bottom: 2px solid var(--rojo);
}

.navbar__logo { display: flex; align-items: center; }
.navbar__logo img { display: block; height: 40px; width: auto; }

.navbar__acciones { display: flex; align-items: center; gap: 0.6rem; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 3rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
}

.hero__texto p {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: 1.2rem;
  color: var(--texto-suave);
}

.hero__acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero__ilustracion { width: 100%; max-width: 260px; justify-self: center; transform: rotate(4deg); }

/* ===== Secciones ===== */
.seccion {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.seccion--oscura {
  max-width: none;
  background: var(--superficie);
  padding-left: max(1.5rem, calc((100vw - 1160px) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100vw - 1160px) / 2 + 1.5rem));
}

/* ===== Servicios ===== */
.servicios {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3rem;
}

.servicios li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--linea);
}

.servicios p { margin-top: 0.4rem; color: var(--texto-suave); max-width: 30rem; }

/* ===== Reseñas ===== */
.resenas__encabezado {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.resenas__controles { display: flex; gap: 0.5rem; }

.control {
  width: 44px;
  height: 44px;
  border: 2px solid var(--texto);
  border-radius: 50%;
  background: transparent;
  color: var(--texto);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.control:hover { background: var(--rojo); border-color: var(--rojo); color: #fff; }

.resenas__pista {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.resenas__pista::-webkit-scrollbar { display: none; }

.resena {
  flex: 0 0 min(380px, 85%);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--fondo);
  border: 1px solid var(--linea);
  border-radius: 14px;
}

.resena__estrellas { color: var(--rojo-claro); font-size: 1.1rem; letter-spacing: 0.1em; }
.resena__texto { flex: 1; }
.resena__autor { font-weight: 600; }

.resenas__enlace {
  display: inline-block;
  margin-top: 1.75rem;
  font-weight: 600;
  color: var(--rojo-claro);
}

/* ===== Contacto ===== */
.contacto {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  margin-top: 2.5rem;
}

.formulario { display: grid; gap: 1.1rem; }

.formulario label { display: grid; gap: 0.4rem; font-weight: 600; }

.formulario input,
.formulario textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--linea);
  border-radius: 10px;
  background: var(--superficie);
  font: 400 1rem var(--fuente-texto);
  color: var(--texto);
}
.formulario input::placeholder,
.formulario textarea::placeholder { color: var(--texto-suave); }
.formulario input:focus,
.formulario textarea:focus { border-color: var(--rojo-claro); }

.formulario button { justify-self: start; }

.datos h3 { margin-top: 1.5rem; }
.datos h3:first-child { margin-top: 0; }
.datos p { margin: 0.3rem 0 0; color: var(--texto-suave); }
.datos .btn { margin-top: 1.75rem; }

/* ===== Pie ===== */
.pie {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--linea);
  text-align: center;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

/* ===== Tablet y móvil ===== */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero__ilustracion { max-width: 180px; justify-self: start; }
  .servicios { grid-template-columns: 1fr; }
  .contacto { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 520px) {
  .navbar { padding-right: 0.6rem; }
  .navbar__logo img { height: 34px; }
  .navbar__acciones { gap: 0.4rem; }
  .navbar .btn { padding: 0.5rem 0.7rem; font-size: 0.9rem; }
  .resenas__encabezado { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.navbar__logo { gap: 0.6rem; text-decoration: none; }

.navbar__nombre {
  font-family: var(--fuente-titulo);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--texto);
}

@media (max-width: 520px) {
  .navbar__nombre { font-size: 1rem; }
}