/* ============================================================
   PINTURAS BARCELÓ — Design System & Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* --- Design Tokens ------------------------------------------ */
:root {
  --color-dark:       #1E0E06;
  --color-primary:    #3D1F10;
  --color-warm:       #8B5E3C;
  --color-sand:       #C4A882;
  --color-cream:      #F5F0EA;
  --color-white:      #FDFCFB;
  --color-text:       #2A1A10;
  --color-text-light: #7A6255;

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

  --nav-height:    80px;
  --max-width:     1280px;
  --section-pad:   clamp(4.5rem, 9vw, 9rem);
  --gutter:        clamp(1.25rem, 4vw, 2rem);

  --radius:       3px;
  --ease:         0.3s ease;
  --ease-out:     0.65s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm:    0 2px 12px rgba(30,14,6,0.07);
  --shadow-md:    0 8px 32px rgba(30,14,6,0.12);
  --shadow-lg:    0 20px 60px rgba(30,14,6,0.18);
}

/* --- Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { list-style: none; }

/* --- Typography --------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); }
h3 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }

p { line-height: 1.75; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-warm);
  margin-bottom: 0.85rem;
}

/* --- Layout ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-header {
  text-align: center;
  max-width: 65ch;
  margin: 0 auto 4.5rem;
}
.section-header p {
  color: var(--color-text-light);
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* Ornament divider */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.ornament__line { flex: 0 0 48px; height: 1px; background: var(--color-sand); }
.ornament__svg { width: 22px; height: 22px; color: var(--color-sand); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--ease), box-shadow var(--ease);
}
.nav.nav--scrolled {
  background: var(--color-white);
  box-shadow: 0 1px 0 rgba(30,14,6,0.09), 0 4px 20px rgba(30,14,6,0.05);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo — white version over hero, color version once scrolled */
.nav__logo { height: 68px; flex-shrink: 0; display: flex; align-items: center; }

.nav__logo img { height: 100%; width: auto; object-fit: contain; }
.logo--color { display: none; }
.logo--white { display: block; }
.nav.nav--scrolled .logo--white { display: none; }
.nav.nav--scrolled .logo--color { display: block; }

/* On pages with dark page header (non-hero), always show color logo */
.page-nav .logo--white { display: none; }
.page-nav .logo--color { display: block; }
.page-nav { background: var(--color-white); box-shadow: 0 1px 0 rgba(30,14,6,0.09); }

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

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: color var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--color-sand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav.nav--scrolled .nav__links a { color: var(--color-text); }
.page-nav .nav__links a { color: var(--color-text); }

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav__social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav__social-links a {
  display: flex;
  color: rgba(255,255,255,0.75);
  transition: color var(--ease), transform var(--ease);
}
.nav__social-links a:hover { color: var(--color-sand); transform: translateY(-1px); }
.nav.nav--scrolled .nav__social-links a { color: var(--color-warm); }
.page-nav .nav__social-links a { color: var(--color-warm); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.35rem;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  white-space: nowrap;
  transition: all var(--ease);
}
.nav__cta:hover { background: rgba(255,255,255,0.15); border-color: white; }
.nav.nav--scrolled .nav__cta { border-color: var(--color-primary); color: var(--color-primary); }
.nav.nav--scrolled .nav__cta:hover { background: var(--color-primary); color: white; }
.page-nav .nav__cta { border-color: var(--color-primary); color: var(--color-primary); }
.page-nav .nav__cta:hover { background: var(--color-primary); color: white; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  -webkit-tap-highlight-color: transparent;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: white;
  border-radius: 1px;
  transition: all var(--ease);
}
.nav.nav--scrolled .nav__hamburger span,
.page-nav .nav__hamburger span { background: var(--color-dark); }
.nav__hamburger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.is-active span:nth-child(2) { opacity: 0; width: 0; }
.nav__hamburger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--color-white);
  padding: 1.5rem var(--gutter) 2rem;
  box-shadow: var(--shadow-md);
  z-index: 998;
  border-top: 1px solid var(--color-cream);
}
.nav__drawer.is-open { display: block; animation: slide-down 0.25s ease-out; }
@keyframes slide-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.nav__drawer-links { margin-bottom: 1.5rem; }
.nav__drawer-links li { border-bottom: 1px solid var(--color-cream); }
.nav__drawer-links a {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text);
}
.nav__drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
}
.nav__drawer-social { display: flex; gap: 1rem; }
.nav__drawer-social a { color: var(--color-warm); display: flex; }

/* Mobile drawer: dos botones de llamada apilados */
.nav__drawer-phones {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nav__drawer-phones .btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
}

/* Phone CTA dropdown (desktop nav) */
.nav__phone-cta { position: relative; }
.nav__cta--phone {
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  gap: 0.5rem;
}
.nav__phone-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
  min-width: 192px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--ease), transform var(--ease);
  z-index: 1100;
}
.nav__phone-cta.is-open .nav__phone-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.nav__phone-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--ease), color var(--ease);
}
.nav__phone-option:hover {
  background: var(--color-cream);
  color: var(--color-primary);
}
.nav__phone-divider {
  height: 1px;
  background: var(--color-cream);
  margin: 0.3rem 0.5rem;
}
.nav__phone-option--whatsapp { color: #128C7E; }
.nav__phone-option--whatsapp:hover {
  background: #f0faf8;
  color: #075E54;
}

/* FAB phone button (solo en móvil) */
.fab-phone {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 999;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
@media (max-width: 900px) {
  .fab-phone { display: flex; }
}
.fab-phone__btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: phone-pulse 2.5s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--ease), transform var(--ease);
}
.fab-phone__btn:hover,
.fab-phone__btn:focus-visible {
  background: var(--color-dark);
  transform: scale(1.05);
  animation: none;
}
@keyframes phone-pulse {
  0%,  100% { box-shadow: 0 4px 24px rgba(61,31,16,0.3), 0 0 0 0   rgba(61,31,16,0.35); }
  50%        { box-shadow: 0 4px 24px rgba(61,31,16,0.3), 0 0 0 10px rgba(61,31,16,0); }
}
.fab-phone__panel {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.97);
  transition: opacity var(--ease), transform var(--ease);
  transform-origin: bottom right;
}
.fab-phone.is-open .fab-phone__panel {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.fab-phone__number {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.fab-phone__number:hover {
  background: var(--color-cream);
}

/* FAB WhatsApp button (solo en móvil) */
.fab-whatsapp {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 1.25rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #25D366;
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--ease), transform var(--ease);
}
@media (max-width: 900px) {
  .fab-whatsapp { display: flex; }
}
.fab-whatsapp:hover,
.fab-whatsapp:focus-visible {
  background: #128C7E;
  transform: scale(1.05);
  animation: none;
}
@keyframes whatsapp-pulse {
  0%,  100% { box-shadow: 0 4px 24px rgba(37,211,102,0.3), 0 0 0 0   rgba(37,211,102,0.35); }
  50%        { box-shadow: 0 4px 24px rgba(37,211,102,0.3), 0 0 0 10px rgba(37,211,102,0); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.1rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--ease);
  line-height: 1;
}
.btn--primary { background: var(--color-primary); color: white; }
.btn--primary:hover { background: var(--color-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--outline-light { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: white; }
.btn--outline-dark { background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn--outline-dark:hover { background: var(--color-primary); color: white; transform: translateY(-1px); }
.btn--sand { background: var(--color-sand); color: var(--color-dark); }
.btn--sand:hover { background: var(--color-warm); color: white; transform: translateY(-1px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: hero-drift 18s ease-out forwards;
}
@keyframes hero-drift {
  from { transform: scale(1.08); opacity: 0.7; }
  to   { transform: scale(1.0);  opacity: 1; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(30,14,6,0.25) 0%,
    rgba(30,14,6,0.50) 45%,
    rgba(30,14,6,0.72) 100%
  );
}

/* Grain texture */
.hero__overlay::after {
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 var(--gutter);
  max-width: 900px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: 2rem;
  animation: fade-up 1s ease-out 0.6s both;
}
.hero__badge::before,
.hero__badge::after {
  content: '';
  flex: 0 0 28px;
  height: 1px;
  background: var(--color-sand);
  opacity: 0.6;
}

.hero__title {
  font-size: clamp(3.2rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 1.0;
  margin-bottom: 1.75rem;
  animation: fade-up 1s ease-out 0.8s both;
}
.hero__title em {
  font-style: italic;
  color: var(--color-sand);
  display: block;
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  opacity: 0.8;
  max-width: 52ch;
  margin: 0 auto 2.75rem;
  animation: fade-up 1s ease-out 1s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fade-up 1s ease-out 1.2s both;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: fade-up 1s ease-out 1.6s both;
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.5));
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(0.6); transform-origin: top; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--section-pad) 0;
  background: var(--color-white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about__photos {
  position: relative;
  padding-bottom: 4rem;
}
.about__photo-main {
  width: 68%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
}
.about__photo-secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid var(--color-white);
  box-shadow: var(--shadow-lg);
}

.about__content { padding-top: 1rem; }
.about__content h2 { margin-bottom: 1.5rem; }
.about__text {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}
.about__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-warm);
  transition: gap var(--ease), color var(--ease);
}
.about__cta:hover { gap: 1rem; color: var(--color-primary); }
.about__cta svg { flex-shrink: 0; }

/* ============================================================
   SERVICES PREVIEW
   ============================================================ */
.services-preview {
  padding: var(--section-pad) 0;
  background: var(--color-cream);
}

.services-preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--ease-out), box-shadow var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.service-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.service-card:hover .service-card__img img { transform: scale(1.06); }

.service-card__body { padding: 1.4rem 1.5rem 1.75rem; }
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.service-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

.services-preview__footer { text-align: center; }

/* ============================================================
   BRANDS
   ============================================================ */
.brands {
  padding: var(--section-pad) 0;
  background: #6B3820;
  color: white;
  position: relative;
  overflow: hidden;
}
.brands::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='rgba(196,168,130,0.06)' stroke-width='1'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.brands .container { position: relative; z-index: 1; text-align: center; }
.brands .eyebrow { color: var(--color-sand); }
.brands h2 { color: white; margin-bottom: 0.75rem; }
.brands__sub { opacity: 0.65; margin-bottom: 3.5rem; }

/* Logo ticker */
.brands__ticker-wrap {
  overflow: hidden;
  margin-bottom: 3.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image:         linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.brands__ticker {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: brands-scroll 40s linear infinite;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .brands__ticker {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    gap: 2rem 3rem;
  }
}
.brands__ticker:hover { animation-play-state: paused; }
@keyframes brands-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.brand-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}
.brand-item img {
  max-height: 58px;
  max-width: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.65;
  transition: opacity var(--ease);
}
.brands__ticker:hover .brand-item img { opacity: 1; }

.brands__cta { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.brands__cta p {
  font-size: 0.95rem;
  opacity: 0.7;
  max-width: 45ch;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: var(--section-pad) 0;
  background: var(--color-white);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--color-cream);
  padding: 2.25rem;
  border-radius: var(--radius);
  border-top: 3px solid var(--color-sand);
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-card__google {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-text-light);
  opacity: 0.7;
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}
.star { color: #F59E0B; font-size: 0.9rem; }

.testimonial-card__text {
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--color-text);
  font-style: italic;
  flex: 1;
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-warm), var(--color-sand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}
.testimonial-card__name { font-weight: 500; font-size: 0.9rem; }
.testimonial-card__date { font-size: 0.75rem; color: var(--color-text-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.65);
  padding: 5rem 0 2.5rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}

.footer__logo { height: 68px; width: auto; margin-bottom: 1.25rem; }
.footer__desc { font-size: 0.875rem; line-height: 1.75; opacity: 0.6; margin-bottom: 1.5rem; max-width: 30ch; }
.footer__social { display: flex; gap: 0.7rem; }
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  transition: all var(--ease);
}
.footer__social a:hover {
  background: var(--color-warm);
  border-color: var(--color-warm);
  color: white;
  transform: translateY(-2px);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: 1.25rem;
}

.footer__links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__links a { font-size: 0.875rem; opacity: 0.6; transition: opacity var(--ease); }
.footer__links a:hover { opacity: 1; }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.875rem;
  opacity: 0.6;
  margin-bottom: 0.8rem;
}
.footer__contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--color-sand); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__copy { font-size: 0.78rem; opacity: 0.38; }
.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links a { font-size: 0.78rem; opacity: 0.38; transition: opacity var(--ease); }
.footer__bottom-links a:hover { opacity: 0.75; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  padding-top: var(--nav-height);
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
}
.page-header__bg { position: absolute; inset: 0; }
.page-header__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.page-header__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(61,31,16,0.3), rgba(61,31,16,0.7));
}
.page-header__content { position: relative; z-index: 1; color: white; }
.page-header__content h1 { color: white; margin-top: 0.5rem; }

/* ============================================================
   BEFORE/AFTER SLIDER
   ============================================================ */
.before-after-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
  aspect-ratio: 16 / 10;
  background: var(--color-cream);
}

.slider-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-after { z-index: 1; }
.img-before { z-index: 2; clip-path: inset(0 50% 0 0); }

.slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* The vertical line + circular handle */
.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.9);
  z-index: 5;
  pointer-events: none;
}
.slider-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.handle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 2px;
}

.slider-label {
  position: absolute;
  top: 1rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  background: rgba(30,14,6,0.6);
  backdrop-filter: blur(4px);
  padding: 0.28rem 0.65rem;
  border-radius: 2px;
  z-index: 4;
  pointer-events: none;
}
.label-before { left: 1rem; }
.label-after  { right: 1rem; }

/* ============================================================
   SERVICES PAGE — Row Layout
   ============================================================ */
.services-list { padding: var(--section-pad) 0; }

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--color-cream);
}
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: none; }

.service-row--reverse .service-row__visual { order: 2; }
.service-row--reverse .service-row__content { order: 1; }

.service-row__number {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--color-cream);
  line-height: 1;
  margin-bottom: -0.75rem;
  font-weight: 300;
}
.service-row__title {
  margin-bottom: 1.25rem;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}
.service-row__desc {
  color: var(--color-text-light);
  margin-bottom: 0.85rem;
  font-size: 0.99rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
/* Social hero */
.social-hero {
  padding-top: var(--nav-height);
  min-height: 55vh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, var(--color-dark) 0%, var(--color-primary) 55%, var(--color-warm) 100%);
  position: relative;
  overflow: hidden;
}
.social-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 70% 50%, rgba(196,168,130,0.12), transparent);
}
.social-hero .container { position: relative; z-index: 1; }

.social-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.social-hero__text { color: white; }
.social-hero__text h1 { color: white; margin-bottom: 0.75rem; }
.social-hero__sub { opacity: 0.75; font-size: 1.05rem; margin-bottom: 0; }

.social-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all var(--ease-out);
  text-decoration: none;
  color: white;
}
.social-card--instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-card--facebook { background: #1877F2; }
.social-card:hover { transform: translateX(6px) scale(1.01); box-shadow: 0 12px 32px rgba(0,0,0,0.35); }

.social-card__icon { width: 32px; height: 32px; flex-shrink: 0; }
.social-card__label { flex: 1; }
.social-card__name { font-size: 0.8rem; font-weight: 400; opacity: 0.8; }
.social-card__handle { font-size: 1.1rem; font-weight: 500; }
.social-card__arrow { opacity: 0.6; margin-left: auto; }

/* Contact info */
.contact-info-section {
  padding: 5.5rem 0;
  background: var(--color-cream);
}
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.info-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.info-card__icon {
  width: 54px; height: 54px;
  background: var(--color-cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-warm);
}
.info-card__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.4rem;
}
.info-card__value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-dark);
  line-height: 1.35;
}

/* Contact form */
.contact-form-section {
  padding: var(--section-pad) 0;
  background: var(--color-white);
}
.contact-form-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 7rem;
  align-items: start;
}

.contact-aside h3 { margin-bottom: 1rem; font-size: 2rem; }
.contact-aside p { color: var(--color-text-light); margin-bottom: 1.5rem; font-size: 0.97rem; }
.contact-aside__social { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-aside__social a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  transition: color var(--ease);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-cream);
}
.contact-aside__social a:hover { color: var(--color-primary); }
.contact-aside__social a svg { color: var(--color-warm); }

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
}
.contact-form__group label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
}
.contact-form__group input,
.contact-form__group select,
.contact-form__group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(61,31,16,0.14);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--color-text);
  background: var(--color-white);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.contact-form__group input:focus,
.contact-form__group select:focus,
.contact-form__group textarea:focus {
  border-color: var(--color-warm);
  box-shadow: 0 0 0 3px rgba(139,94,60,0.1);
}
.contact-form__group input.error,
.contact-form__group select.error,
.contact-form__group textarea.error { border-color: #B91C1C; }
.contact-form__group .field-error {
  font-size: 0.76rem;
  color: #B91C1C;
  display: none;
}
.contact-form__group.has-error .field-error { display: block; }
.contact-form__group textarea { resize: vertical; min-height: 145px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form__honeypot { display: none; visibility: hidden; }

/* Success state */
.form-wrapper { position: relative; }
.form-success {
  display: none;
  text-align: center;
  padding: 3.5rem 2rem;
  background: linear-gradient(145deg, var(--color-cream), white);
  border-radius: 6px;
  border: 1px solid rgba(196,168,130,0.35);
  animation: fade-up 0.5s ease-out;
}
.form-success.is-visible { display: block; }
.form-success__icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, var(--color-warm), var(--color-sand));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}
.form-success h3 { font-size: 2.2rem; color: var(--color-primary); margin-bottom: 0.75rem; }
.form-success p { color: var(--color-text-light); max-width: 36ch; margin: 0 auto; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-preview__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .about__inner { gap: 4rem; }
  .service-row { gap: 3rem; }
}

@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; gap: 3rem; }
  .about__photos { padding-bottom: 3.5rem; }
  .testimonials__grid { grid-template-columns: 1fr; gap: 1rem; }
  .social-hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-form-section__inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-info-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-row { grid-template-columns: 1fr; padding: 3rem 0; }
  .service-row--reverse .service-row__visual,
  .service-row--reverse .service-row__content { order: 0; }
}

@media (max-width: 768px) {
  .nav__menu,
  .nav__right { display: none; }
  .nav__hamburger { display: flex; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .services-preview__grid { grid-template-columns: 1fr 1fr; }
  .brands__list { gap: 0.5rem 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .services-preview__grid { grid-template-columns: 1fr; }
  .about__photo-main { width: 80%; }
  .about__photo-secondary { width: 60%; right: 0; }
  .social-card { flex-direction: column; text-align: center; gap: 0.75rem; }
}

/* ============================================================
   CONÓCENOS PAGE
   ============================================================ */

/* Stats strip */
.stats-strip {
  padding: 4.5rem 0;
  background: var(--color-primary);
}
.stats-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
}
.stats-strip__divider {
  width: 1px;
  height: 3rem;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--color-sand);
  line-height: 1;
}
.stat-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
}

/* Formation section */
.formation {
  padding: var(--section-pad) 0;
  background: var(--color-cream);
}
.formation__tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.tab-btn {
  padding: 0.65rem 1.75rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--color-primary);
  transition: all var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.tab-btn.is-active,
.tab-btn:hover {
  background: var(--color-primary);
  color: white;
}
.tab-panel { display: none; }
.tab-panel.is-active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Diploma card */
.diploma-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease-out), box-shadow var(--ease);
}
.diploma-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.diploma-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.diploma-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.diploma-card:hover .diploma-card__img img { transform: scale(1.04); }
.diploma-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.diploma-card__course {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.diploma-card__meta {
  font-size: 0.78rem;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

/* Philosophy quote */
.philosophy-quote {
  padding: var(--section-pad) 0;
  background: var(--color-dark);
  text-align: center;
}
.ornament__line--light { background: rgba(196,168,130,0.4); }
.ornament__svg--light { color: var(--color-sand); }
.philosophy-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-cream);
  max-width: 40ch;
  margin: 1.5rem auto 1.5rem;
  line-height: 1.5;
}
.philosophy-quote__author {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-sand);
}

/* CTA strip */
.cta-strip {
  padding: var(--section-pad) 0;
  background: var(--color-cream);
  text-align: center;
}

/* Conocenos responsive */
@media (max-width: 900px) {
  .tab-panel.is-active { grid-template-columns: 1fr 1fr; }
  .stats-strip__divider { display: none; }
  .stats-strip__inner { gap: 2rem; }
}
@media (max-width: 520px) {
  .tab-panel.is-active { grid-template-columns: 1fr; }
  .stats-strip__inner { gap: 1.5rem; }
  .formation__tabs { flex-direction: column; align-items: center; }
}
