/* =============================================
   CERBERA — style.css
   Paleta: Negro #0A0A0A · Sangre #4E0000 · Pergamino #FDF0D5 · Blanco #FFFFFF
   Fuentes: Cormorant Garamond · Bebas Neue · DM Sans
   Mobile-first
============================================= */

/* ===== TOKENS ===== */
:root {
  --negro:       #0A0A0A;
  --sangre:      #4E0000;
  --sangre-med:  #7A0000;
  --sangre-osc:  #2A0000;
  --pergamino:   #FDF0D5;
  --blanco:      #FFFFFF;

  --serif:   'Cormorant Garamond', Georgia, serif;
  --display: 'Bebas Neue', sans-serif;
  --sans:    'DM Sans', system-ui, sans-serif;

  --ease:      0.3s ease;
  --ease-slow: 0.65s ease;
  --max:       1280px;
  --pad-x:     1.5rem;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--negro);
  color: var(--blanco);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select, button { font-family: inherit; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ===== TIPOGRAFÍA ===== */
.hero-title, .propuesta-title, .foto-title,
.manifiesto-title, .cta-title {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Acento en pergamino: elegante, cálido, legible sobre negro */
em {
  font-style: italic;
  color: var(--pergamino);
}

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 2.25rem;
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  cursor: pointer;
}

.btn-brasa {
  background: var(--sangre);
  color: var(--pergamino);
  border-color: var(--sangre);
}
.btn-brasa:hover {
  background: var(--sangre-med);
  border-color: var(--sangre-med);
}

.btn-outline-blanco {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-blanco:hover {
  background: var(--sangre);
  color: var(--pergamino);
  border-color: var(--sangre);
}

/* Nav CTA */
.btn-hablemos {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding: 0.55rem 1.4rem;
  border: 1.5px solid var(--sangre);
  color: var(--pergamino);
  background: transparent;
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
}
.btn-hablemos:hover {
  background: var(--sangre);
  color: var(--blanco);
}

/* ===== ANIMACIONES ===== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.85s ease forwards;
}
.animate-fade-up:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-up:nth-child(2) { animation-delay: 0.25s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.4s; }
.animate-fade-up:nth-child(4) { animation-delay: 0.55s; }
.animate-fade-up:nth-child(5) { animation-delay: 0.7s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVEGACIÓN ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(78, 0, 0, 0.2);
  transition: border-color var(--ease);
}
.header.scrolled {
  border-bottom-color: rgba(78, 0, 0, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.logo-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.logo-text {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--blanco);
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.01em;
  transition: color var(--ease);
}
.nav-link:hover { color: var(--pergamino); }
.nav-link[aria-current="page"] { color: var(--pergamino); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 200;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--blanco);
  transition: transform var(--ease), opacity var(--ease);
}
.hamburger.open .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== PAGE HERO (subpáginas) ===== */
.page-hero {
  padding: 11rem 0 5rem;
  border-bottom: 1px solid rgba(78, 0, 0, 0.25);
}
.page-hero-eyebrow {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--pergamino);
  opacity: 0.6;
  margin-bottom: 1.5rem;
}
.page-hero-title {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  color: var(--blanco);
  margin-bottom: 1.5rem;
}
.page-hero-sub {
  font-size: 1rem;
  color: rgba(253, 240, 213, 0.5);
  line-height: 1.75;
  max-width: 560px;
}

/* ===== SERVICIOS DETALLE ===== */
.servicios-lista {
  padding: 6rem 0;
}
.servicio-detalle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(78, 0, 0, 0.2);
}
.servicio-detalle:first-child { padding-top: 0; }
.servicio-detalle:last-child { border-bottom: none; }
.servicio-num {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: rgba(253, 240, 213, 0.3);
}
.servicio-detalle h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--blanco);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.servicio-detalle-content p {
  font-size: 0.95rem;
  color: rgba(253, 240, 213, 0.5);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 1.5rem;
}
.servicio-incluye {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.servicio-incluye li {
  font-size: 0.85rem;
  color: rgba(253, 240, 213, 0.4);
  letter-spacing: 0.01em;
  padding-left: 1.4rem;
  position: relative;
}
.servicio-incluye li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--sangre);
  border-radius: 50%;
}

/* ===== PROCESO ===== */
.proceso {
  padding: 7rem 0;
  border-top: 1px solid rgba(78, 0, 0, 0.25);
  background: rgba(78, 0, 0, 0.06);
}
.proceso-top { margin-bottom: 4rem; max-width: 640px; }
.proceso-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  color: var(--blanco);
  margin-bottom: 1.25rem;
}
.proceso-sub {
  font-size: 1rem;
  color: rgba(253, 240, 213, 0.5);
  line-height: 1.75;
}
.proceso-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(78, 0, 0, 0.3);
}
.proceso-step {
  background: var(--negro);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.proceso-num {
  font-family: var(--display);
  font-size: 2.5rem;
  color: var(--sangre-med);
  line-height: 1;
}
.proceso-step h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--blanco);
}
.proceso-step p {
  font-size: 0.875rem;
  color: rgba(253, 240, 213, 0.45);
  line-height: 1.7;
}

/* ===== HISTORIA ===== */
.historia {
  padding: 6rem 0;
}
.historia-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.historia-title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  color: var(--blanco);
  line-height: 1.05;
}
.historia-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-self: center;
}
.historia-text p {
  font-size: 0.95rem;
  color: rgba(253, 240, 213, 0.5);
  line-height: 1.8;
  max-width: 480px;
}

/* ===== EQUIPO ===== */
.equipo {
  padding: 6rem 0;
  border-top: 1px solid rgba(78, 0, 0, 0.25);
}
.equipo-top {
  max-width: 560px;
  margin-bottom: 4rem;
}
.equipo-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  color: var(--blanco);
  margin-bottom: 1.25rem;
}
.equipo-sub {
  font-size: 1rem;
  color: rgba(253, 240, 213, 0.5);
  line-height: 1.75;
}
.equipo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(78, 0, 0, 0.3);
}
.equipo-card {
  background: var(--negro);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background var(--ease);
}
.equipo-card:hover {
  background: rgba(78, 0, 0, 0.2);
}
.equipo-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(78, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--pergamino);
  margin-bottom: 0.75rem;
}
.equipo-foto {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(78, 0, 0, 0.25);
}
.equipo-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--blanco);
  letter-spacing: -0.01em;
}
.equipo-rol {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(253, 240, 213, 0.4);
}
.equipo-card p:not(.equipo-rol) {
  font-size: 0.875rem;
  color: rgba(253, 240, 213, 0.45);
  line-height: 1.7;
  margin-top: 0.25rem;
}

/* ===== DIFERENCIADOR ===== */
.diferenciador {
  padding: 7rem 0;
  border-top: 1px solid rgba(78, 0, 0, 0.25);
  text-align: center;
}
.diferenciador-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.diferenciador-title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(2.25rem, 6vw, 4rem);
  color: var(--blanco);
  line-height: 1.05;
  margin-bottom: 0.5rem;
}
.diferenciador-text {
  font-size: 1rem;
  color: rgba(253, 240, 213, 0.5);
  line-height: 1.8;
}

/* ===== CONTACTO ===== */
.contacto {
  padding: 6rem 0;
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.contacto-title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--blanco);
  line-height: 1.05;
}
.contacto-text {
  font-size: 0.95rem;
  color: rgba(253, 240, 213, 0.5);
  line-height: 1.75;
  max-width: 400px;
}
.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(78, 0, 0, 0.25);
  border-bottom: 1px solid rgba(78, 0, 0, 0.25);
}
.contacto-datos li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.contacto-dato-label {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(253, 240, 213, 0.3);
}
.contacto-datos li a,
.contacto-datos li span:not(.contacto-dato-label) {
  font-size: 0.95rem;
  color: rgba(253, 240, 213, 0.6);
  transition: color var(--ease);
}
.contacto-datos li a:hover { color: var(--pergamino); }
.contacto-info > .btn { align-self: flex-start; }

/* Formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.form-row label {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(253, 240, 213, 0.4);
}
.form-row input,
.form-row textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(78, 0, 0, 0.4);
  padding: 0.7rem 0;
  color: var(--blanco);
  font-size: 1rem;
  font-weight: 300;
  transition: border-color var(--ease);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--sangre);
}
.form-row input:invalid:not(:placeholder-shown),
.form-row textarea:invalid:not(:placeholder-shown) {
  border-bottom-color: var(--sangre-med);
}
.contact-form .btn {
  align-self: flex-start;
}
.form-nota {
  font-size: 0.75rem;
  color: rgba(253, 240, 213, 0.3);
  line-height: 1.6;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--negro);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 5rem;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--pergamino);
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(4rem, 11vw, 9.5rem);
  margin-bottom: 2rem;
  color: var(--blanco);
}
.hero-title span { display: block; }
.hero-title em { display: block; }

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(253, 240, 213, 0.55);
  font-weight: 300;
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 2.5rem;
}

/* Logo decorativo */
.hero-deco {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-deco-img {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 0 80px rgba(78, 0, 0, 0.7));
  filter: drop-shadow(0 0 80px rgba(78, 0, 0, 0.7));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ===== CLIENTES ===== */
.clientes-bar {
  border-top: 1px solid rgba(78, 0, 0, 0.25);
  border-bottom: 1px solid rgba(78, 0, 0, 0.25);
  padding: 2rem 0;
  background: rgba(78, 0, 0, 0.06);
}
.clientes-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
.clientes-label {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(253, 240, 213, 0.3);
}
.clientes-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
}
.clientes-logos span {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: rgba(253, 240, 213, 0.2);
  transition: color var(--ease);
  cursor: default;
}
.clientes-logos span:hover { color: rgba(253, 240, 213, 0.55); }

/* ===== PROPUESTA ===== */
.propuesta {
  padding: 7rem 0;
}

.propuesta-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 5rem;
}
.propuesta-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--blanco);
}
.propuesta-sub {
  font-size: 1rem;
  color: rgba(253, 240, 213, 0.5);
  line-height: 1.75;
  max-width: 380px;
  align-self: center;
}

/* Service cards */
.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(78, 0, 0, 0.3);
}
.servicio-card {
  background: var(--negro);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background var(--ease);
}
.servicio-card:hover {
  background: rgba(78, 0, 0, 0.25);
}

.servicio-icon {
  color: rgba(253, 240, 213, 0.35);
  margin-bottom: 0.25rem;
}
.servicio-card:hover .servicio-icon {
  color: var(--pergamino);
}
.servicio-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--blanco);
  letter-spacing: -0.01em;
}
.servicio-card p {
  font-size: 0.875rem;
  color: rgba(253, 240, 213, 0.45);
  line-height: 1.7;
  flex: 1;
}
.link-mas {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(253, 240, 213, 0.4);
  transition: letter-spacing var(--ease), color var(--ease);
}
.link-mas:hover {
  letter-spacing: 0.2em;
  color: var(--pergamino);
}

/* ===== FOTO DESTAQUE ===== */
.foto-destaque {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.foto-bg {
  position: absolute;
  inset: 0;
  background: #0d0000;
}
.foto-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.4;
  filter: grayscale(40%);
}
.foto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 0, 0, 0.97) 0%,
    rgba(10, 0, 0, 0.65) 55%,
    rgba(10, 0, 0, 0.25) 100%
  );
}
.foto-content {
  position: relative;
  z-index: 1;
  padding: 6rem var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
}
.foto-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  color: var(--blanco);
  line-height: 1;
}

/* ===== MANIFIESTO ===== */
.manifiesto {
  padding: 7rem 0;
  border-top: 1px solid rgba(78, 0, 0, 0.25);
}
.manifiesto-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.manifiesto-title {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  color: var(--blanco);
}
.manifiesto-sub {
  font-size: 1rem;
  color: rgba(253, 240, 213, 0.6);
  font-style: italic;
  line-height: 1.8;
  max-width: 440px;
  align-self: center;
}
.manifiesto-sub cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(253, 240, 213, 0.45);
  letter-spacing: 0.04em;
}

/* ===== STATS ===== */
.stats-bar {
  border-top: 1px solid rgba(78, 0, 0, 0.3);
  border-bottom: 1px solid rgba(78, 0, 0, 0.3);
  padding: 4rem 0;
  background: rgba(78, 0, 0, 0.1);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  letter-spacing: -0.02em;
  color: var(--pergamino);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(253, 240, 213, 0.4);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ===== CTA FINAL ===== */
.cta-final {
  padding: 8rem 0;
  overflow: hidden;
  position: relative;
  background-image: url('images/Fondo-seccion.png');
  background-size: auto 100%;
  background-position: center center;
  background-repeat: no-repeat;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 0, 0, 0.62);
  z-index: 0;
}
.cta-btns-section {
  padding: 5rem 0;
  background: var(--negro);
}
.cta-btns-wrap {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-split {
  background-color: var(--negro);
  background-image: url('images/fondo-seccion-responsive.png');
  background-size: auto 100%;
  background-position: right center;
}
.cta-split::before {
  display: none;
}
.cta-split-inner {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-split-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}
.cta-inner {
  display: block;
  position: relative;
  z-index: 1;
}
.cta-content {
  max-width: 620px;
}
.cta-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--blanco);
  margin-bottom: 1.5rem;
}
.cta-content p {
  font-size: 1rem;
  color: rgba(253, 240, 213, 0.5);
  margin-bottom: 2rem;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(5, 0, 0, 1);
  border-top: 1px solid rgba(78, 0, 0, 0.3);
  padding: 5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(78, 0, 0, 0.2);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 280px;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-logo-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.footer-logo-text {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: var(--blanco);
}
.footer-brand p {
  font-size: 0.825rem;
  color: rgba(253, 240, 213, 0.35);
  line-height: 1.7;
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.social-icon {
  color: rgba(253, 240, 213, 0.25);
  transition: color var(--ease);
  display: flex;
}
.social-icon:hover { color: var(--pergamino); }

.footer-col h4.footer-col-title {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(253, 240, 213, 0.25);
  margin-bottom: 1.25rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-col ul li {
  font-size: 0.875rem;
  color: rgba(253, 240, 213, 0.4);
  line-height: 1.5;
}
.footer-col ul li a {
  transition: color var(--ease);
}
.footer-col ul li a:hover { color: var(--pergamino); }

.footer-bottom {
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-bottom p {
  font-size: 0.775rem;
  color: rgba(253, 240, 213, 0.15);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.775rem;
  color: rgba(253, 240, 213, 0.15);
  transition: color var(--ease);
}
.footer-legal a:hover { color: rgba(253, 240, 213, 0.5); }

/* ===== WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 99;
  width: 52px;
  height: 52px;
  background: var(--sangre);
  color: var(--pergamino);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(78, 0, 0, 0.6);
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  background: var(--sangre-med);
  box-shadow: 0 8px 30px rgba(78, 0, 0, 0.7);
}

/* ===== TABLET (768px+) ===== */
@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
  }
  .hero-deco-img { max-width: 420px; }

  .clientes-inner {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }
  .clientes-label { white-space: nowrap; }

  .propuesta-top {
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
    gap: 4rem;
  }

  .servicios-grid { grid-template-columns: repeat(2, 1fr); }

  .servicio-detalle { grid-template-columns: 200px 1fr; gap: 3rem; }
  .proceso-grid { grid-template-columns: repeat(2, 1fr); }

  .historia-inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .equipo-grid { grid-template-columns: repeat(3, 1fr); }

  .contacto-grid { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; }

  .manifiesto-inner { grid-template-columns: 1fr 1fr; gap: 5rem; }

  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat { border-right: 1px solid rgba(78, 0, 0, 0.2); padding-right: 3rem; }
  .stat:last-child { border-right: none; padding-right: 0; }


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

  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  .propuesta { padding: 9rem 0; }
  .manifiesto { padding: 9rem 0; }
  .cta-final { padding: 10rem 0; }
  .hero-deco-img { max-width: 500px; }

  .servicios-lista { padding: 8rem 0; }
  .proceso { padding: 9rem 0; }
  .proceso-grid { grid-template-columns: repeat(4, 1fr); }

  .historia { padding: 8rem 0; }
  .equipo { padding: 8rem 0; }
  .diferenciador { padding: 9rem 0; }
  .contacto { padding: 8rem 0; }
}

/* ===== MOBILE: hamburger ===== */
@media (max-width: 767px) {
  .btn-hablemos { display: none; }
  .hamburger { display: flex; }

  /* Sidebar drawer desde la derecha */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 82vw);
    height: 100vh;
    background: #0d0000;
    border-left: 1px solid rgba(78, 0, 0, 0.4);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    padding: 5rem 2.5rem 3rem;
    z-index: 90;
    flex: none;
    /* Cerrado: fuera de pantalla a la derecha */
    transform: translateX(110%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.32s;
    overflow-y: auto;
  }

  /* Abierto: desliza hacia adentro */
  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s;
  }

  /* Items del sidebar */
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(78, 0, 0, 0.2);
  }
  .nav-links li:first-child {
    border-top: 1px solid rgba(78, 0, 0, 0.2);
  }

  .nav-links .nav-link {
    display: block;
    font-size: 1.4rem;
    font-weight: 400;
    color: rgba(253, 240, 213, 0.65);
    padding: 1.1rem 0;
    letter-spacing: 0.01em;
    transition: color var(--ease), padding-left var(--ease);
  }
  .nav-links .nav-link:hover {
    color: var(--pergamino);
    padding-left: 0.5rem;
  }
  .nav-links .nav-link[aria-current="page"] {
    color: var(--pergamino);
  }

  .foto-destaque { padding: 3.5rem 0; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .stat { border-right: none; padding-right: 0; text-align: center; }
  .stat-num { font-size: clamp(1.4rem, 6vw, 2rem); }
  .stat-label { font-size: 0.68rem; }

  /* Logo hero: oculto en móvil */
  .hero-deco { display: none; }

  /* Sin min-height: el hero se ajusta al contenido */
  .hero { min-height: auto; }

  /* Reducir padding de todas las secciones en móvil */
  .propuesta,
  .manifiesto,
  .diferenciador,
  .proceso,
  .historia,
  .equipo,
  .servicios-lista,
  .contacto,
  .proyectos-grid-section { padding: 3.5rem 0; }

  .cta-final { padding: 4rem 0; background-image: url('images/fondo-seccion-responsive.png'); background-position: center center; background-size: cover; }
  .cta-split { background-size: auto 80%; background-position: center bottom; }
  .cta-split-inner { flex-direction: column; }
  .stats-bar { padding: 2.5rem 0; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col h4.footer-col-title { font-size: 0.65rem; margin-bottom: 0.75rem; }
  .footer-col ul li a { font-size: 0.8rem; }
  .page-hero { padding: 8rem 0 3rem; }
}

/* ===== PEQUEÑO (480px-) ===== */
@media (max-width: 480px) {
  :root { --pad-x: 1.1rem; }
  .servicio-card { padding: 2rem 1.5rem; }
}

/* ===== PORTFOLIO / PROYECTOS ===== */
.proyectos-filtros-wrap {
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(78, 0, 0, 0.2);
  background: rgba(78, 0, 0, 0.04);
  overflow-x: auto;
}
.filtros-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: nowrap;
  min-width: max-content;
}
.filtro-btn {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(253, 240, 213, 0.4);
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}
.filtro-btn:hover {
  color: var(--pergamino);
  background: rgba(78, 0, 0, 0.2);
}
.filtro-btn.active {
  color: var(--pergamino);
  background: rgba(78, 0, 0, 0.35);
  box-shadow: inset 0 -1px 0 var(--sangre);
}

.proyectos-grid-section {
  padding: 5rem 0 7rem;
}
.proyectos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(78, 0, 0, 0.2);
}

.proyecto-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.proyecto-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s ease;
}
.proyecto-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: grayscale(20%);
  transition: opacity 0.5s ease;
}
.proyecto-card:hover .proyecto-card-bg {
  transform: scale(1.05);
}
.proyecto-card:hover .proyecto-card-bg img {
  opacity: 0.65;
}
.proyecto-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 0, 0, 0.97) 0%,
    rgba(10, 0, 0, 0.55) 55%,
    rgba(10, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

.proyecto-card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.proyecto-cat {
  font-family: var(--display);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--sangre-med);
}
.proyecto-titulo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--blanco);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.proyecto-desc {
  font-size: 0.85rem;
  color: rgba(253, 240, 213, 0.5);
  line-height: 1.7;
  max-width: 360px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease;
}
.proyecto-card:hover .proyecto-desc {
  max-height: 100px;
  opacity: 1;
}
.proyecto-link {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(180, 50, 50, 0.8);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease 0.08s, transform 0.3s ease 0.08s, letter-spacing var(--ease), color var(--ease);
}
.proyecto-card:hover .proyecto-link {
  opacity: 1;
  transform: translateY(0);
  letter-spacing: 0.2em;
  color: var(--pergamino);
}

@media (min-width: 768px) {
  .proyectos-filtros-wrap { overflow-x: visible; }
  .filtros-tabs { flex-wrap: wrap; min-width: unset; }
  .proyectos-grid { grid-template-columns: repeat(2, 1fr); }
  .proyecto-card { min-height: 360px; }
}

@media (min-width: 1024px) {
  .proyectos-grid { grid-template-columns: repeat(3, 1fr); }
  .proyecto-card { min-height: 420px; }
  .proyectos-grid-section { padding: 6rem 0 9rem; }
}

/* ===== SLIDER DE PROYECTOS ===== */

/* Override: reemplaza el enfoque de imagen de fondo */
.foto-destaque {
  min-height: auto;
  display: block;
  padding: 5rem 0;
  background: var(--negro);
  border-top: 1px solid rgba(78, 0, 0, 0.25);
  border-bottom: 1px solid rgba(78, 0, 0, 0.25);
  overflow: hidden;
}

.foto-destaque-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Orden mobile: título → slider → CTA */
.foto-texto    { order: 1; }
.proyectos-slider { order: 2; }
.foto-cta      { order: 3; align-self: flex-start; }

/* Viewport del slider */
.slider-viewport {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(78, 0, 0, 0.25);
}
.slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-slide {
  min-width: 100%;
  flex-shrink: 0;
}

/* Card del slider */
.slider-card {
  position: relative;
  height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.slider-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,0,0,0.95) 0%, rgba(10,0,0,0.45) 55%, transparent 100%);
  z-index: 1;
}
.slider-card-content {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}
.slider-card-titulo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  color: var(--blanco);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.slider-card-desc {
  font-size: 0.85rem;
  color: rgba(253, 240, 213, 0.5);
  line-height: 1.7;
}

/* Navegación del slider */
.slider-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
}
.slider-btn {
  color: rgba(253, 240, 213, 0.35);
  transition: color var(--ease);
  display: flex;
  align-items: center;
  padding: 0.35rem;
}
.slider-btn:hover { color: var(--pergamino); }

.slider-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(253, 240, 213, 0.2);
  transition: background var(--ease), transform var(--ease);
  cursor: pointer;
  border: none;
}
.slider-dot.active {
  background: var(--pergamino);
  transform: scale(1.4);
}

/* Texto lateral */
.foto-texto { display: flex; flex-direction: column; }

/* Desktop: grid 2 columnas — slider izquierda, texto+CTA derecha */
@media (min-width: 768px) {
  .foto-destaque { padding: 7rem 0; }
  .foto-destaque-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 5rem;
    row-gap: 2rem;
    align-items: center;
  }
  .proyectos-slider {
    grid-column: 2;
    grid-row: 1 / 3;
    order: unset;
    align-self: center;
  }
  .foto-texto {
    grid-column: 1;
    grid-row: 1;
    order: unset;
    align-self: flex-end;
  }
  .foto-cta {
    grid-column: 1;
    grid-row: 2;
    order: unset;
    align-self: flex-start;
  }
  .slider-card { height: 400px; }
}

@media (min-width: 1024px) {
  .foto-destaque { padding: 9rem 0; }
  .slider-card { height: 480px; }
}
