/* ==========================================================
   RUBIO & QUIROGA OCULARISTAS — v2
   Diseño: blanco limpio, tipografía editorial, acento magenta
   del logo. Sin redondeos, sin gradientes. Clínico y elegante.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg:          #FFFFFF;
  --bg-off:      #FAFAFA;
  --bg-section:  #F5F5F5;
  --ink:         #111111;
  --ink-soft:    #555555;
  --ink-faint:   #999999;
  --magenta:     #C2007C;
  --magenta-dk:  #96005E;
  --line:        #E2E2E2;
  --white:       #FFFFFF;

  --font-head: 'Nunito', Arial, sans-serif;
  --font-body: 'Nunito', Arial, sans-serif;

  --max-w: 1160px;
  --r: 0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
h3 { font-size: 1.5rem; font-weight: 500; }
p  { color: var(--ink-soft); line-height: 1.75; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Utility ---- */
.label {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--magenta);
  display: block;
  margin-bottom: 10px;
}
.section { padding: 88px 0; }
.section--off { background: var(--bg-off); }
.section--gray { background: var(--bg-section); }
.section-head { max-width: 600px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn--fill  { background: var(--magenta); color: #fff; border-color: var(--magenta); }
.btn--fill:hover { background: var(--magenta-dk); border-color: var(--magenta-dk); }
.btn--ghost { background: transparent; color: var(--magenta); border-color: var(--magenta); }
.btn--ghost:hover { background: var(--magenta); color: #fff; }
.btn--white { background: #fff; color: var(--magenta); border-color: #fff; }
.btn--white:hover { background: transparent; color: #fff; border-color: #fff; }

:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

/* ---- Top bar ---- */
.topbar {
  background: #1A1A1A;
  color: #999;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  border-bottom: 1px solid #2a2a2a;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  gap: 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 0;
}
.topbar-left a {
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  transition: color .15s;
}
.topbar-left a:first-child {
  padding-left: 0;
  border-right: 1px solid #333;
}
.topbar-left a svg { width: 12px; height: 12px; opacity: .7; }
.topbar a:hover { color: #fff; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topbar-right a {
  color: #777;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s;
}
.topbar-right a:hover { color: #fff; }
.topbar-right svg { width: 14px; height: 14px; }


/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 500;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.logo img { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--ink);
  transition: color .15s;
}
.nav-link:hover, .nav-item.open > .nav-link { color: var(--magenta); }
.nav-item.current > .nav-link { color: var(--magenta); }
.caret {
  width: 9px; height: 9px;
  transition: transform .2s;
  stroke: currentColor;
  fill: none;
}
.nav-item.open .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--magenta);
  box-shadow: 0 8px 30px rgba(0,0,0,.09);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-item.open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 22px;
  font-size: .87rem;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  transition: color .12s, border-color .12s, background .12s;
}
.dropdown a:hover {
  color: var(--magenta);
  border-left-color: var(--magenta);
  background: #fdf5fa;
}

/* CTA nav button */
.nav-cta { margin-left: 16px; }

/* Mobile toggle */
.nav-toggle { display: none; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }
.nav-scrim { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-scrim {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 490;
    opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility .25s;
  }
  .nav-scrim.show { opacity: 1; visibility: visible; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 340px);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 0 30px;
    transform: translateX(100%);
    transition: transform .25s ease;
    box-shadow: -4px 0 30px rgba(0,0,0,.12);
    z-index: 500;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .nav-link { padding: 13px 24px; border-bottom: 1px solid var(--line); }
  .nav-link:last-child { border-bottom: none; }
  .dropdown {
    position: static; border: none; border-top: none;
    box-shadow: none; opacity: 1; visibility: visible;
    transform: none; max-height: 0; overflow: hidden;
    padding: 0; transition: max-height .2s ease;
  }
  .nav-item.open .dropdown { max-height: 400px; padding: 4px 0 8px; }
  .dropdown a { padding: 9px 38px; border-left: none; font-size: .85rem; }
  .nav-cta { margin: 20px 24px 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---- WhatsApp float ---- */
.wa-float {
  position: fixed;
  right: 24px; bottom: 28px;
  z-index: 600;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 16px;
  height: 52px;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 2px 8px rgba(0,0,0,.15);
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
  white-space: nowrap;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.55), 0 4px 12px rgba(0,0,0,.15);
}
.wa-float svg { width: 26px; height: 26px; flex-shrink: 0; }
.wa-float-label {
  font-family: 'Nunito', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
}
@media (max-width: 600px) {
  .wa-float { padding: 0; width: 52px; justify-content: center; border-radius: 50%; }
  .wa-float-label { display: none; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  /* Fixed height ratio — never stretches or squashes */
  height: clamp(420px, 56vw, 700px);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Stronger gradient so text is always legible */
  background: linear-gradient(
    105deg,
    rgba(0,0,0,.75) 0%,
    rgba(0,0,0,.50) 45%,
    rgba(0,0,0,.15) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 600px;
}
.hero-content .label { color: rgba(255,255,255,.8); letter-spacing: .2em; }
.hero-content h1 {
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.8vw, 3rem);
  font-weight: 700;
  margin-bottom: .45em;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.hero-content p {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 400;
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* Hero-specific button overrides — clean, no icons cluttering */
.hero-actions .btn {
  padding: 13px 30px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.hero-actions .btn svg { display: none; }  /* hide icons inside hero btns — cleaner */

@media (max-width: 640px) {
  .hero { height: auto; min-height: 380px; padding: 60px 0; }
  .hero-img { position: absolute; }
}

/* ---- Before / After ---- */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 680px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-item h3 {
  font-size: 1.3rem;
  margin-bottom: 18px;
  border-left: 3px solid var(--magenta);
  padding-left: 14px;
}
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--line);
}
.ba-pair figure { position: relative; overflow: hidden; aspect-ratio: 1; }
.ba-pair img { width: 100%; height: 100%; object-fit: cover; }
.ba-pair figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  text-align: center;
}

/* ---- Historia ---- */
.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 760px) { .historia-grid { grid-template-columns: 1fr; gap: 40px; } }
.historia-text h2 { margin-bottom: .6em; }
.historia-text p { margin-bottom: 1.2em; }
.historia-img img {
  width: 100%; height: auto; display:block;
  border: 1px solid var(--line);
}

/* ---- Subpages (solo título, resto vacío) ---- */
.page-header {
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--line);
}
.page-header .label { font-size: .72rem; }
.page-header h1 {
  color: var(--magenta);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-top: .2em;
}
.page-header p {
  max-width: 600px;
  margin-top: .8em;
  font-size: 1.02rem;
}
.page-blank { padding: 80px 0 140px; }
.page-blank p {
  font-size: .9rem;
  color: var(--ink-faint);
  border-left: 2px solid var(--line);
  padding-left: 16px;
  font-style: italic;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #888;
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.site-footer li { margin-bottom: 9px; font-size: .88rem; }
.site-footer a:hover { color: var(--magenta); }
.footer-brand img { height: 44px; margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; max-width: 260px; line-height: 1.65; }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a { color: #888; }
.footer-social a:hover { color: var(--magenta); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--magenta); color: #fff; padding: 8px 14px;
}
.skip-link:focus { left: 12px; top: 12px; z-index: 999; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* ---- Service page components (shared) ---- */
.svc-intro-grid, .svc-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.svc-photo img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}
.svc-text h2 { margin-bottom: .6em; }
.svc-text p  { margin-bottom: 1.2em; }
@media (max-width: 820px) {
  .svc-intro-grid, .svc-content-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-content-grid .svc-photo { order: -1; }
}

.svc-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.svc-step-num {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #C2007C;
  line-height: 1;
  min-width: 44px;
}
.svc-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: #111; }
.svc-step p  { font-size: .92rem; margin: 0; }

.svc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.svc-gallery figure { margin: 0; }
.svc-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}
.svc-gallery figcaption {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--ink-faint);
  text-align: center;
}
@media (max-width: 560px) {
  .svc-gallery { grid-template-columns: 1fr; }
}

.svc-callout {
  background: var(--bg-section);
  border-left: 3px solid #C2007C;
  padding: 22px 26px;
  margin-top: 8px;
}
.svc-callout p { margin: 0; font-size: .94rem; }

/* ---- Conócenos: Historia y Visión/Misión ---- */
.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 800px) { .historia-grid { grid-template-columns: 1fr; gap: 36px; } }
.historia-text h2 { margin-bottom: .55em; }
.historia-text p  { margin-bottom: 1.2em; }
.historia-img img {
  width: 100%; height: auto; display:block;
  border: 1px solid var(--line);
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
}
.vm-block--wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .vm-grid { grid-template-columns: 1fr; } .vm-block--wide { grid-column: 1; } }
.vm-tag {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: 800;
  color: #C2007C;
  line-height: 1;
  margin-bottom: 12px;
  font-family: 'Nunito', sans-serif;
}
.vm-block h2 { margin-bottom: .5em; }
.vm-block p  { margin-bottom: 1.1em; font-size: .96rem; }

.vm-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}
@media (max-width: 560px) { .vm-values { grid-template-columns: 1fr; } }
.vm-value strong {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  border-left: 3px solid #C2007C;
  padding-left: 12px;
}
.vm-value p { font-size: .88rem; margin: 0; padding-left: 15px; }

.historia-placeholder {
  width: 100%; aspect-ratio: 4/5;
  background: var(--bg-section);
  border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: #bbb;
  font-size: .82rem;
}

/* ---- Services grid (homepage) ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: #fff;
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}
.service-card:hover { background: #fdf5fa; }
.service-card .sc-num {
  font-size: 2rem;
  font-weight: 800;
  color: #C2007C;
  line-height: 1;
  font-family: 'Nunito', sans-serif;
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--ink); }
.service-card p  { font-size: .88rem; color: var(--ink-soft); margin: 0; flex: 1; }
.service-card .sc-link {
  font-size: .82rem;
  font-weight: 700;
  color: #C2007C;
  margin-top: 6px;
}

/* ---- Carousel ---- */
.carousel-wrap { position: relative; overflow: hidden; background: #111; line-height: 0; }
.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel-track img {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  opacity: .9;
}
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9);
  border: none; cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background .15s;
}
.carousel-btn:hover { background: #fff; }
.carousel-btn svg { width: 20px; height: 20px; stroke: #111; fill: none; stroke-width: 2.5; }
.carousel-btn--prev { left: 16px; }
.carousel-btn--next { right: 16px; }
.carousel-dots {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none; cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.carousel-dots button.active {
  background: #fff;
  transform: scale(1.3);
}

/* ---- Testimonials ---- */
.testimonials-section { background: var(--bg-section); }
.stars-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 18px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 36px;
  margin-top: 20px;
}
.stars-badge .stars { color: #F5A623; font-size: 1.1rem; letter-spacing: 2px; }
.stars-badge .glogo { font-size: .78rem; color: var(--ink-soft); font-weight: 400; }

.testimonials-carousel { position: relative; overflow: hidden; }
.testimonials-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.testimonial-card {
  flex-shrink: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px 48px;
  box-sizing: border-box;
}
@media (max-width: 640px) { .testimonial-card { padding: 28px 24px; } }
.testimonial-card blockquote {
  margin: 0 0 24px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-soft);
  font-style: italic;
  position: relative;
  padding-left: 24px;
  border-left: 3px solid #C2007C;
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  display: block;
}
.t-stars { color: #F5A623; font-size: .95rem; margin-bottom: 4px; }
.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.testimonials-nav button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ddd;
  border: none; cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.testimonials-nav button.active {
  background: #C2007C;
  transform: scale(1.25);
}

/* ---- Trust bar ---- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-top: 3px solid #C2007C;
  background: #fff;
}
@media (max-width: 580px) { .trust-bar { grid-template-columns: 1fr; } }
.trust-item {
  padding: 28px 32px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.trust-item:last-child { border-right: none; }
.trust-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #C2007C;
  font-family: 'Nunito', sans-serif;
  line-height: 1;
  margin-bottom: 6px;
}
.trust-item span { font-size: .88rem; color: var(--ink-soft); }

/* ---- Logo: icon + wordmark (replaces stretched JPEG) ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.logo-sub {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #C2007C;
}
@media (max-width: 400px) {
  .logo-text { display: none; }
}

/* ============================================================
   HOMEPAGE v3 — Reference-style layout
   ============================================================ */

/* --- Feature bar (overlaps hero bottom) --- */
.feature-bar {
  position: relative;
  z-index: 20;
  margin-top: -60px;
}
.feature-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
}
@media (max-width: 900px)  { .feature-bar .container { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .feature-bar .container { grid-template-columns: 1fr; } }

.fb-item {
  background: #2B2024;
  padding: 32px 28px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.fb-item:last-child { background: #fff; border-right: none; }
.fb-item:last-child .fb-title { color: var(--ink); }
.fb-item:last-child .fb-desc  { color: var(--ink-soft); }
.fb-icon {
  width: 36px; height: 36px;
  margin-bottom: 14px;
}
.fb-icon path, .fb-icon circle, .fb-icon rect, .fb-icon polyline, .fb-icon line {
  stroke: #C2007C;
}
.fb-item:last-child .fb-icon path,
.fb-item:last-child .fb-icon circle { stroke: #C2007C; }
.fb-title {
  font-family: 'Nunito', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: .01em;
}
.fb-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin: 0;
}

/* --- Service cards --- */
.svc-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .svc-cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px)  { .svc-cards-grid { grid-template-columns: 1fr; } }

.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.svc-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.1); transform: translateY(-3px); }
.svc-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}
.svc-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.svc-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.svc-card-body p {
  font-size: .84rem;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
  line-height: 1.6;
}
.svc-card-body .btn {
  align-self: flex-start;
  margin-top: 12px;
  font-size: .8rem;
  padding: 9px 18px;
}

/* --- About / Banner dark split --- */
.about-banner {
  background: #1A1215;
  overflow: hidden;
}
.about-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
@media (max-width: 780px) { .about-banner-grid { grid-template-columns: 1fr; } }
.ab-img {
  position: relative;
  overflow: hidden;
}
.ab-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .85;
  display: block;
}
.ab-content {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
@media (max-width: 780px) { .ab-content { padding: 44px 32px; } }
.ab-content .label { color: rgba(255,255,255,.6); }
.ab-content h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin: 0;
  line-height: 1.2;
}
.ab-content p {
  color: rgba(255,255,255,.7);
  font-size: .94rem;
  line-height: 1.75;
  margin: 0;
}
.ab-stats {
  display: flex;
  gap: 36px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.ab-stat strong {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #C2007C;
  line-height: 1;
}
.ab-stat span {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --- Projects gallery strip --- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
@media (max-width: 700px) { .gallery-strip { grid-template-columns: repeat(2,1fr); } }
.gallery-strip figure { margin: 0; overflow: hidden; }
.gallery-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gallery-strip figure:hover img { transform: scale(1.04); }

/* --- Testimonials two-col with arrows --- */
.t2-wrap { position: relative; }
.t2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 680px) { .t2-grid { grid-template-columns: 1fr; } }
.t2-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.t2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.t2-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.t2-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #F3E2DD;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  color: #C2007C;
  flex-shrink: 0;
}
.t2-name { font-weight: 700; font-size: .88rem; color: var(--ink); }
.t2-stars { font-size: .85rem; color: #F5A623; }
.t2-g {
  font-size: 1.2rem;
  font-weight: 800;
  color: #4285F4;
  font-family: 'Nunito', sans-serif;
  opacity: .8;
}
.t2-card blockquote {
  margin: 0;
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.72;
  font-style: italic;
}
.t2-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.t2-nav button {
  width: 38px; height: 38px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.t2-nav button:hover { background: #C2007C; border-color: #C2007C; }
.t2-nav button:hover svg { stroke: #fff; }
.t2-nav svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2.5; }

/* --- CTA bottom banner --- */
.cta-bottom {
  background: #2B2024;
  padding: 48px 0;
}
.cta-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-bottom h2 { color: #fff; margin: 0; font-size: 1.5rem; }
.cta-bottom p  { color: rgba(255,255,255,.65); margin: 4px 0 0; font-size: .9rem; }

/* ---- Auto-scrolling photo ticker (replaces big carousel) ---- */
.ticker-wrap {
  overflow: hidden;
  width: 100%;
  /* Subtle fade at edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.ticker-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
  padding: 0 8px;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track img {
  height: 220px;
  width: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  border: 1px solid var(--line);
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .ticker-track img { height: 160px; }
}

/* ---- Historia: storytelling layout ---- */
.historia-story p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #4B5A63;
  margin-bottom: 1.4em;
}
.historia-opening {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem !important;
  font-weight: 600;
  color: #1A1A1A !important;
  line-height: 1.5 !important;
  margin-bottom: 1.6em !important;
}
.historia-quote {
  border-left: 3px solid #C2007C;
  margin: 36px 0;
  padding: 20px 28px;
  background: #FDF5FA;
}
.historia-quote p {
  font-size: 1.1rem !important;
  font-style: italic;
  color: #2B2024 !important;
  margin: 0 !important;
  line-height: 1.7 !important;
}

/* ---- Clientes: antes/después case study ---- */
.caso-intro { max-width: 680px; margin-bottom: 44px; }
.caso-intro h2 { margin-bottom: .5em; }
.caso-lead { font-size: 1rem; line-height: 1.75; color: var(--ink-soft); }

.ba-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 680px) { .ba-case-grid { grid-template-columns: 1fr; } }

.ba-case-fig { margin: 0; background: #fff; }
.ba-case-img { overflow: hidden; line-height: 0; }
.ba-case-img img {
  width: 100%;
  height: auto;
  display: block;
}
.ba-case-fig figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: .84rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.ba-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  flex-shrink: 0;
}
.ba-tag--antes  { background: #F3E2DD; color: #9C4F5A; }
.ba-tag--despues { background: #E2F0E8; color: #2E7D4F; }

.caso-nota {
  margin-top: 20px;
  padding: 14px 18px;
  border-left: 2px solid var(--line);
  font-size: .82rem;
  color: var(--ink-faint);
}

/* ---- Clientes: testimonials grid ---- */
.clientes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 680px) { .clientes-grid { grid-template-columns: 1fr; } }
.cliente-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 26px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cliente-stars { color: #F5A623; font-size: .9rem; }
.cliente-card p {
  font-size: .9rem;
  line-height: 1.72;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
  flex: 1;
}
.cliente-card cite {
  font-style: normal;
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ---- FAQ accordion ---- */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  border: 1px solid var(--line);
  background: #fff;
}
.faq-item[open] { border-color: #C2007C; }
.faq-q {
  padding: 20px 24px;
  font-weight: 700;
  font-size: .98rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: #C2007C;
  flex-shrink: 0;
  line-height: 1;
  transition: transform .2s;
}
.faq-item[open] .faq-q::after { content: "−"; }
.faq-a {
  padding: 0 24px 22px;
  border-top: 1px solid var(--line);
}
.faq-a p { font-size: .94rem; line-height: 1.75; margin: 16px 0 0; }

/* ---- Clientes: fix zoomed photos ---- */
.ba-case-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Visión/misión: animated values ticker ---- */
.vm-ticker-wrap {
  overflow: hidden;
  padding: 32px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.vm-ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: vm-scroll 50s linear infinite;
}
.vm-ticker-track:hover { animation-play-state: paused; }
.vm-ticker-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 52px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.vm-ticker-dot {
  width: 10px; height: 10px;
  background: #C2007C;
  border-radius: 50%;
  flex-shrink: 0;
}
.vm-ticker-item strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.vm-ticker-item span {
  font-size: .88rem;
  color: var(--ink-soft);
}
@keyframes vm-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Epitesis gallery: same height, centered ---- */
.svc-gallery[style*="repeat(3"] figure {
  display: flex;
  flex-direction: column;
}
.svc-gallery[style*="repeat(3"] img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---- svc-photo: always centered ---- */
.svc-photo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.svc-photo img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

/* ============================================================
   SVC-SPLIT: texto izquierda / foto derecha centrada verticalmente
   ============================================================ */
.svc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;   /* <-- foto centrada al MEDIO del texto */
}
@media (max-width: 820px) {
  .svc-split { grid-template-columns: 1fr; gap: 36px; }
  .svc-split-photo { order: -1; }
}
.svc-split-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* ============================================================
   EPI-GALLERY: 3 fotos exactamente del mismo tamaño
   ============================================================ */
.epi-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 680px) { .epi-gallery { grid-template-columns: 1fr; } }
.epi-fig { margin: 0; }
.epi-fig img {
  width: 100%;
  height: 240px;          /* altura fija igual en las 3 */
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.epi-fig figcaption {
  text-align: center;
  font-size: .78rem;
  color: var(--ink-faint);
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ============================================================
   FOTOS GENERALES: bordes ligeramente redondeados
   ============================================================ */
.svc-photo img,
.ba-case-img img,
.ab-img img,
.historia-img img,
.ticker-track img {
  border-radius: 8px;
}
.svc-card img {
  border-radius: 8px 8px 0 0;
}

/* ── Epitesis: dos casos antes/después ── */
.epi-cases { display: flex; flex-direction: column; gap: 52px; }
.epi-case h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  border-left: 3px solid #C2007C;
  padding-left: 14px;
  color: var(--ink);
}
.epi-ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) { .epi-ba-grid { grid-template-columns: 1fr; } }
.epi-ba-fig { margin: 0; }
.epi-ba-fig img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-section);
}
.epi-ba-fig figcaption {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Logo footer: fondo transparente ya, asegura tamaño correcto ── */
.footer-brand a { display: inline-block; }
.footer-brand img {
  height: 36px;
  width: auto;
  display: block;
}

/* ── Cascarilla slider ── */
.casc-slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.casc-track {
  display: flex;
  transition: transform .4s ease;
}
.casc-track img {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
.casc-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.88);
  border: none; cursor: pointer;
  width: 38px; height: 38px;
  font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .15s;
  z-index: 5;
}
.casc-btn:hover { background: #fff; }
.casc-prev { left: 10px; }
.casc-next { right: 10px; }
.casc-dots {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 7px;
}
.casc-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none; cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.casc-dots button.active {
  background: #fff;
  transform: scale(1.25);
}

/* ── Visión/Misión vertical stack ── */
.vm-stack { display: flex; flex-direction: column; gap: 0; }
.vm-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.vm-item:first-child { padding-top: 0; }
.vm-num {
  font-family: 'Nunito', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #C2007C;
  line-height: 1;
  min-width: 52px;
  flex-shrink: 0;
}
.vm-body h2 { font-size: 1.25rem; margin-bottom: .4em; }
.vm-body > p { font-size: .96rem; line-height: 1.72; margin: 0; }
.vm-more {
  margin-top: 12px;
}
.vm-more summary {
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  color: #C2007C;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.vm-more summary::-webkit-details-marker { display: none; }
.vm-arrow { transition: transform .2s; display: inline-block; }
.vm-more[open] .vm-arrow { transform: rotate(90deg); }
.vm-more p {
  margin-top: 12px;
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.72;
  padding-left: 0;
}

/* ── Testimonials: reduce spacing ── */
.testimonials-section.section { padding: 52px 0; }
.testimonials-section .section-head { margin-bottom: 28px; }

/* ── Historia img: smaller ── */
.historia-img img {
  max-width: 340px;
  margin: 0 auto;
}

/* Spacing title → text in service pages */
.svc-split-text h2 { margin-bottom: 18px; }
.svc-split-text p  { margin-bottom: 0; }
.svc-split-text p + p { margin-top: 14px; }

/* Cascarilla slider: arrows OUTSIDE the photo */
.casc-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.casc-wrap .casc-slider { flex: 1; }
.casc-arrow {
  background: none;
  border: none;
  cursor: pointer;
  color: #C2007C;
  font-size: 2rem;
  line-height: 1;
  padding: 8px 4px;
  flex-shrink: 0;
  transition: opacity .15s;
  display: flex; align-items: center;
}
.casc-arrow svg { width: 22px; height: 22px; stroke: #C2007C; fill: none; stroke-width: 1.5; }
.casc-arrow:hover { opacity: .65; }

/* Old inside buttons now hidden */
.casc-btn { display: none !important; }

/* ── Team section: Nuestra Historia ── */
.equipo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 380px;
  margin: 0 auto;
}
@media (max-width: 560px) { .equipo-grid { grid-template-columns: 1fr; max-width: 200px; } }
.equipo-card { text-align: center; }
.equipo-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  display: block;
  border: 1px solid var(--line);
}

/* ── Google Reviews link ── */
.reviews-link {
  text-align: center;
  margin-top: 20px;
}
.reviews-link a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 600;
  color: #C2007C;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s;
}
.reviews-link a:hover { border-bottom-color: #C2007C; }

/* ── Footer contact links (address, email) ── */
.site-footer ul a { color: #9FA9AE; }
.site-footer ul a:hover { color: var(--magenta); }

/* ── YouTube embed: responsive 16:9 ── */
.yt-embed-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.yt-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Equipo info: name + role below photo ── */
.equipo-info {
  margin-top: 12px;
  text-align: center;
}
.equipo-info strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.equipo-info span {
  font-size: .76rem;
  color: var(--ink-faint);
  line-height: 1.5;
  display: block;
}
