/* ═══════════════════════════════════════════════════
   BEGOÑA DEL RÍO — Interiorismo de Lujo
   Diseño: minimalista de lujo. Referencia: Armani Casa, Axel Vervoordt.
   Sistema 8pt. Sin frameworks. Sin dependencias.
═══════════════════════════════════════════════════ */

/* ─── Variables ────────────────────────────────── */
:root {
  --color-bg:           #FAFAF8;
  --color-surface:      #F2F0EC;
  --color-text:         #0D0D0D;
  --color-text-muted:   #6B6460;
  --color-accent:       #B85C2A;
  --color-accent-hover: #9E4E22;
  --color-border:       #E0DDD8;
  --color-white:        #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --container-max: 1200px;
  --section-py: 8rem;
  --section-py-mobile: 5rem;
}

/* ─── Reveal — fallback visible si GSAP no carga ── */
.reveal {
  opacity: 1;
  transform: none;
}

/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

/* ─── Utility ───────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  position: relative;
  overflow: hidden;
}

.section-header {
  margin-bottom: 5rem;
}

/* ─── Typography helpers ────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
}

h2 {
  font-size: 3rem;
  font-weight: 400;
  margin-top: 0.75rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

.body-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* ─── Número editorial de fondo ─────────────────── */
.editorial-number {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 18rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.06;
  top: -2rem;
  left: -2rem;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  transition: all 0.3s ease;
  border-radius: 50px;
  cursor: pointer;
}

.btn--outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border: 1px solid var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}


/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
.navbar {
  background: rgba(245, 244, 240, 0);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  isolation: isolate;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

.navbar.scrolled {
  background: rgba(245, 244, 240, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.navbar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: #1a1a1a;
}

.navbar__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.navbar__links a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a1a1a;
  position: relative;
  transition: color 0.4s ease;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.navbar__links a:hover::after {
  width: 100%;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: #1a1a1a;
}

/* ─── Mobile overlay ────────────────────────────── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-text);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-overlay__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: rgba(255,255,255,0.5);
  font-size: 1.25rem;
  transition: color 0.3s;
}

.mobile-overlay__close:hover {
  color: var(--color-white);
}

.mobile-overlay__links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-overlay__links a {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2rem;
  color: var(--color-white);
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.mobile-overlay__links a:hover {
  color: var(--color-accent);
}


/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('img/hero-madrid.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-left: 8%;
  max-width: 700px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(4rem, 8vw, 9rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin: 1.25rem 0 1.25rem;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 3rem;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero__link {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.hero__link:hover {
  color: var(--color-white);
}


/* ═══════════════════════════════════════════════════
   SOBRE BEGOÑA
═══════════════════════════════════════════════════ */
.sobre__grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 6rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.sobre__image-wrap {
  overflow: hidden;
  aspect-ratio: 3/4;
}

.sobre__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.sobre__image-wrap:hover img {
  transform: scale(1.03);
}

.sobre__text-col h2 {
  margin-bottom: 2rem;
}

.sobre__text-col .eyebrow {
  margin-bottom: 0.75rem;
}

/* Stats */
.stats {
  display: flex;
  gap: 0;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 2rem;
}

.stat:first-child {
  padding-left: 0;
}

.stat__number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--color-accent);
  line-height: 1.2;
}

.stat__label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.stat__divider {
  width: 1px;
  background: var(--color-border);
  align-self: stretch;
}


/* ═══════════════════════════════════════════════════
   SERVICIOS
═══════════════════════════════════════════════════ */
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 4rem;
  position: relative;
  z-index: 1;
}

.servicio {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.servicio:hover {
  border-bottom-color: var(--color-accent);
  box-shadow: 0 8px 32px rgba(184, 92, 42, 0.08);
  transform: translateY(-4px);
}

.servicio__num {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.servicio__icon {
  color: var(--color-accent);
  line-height: 0;
}

.servicio__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--color-text);
}

.servicio__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}


/* ═══════════════════════════════════════════════════
   POR QUÉ BEGOÑA
═══════════════════════════════════════════════════ */
.porque {
  background: var(--color-surface);
}

.porque__intro {
  margin-top: 1.5rem;
  max-width: 560px;
}

/* ─── Accordion ─────────────────────────────────── */
.porque__accordion {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.accordion__item {
  border-top: 1px solid var(--color-border);
}

.accordion__item--last {
  border-bottom: 1px solid var(--color-border);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion__pregunta {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--color-text);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.accordion__trigger:hover .accordion__pregunta,
.accordion__item.active .accordion__pregunta {
  color: var(--color-accent);
}

.accordion__icon {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  display: inline-block;
}

.accordion__item.active .accordion__icon {
  transform: rotate(45deg);
}

/* Cuerpo desplegable */
.accordion__body {
  height: 0;
  overflow: hidden;
  transition: height 0.4s ease;
}

.accordion__respuesta {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  padding-bottom: 1.5rem;
}

/* CTA final */
.porque__cta {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.porque__cta-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--color-text);
}

.btn--accent {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  cursor: pointer;
  background: var(--color-accent);
  color: var(--color-white);
  border: 1px solid var(--color-accent);
  transition: all 0.3s ease;
}

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

/* Mobile */
@media (max-width: 768px) {
  .porque__intro {
    max-width: 100%;
  }
}


/* ═══════════════════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════════════════ */
/* Filtros */
.portfolio__filters {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 3px;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--color-accent);
}

.filter-btn.active::after {
  width: 100%;
}

/* ─── Slider / Carrusel ─────────────────────────── */
.slider__data {
  display: none;
}

.portfolio__slider {
  position: relative;
  z-index: 1;
  user-select: none;
}

/* Stage: ventana de visualización */
.slider__stage {
  position: relative;
  height: 600px;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cada slide */
.slider__slide {
  position: absolute;
  height: 100%;
  width: 56%;
  max-width: 800px;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}

/* Imagen dentro del slide */
.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.slider__slide--active:hover img {
  transform: scale(1.04);
}

/* Overlay de nombre al hover — solo en slide central */
.slider__slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 12px;
}

.slider__slide--active:hover .slider__slide-overlay {
  opacity: 1;
}

.slider__slide-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--color-white);
  text-align: center;
  padding: 0 2rem;
  letter-spacing: 0.05em;
}

/* Estados posicionales */
.slider__slide--prev {
  transform: translateX(-72%) scale(0.96);
  opacity: 0.6;
  z-index: 1;
}

.slider__slide--active {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 2;
}

.slider__slide--next {
  transform: translateX(72%) scale(0.96);
  opacity: 0.6;
  z-index: 1;
}

/* Slides fuera del rango visible */
.slider__slide--hidden {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transform: translateX(0) scale(0.7);
}

/* Flechas */
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: var(--color-accent);
  padding: 0;
  line-height: 0;
  transition: color 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

.slider__arrow:hover {
  opacity: 1;
  color: var(--color-accent-hover);
}

.slider__arrow--prev {
  left: 0;
}

.slider__arrow--next {
  right: 0;
}

/* Dots */
.slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2rem;
}

.slider__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.slider__dot--active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* Cursor personalizado en el slider */
.portfolio__slider {
  cursor: none;
}

.slider__cursor {
  position: fixed;
  width: 56px;
  height: 56px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-accent);
}

.slider__cursor.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Separadores editoriales entre secciones */
.section-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  height: 1px;
  position: relative;
  overflow: visible;
}

.section-sep::before {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: var(--color-border);
}


/* ═══════════════════════════════════════════════════
   CONTACTO
═══════════════════════════════════════════════════ */
.contacto {
  background: var(--color-surface);
}

.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contacto__intro {
  margin-bottom: 3rem;
  font-size: 1.05rem;
  color: var(--color-text);
  max-width: 320px;
}

.contacto__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contacto__details li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contacto__detail-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contacto__detail-value {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color 0.3s;
}

a.contacto__detail-value:hover {
  color: var(--color-accent);
}

/* Formulario */
.contacto__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6460' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #B85C2A;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-border);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contacto__form .btn--primary {
  width: 100%;
}

.form-success {
  display: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-accent);
  padding-top: 0.5rem;
}

.form-success.visible {
  display: block;
}


/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  background: var(--color-text);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

.footer__nav {
  display: flex;
  gap: 2rem;
}

.footer__nav a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}

.footer__nav a:hover {
  color: rgba(255,255,255,0.8);
}





/* ═══════════════════════════════════════════════════
   RESPONSIVE — Tablet
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  h2 {
    font-size: 2.5rem;
  }

  .sobre__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .servicios__grid {
    gap: 0 2.5rem;
  }

  .contacto__grid {
    gap: 4rem;
  }
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE — Tablet (slider ajuste)
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) and (min-width: 769px) {
  .slider__stage {
    height: 480px;
  }

  .slider__slide {
    width: 62%;
  }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-py: var(--section-py-mobile);
  }

  .container {
    padding: 0 1.5rem;
  }

  /* Navbar */
  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
    min-height: 48px;
    min-width: 48px;
    align-items: center;
    justify-content: center;
  }

  .navbar__inner {
    padding: 0 1.5rem;
  }

  /* Navbar brand blanco sobre hero transparente en mobile */
  .navbar__brand,
  .navbar__brand-text {
    color: #ffffff;
  }

  .navbar__hamburger span {
    background: #ffffff;
  }

  .navbar.scrolled .navbar__brand,
  .navbar.scrolled .navbar__brand-text {
    color: #1a1a1a;
  }

  .navbar.scrolled .navbar__hamburger span {
    background: #1a1a1a;
  }

  /* Hero */
  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .hero__content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 100%;
  }

  .hero__ctas .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }

  /* Sobre */
  .sobre__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sobre__image-col {
    order: 2;
  }

  .sobre__text-col {
    order: 1;
  }

  .stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat {
    padding: 0;
  }

  .stat__divider {
    display: none;
  }

  /* Servicios */
  .servicios__grid {
    grid-template-columns: 1fr;
  }

  /* Acordeón — touch target mínimo */
  .accordion__trigger {
    min-height: 56px;
  }

  /* Portfolio slider — solo imagen central */
  .slider__stage {
    height: auto;
    aspect-ratio: 4/5;
    max-height: 480px;
  }

  .slider__slide {
    width: 88%;
  }

  .slider__slide--prev,
  .slider__slide--next {
    opacity: 0;
    pointer-events: none;
  }

  .slider__arrow--prev { left: 0; }
  .slider__arrow--next { right: 0; }

  /* Desactivar cursor personalizado en touch */
  .portfolio__slider {
    cursor: auto;
  }

  .slider__cursor {
    display: none;
  }

  /* Filtros portfolio — scroll horizontal en móvil.
     overflow:clip en el section permite que el hijo scrollee sin crear
     un scroll container en el padre (a diferencia de overflow:hidden). */
  #portfolio {
    overflow: clip;
  }

  .portfolio__filters {
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    padding-right: 1.5rem;
    flex-wrap: nowrap;
  }

  .filter-btn {
    flex-shrink: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Contacto */
  .contacto__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contacto__intro {
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Inputs: font-size 16px mínimo — evita zoom en iOS */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    min-height: 48px;
  }

  .form-group textarea {
    min-height: 120px;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer__brand-text,
  .footer__nav,
  .footer__social {
    width: 100%;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }

  /* Editorial number */
  .editorial-number {
    font-size: 8rem;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  /* Botones generales — touch target */
  .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Cookie banner — full width en mobile */
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}


/* ═══════════════════════════════════════════════════
   LOGO — navbar y footer
═══════════════════════════════════════════════════ */
.navbar__logo {
  height: 40px;
  width: auto;
  display: block;
}

.navbar__brand-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.15em;
  display: none;
}

.navbar__brand {
  display: flex;
  align-items: center;
}

.footer__logo {
  height: 32px;
  width: auto;
  display: block;
}

.footer__brand-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}


/* ═══════════════════════════════════════════════════
   MOBILE OVERLAY — touch targets
═══════════════════════════════════════════════════ */
.mobile-overlay__links a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-overlay__close {
  min-height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ═══════════════════════════════════════════════════
   ICONOS SOCIALES
═══════════════════════════════════════════════════ */
.contacto__social {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
}

.social-icon {
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.social-icon:hover {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icon--footer {
  color: rgba(255,255,255,0.35);
  min-width: 36px;
  min-height: 36px;
}

.social-icon--footer:hover {
  color: rgba(255,255,255,0.8);
}


/* ═══════════════════════════════════════════════════
   FOOTER — legal links
═══════════════════════════════════════════════════ */
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__legal {
  width: 100%;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.footer__legal a,
.footer__legal span {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}

.footer__legal a:hover {
  color: rgba(255,255,255,0.7);
}


/* ═══════════════════════════════════════════════════
   WHATSAPP FAB
═══════════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(184, 92, 42, 0.35);
  transition: background 0.3s ease, transform 0.2s ease;
}

.whatsapp-fab:hover {
  background: var(--color-accent-hover);
  transform: scale(1.05);
}


/* ═══════════════════════════════════════════════════
   BLOG — Sección index
═══════════════════════════════════════════════════ */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.blog-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card__image-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 1.75rem;
}

.blog-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.blog-card__link:hover .blog-card__image-wrap img {
  transform: scale(1.04);
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-card__category {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.blog-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.blog-card__link:hover .blog-card__title {
  color: var(--color-accent);
}

.blog-card__excerpt {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.blog-card__read {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 0.5rem;
  transition: letter-spacing 0.3s ease;
}

.blog-card__link:hover .blog-card__read {
  letter-spacing: 0.25em;
}

@media (max-width: 768px) {
  .blog__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}


/* ═══════════════════════════════════════════════════
   BLOG — Artículo individual (blog/*.html)
═══════════════════════════════════════════════════ */
.blog-post {
  max-width: 760px;
  margin: 0 auto;
  padding: 8rem 2.5rem 6rem;
}

.blog-post__header {
  margin-bottom: 3rem;
}

.blog-post__header .eyebrow {
  display: block;
  margin-bottom: 1.25rem;
}

.blog-post__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.blog-post__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.blog-post__header img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.blog-post__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text);
}

.blog-post__body p {
  margin-bottom: 1.5rem;
}

.blog-post__body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--color-text);
  margin: 3rem 0 1.25rem;
  line-height: 1.2;
}

.blog-post__body img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  margin: 2.5rem 0;
}

.blog-post__body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.blog-post__body a:hover {
  color: var(--color-accent-hover);
}

.blog-post__footer {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.blog-post__cta {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.25rem;
  color: var(--color-text);
  line-height: 1.5;
}

.blog-post__cta a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.blog-post__cta a:hover {
  color: var(--color-accent-hover);
}

@media (max-width: 768px) {
  .blog-post {
    padding: 6rem 1.5rem 4rem;
  }

  .blog-post__title {
    font-size: 2rem;
  }

  .blog-post__body h2 {
    font-size: 1.4rem;
  }
}


/* ═══════════════════════════════════════════════════
   COOKIE BANNER
═══════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-text);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2.5rem;
  z-index: 998;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.cookie-banner__accept {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  min-height: 40px;
  transition: background 0.3s ease;
}

.cookie-banner__accept:hover {
  background: var(--color-accent-hover);
}

.cookie-banner__more {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.cookie-banner__more:hover {
  color: rgba(255,255,255,0.8);
}


/* ─── 480px — móvil pequeño ──────────────────────── */
@media (max-width: 480px) {
  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .sobre__image-wrap {
    max-height: 420px;
  }
  .editorial-number {
    font-size: 5rem;
  }
  h2 {
    font-size: 1.75rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .stat__number {
    word-break: break-word;
  }
  .cookie-banner__accept {
    min-height: 44px;
  }
  .container {
    padding: 0 1.25rem;
  }
}
