/* ============================================================
   CLÍNICA VIVA — STYLE.CSS
   Silent Luxury Design System
   Sintra, Portugal
   ============================================================ */

/* ------------------------------------------------------------
   1. IMPORTS
   ------------------------------------------------------------ */
@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=Montserrat:wght@300;400;500;600&display=swap');

/* ------------------------------------------------------------
   2. DESIGN TOKENS — CSS VARIABLES
   ------------------------------------------------------------ */
:root {
  /* — Palette — */
  --clr-bg:             #F9F8F5;   /* Off-white principal    */
  --clr-bg-alt:         #F0EDE7;   /* Off-white secundário   */
  --clr-surface:        #FFFFFF;
  --clr-text:           #2C302E;   /* Antracite / Pedra      */
  --clr-text-secondary: #5A5E5C;
  --clr-text-muted:     #8C8985;
  --clr-accent:         #7D6340;   /* Bronze mate profundo   */
  --clr-accent-dark:    #624E32;
  --clr-moss:           #556048;   /* Verde musgo mate       */
  --clr-moss-light:     #8A9B7A;
  --clr-border:         #DDD9D3;
  --clr-border-light:   #ECEAE6;

  /* — Typography — */
  --ff-serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-sans:   'Montserrat', system-ui, -apple-system, sans-serif;
  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;

  /* — Type Scale — */
  --text-xs:   0.6875rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-lg:   1.0625rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-hero: clamp(3.2rem, 8.5vw, 6.75rem);

  /* — Spacing — */
  --section-py: clamp(5rem, 10vh, 8rem);
  --section-px: clamp(1.5rem, 5vw, 4rem);

  /* — Transitions — */
  --ease-out:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-expo: cubic-bezier(0.76, 0, 0.24, 1);
  --t-base:    all 0.35s var(--ease-out);
  --t-slow:    all 0.6s  var(--ease-out);
  --t-fast:    all 0.2s  ease;

  /* — Borders — */
  --border-thin:  0.5px solid var(--clr-border);
  --border-base:  1px   solid var(--clr-border);
  --border-light: 1px   solid var(--clr-border-light);

  /* — Layout — */
  --navbar-h: 80px;
  --max-w:    1400px;

  /* — Z-index — */
  --z-cursor: 9999;
  --z-nav:    1000;
}

/* ------------------------------------------------------------
   3. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--ff-sans);
  font-weight: var(--fw-light);
  font-size: var(--text-base);
  line-height: 1.75;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Restore cursor on touch devices */
@media (hover: none) {
  body { cursor: auto; }
  .cursor,
  .cursor-follower { display: none !important; }
}

img    { max-width: 100%; display: block; }
dl, ol, ul { margin-bottom: 0; }
ul         { list-style: none; }
a      { color: inherit; text-decoration: none; transition: var(--t-fast); }
button { font-family: inherit; }

/* ------------------------------------------------------------
   4. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: var(--fw-light);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--clr-text);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: var(--text-xl); }

p {
  font-weight: var(--fw-light);
  line-height: 1.85;
  color: var(--clr-text-secondary);
}

em { font-style: italic; }

/* Utility helpers */
.text-serif  { font-family: var(--ff-serif); }
.text-accent { color: var(--clr-accent); }
.text-muted  { color: var(--clr-text-muted); }

/* Section eyebrow label */
.section-eyebrow {
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1.25rem;
}

/* Thin decorative rule */
.section-divider {
  width: 40px;
  height: 0.5px;
  background: var(--clr-accent);
  margin: 1.5rem 0;
}
.section-header.centered .section-divider {
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------
   5. CUSTOM CURSOR
   ------------------------------------------------------------ */
.cursor {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.25s ease;
  will-change: left, top;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 0.5px solid var(--clr-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  opacity: 0.55;
  transition: width 0.35s var(--ease-out),
              height 0.35s var(--ease-out),
              border-color 0.35s ease,
              opacity 0.35s ease;
  will-change: left, top;
}

.cursor.is-hovering {
  transform: translate(-50%, -50%) scale(1.6);
  background: var(--clr-moss);
}

.cursor-follower.is-hovering {
  width: 56px;
  height: 56px;
  border-color: var(--clr-moss);
  opacity: 0.3;
}

/* ------------------------------------------------------------
   6. NAVBAR
   ------------------------------------------------------------ */
.navbar-viva {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--navbar-h);          /* altura fixa — nunca muda ao scroll */
  display: flex;
  align-items: center;
  padding-inline: var(--section-px);
  transition: background-color var(--t-slow),
              box-shadow       var(--t-slow),
              border-color     var(--t-slow);
  background: transparent;
}

.navbar-viva.scrolled {
  background: rgba(249, 248, 245, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--border-light);
  box-shadow: 0 0.5px 0 var(--clr-border-light),
              0 2px 20px rgba(44, 48, 46, 0.04);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Logo */
.navbar-logo {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--clr-text);
  cursor: none;
}
.navbar-logo .accent { color: var(--clr-accent); }

.navbar-logo-sub {
  display: block;
  font-family: var(--ff-sans);
  font-size: 0.52rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-top: 0.2rem;
}

/* Desktop nav links */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link-custom {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text);
  position: relative;
  padding-bottom: 2px;
  cursor: none;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 0.5px;
  background: var(--clr-accent);
  transition: width 0.35s var(--ease-out);
}
.nav-link-custom:hover::after,
.nav-link-custom.active::after { width: 100%; }

/* Booking button */
.btn-booking {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-text);
  border: 1px solid var(--clr-text);
  padding: 0.65rem 1.5rem;
  background: transparent;
  cursor: none;
  transition: var(--t-base);
  white-space: nowrap;
}
.btn-booking:hover {
  background: var(--clr-text);
  color: var(--clr-bg);
}

/* Mobile hamburger */
.navbar-toggler-custom {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.navbar-toggler-custom span {
  display: block;
  width: 24px;
  height: 0.5px;
  background: var(--clr-text);
  transition: var(--t-base);
}

/* Mobile full-screen menu */
.navbar-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--clr-bg);
  z-index: calc(var(--z-nav) - 1);
  padding: calc(var(--navbar-h) + 3rem) var(--section-px) 3rem;
  flex-direction: column;
  gap: 0;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease-expo);
}
.navbar-mobile.open { transform: translateY(0); }

.nav-link-mobile {
  display: block;
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: var(--fw-light);
  color: var(--clr-text);
  border-bottom: var(--border-thin);
  padding: 1.25rem 0;
  transition: color 0.3s ease;
  cursor: none;
}
.nav-link-mobile:hover     { color: var(--clr-accent); }
.nav-link-mobile:last-child{ border-bottom: none; }

/* ------------------------------------------------------------
   7. BUTTONS
   ------------------------------------------------------------ */
/* Override Bootstrap defaults */
.btn { all: unset; }

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-text);
  border: 1px solid var(--clr-text);
  padding: 0.95rem 2.75rem;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease-expo);
}
.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-expo);
  z-index: -1;
}
.btn-ghost:hover          { color: var(--clr-bg); }
.btn-ghost:hover::before  { transform: scaleX(1); }

/* Ghost accent variant */
.btn-ghost-accent {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}
.btn-ghost-accent::before { background: var(--clr-accent); }
.btn-ghost-accent:hover   { color: var(--clr-bg); }

/* Arrow text link */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ff-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-accent);
  cursor: none;
  transition: gap 0.3s ease, color 0.25s ease;
}
.btn-arrow:hover          { gap: 0.9rem; color: var(--clr-accent-dark); }
.btn-arrow .arrow         { transition: transform 0.3s ease; }
.btn-arrow:hover .arrow   { transform: translateX(4px); }

/* ------------------------------------------------------------
   8. SCROLL-REVEAL ANIMATION (Intersection Observer)
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out),
              transform 0.85s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }
.reveal-delay-5 { transition-delay: 0.58s; }

/* ------------------------------------------------------------
   9. SECTION BASE
   ------------------------------------------------------------ */
section { padding: var(--section-py) 0; }

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

.section-header { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-header.centered {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Ambient light gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% -5%, #EBE5DB 0%, transparent 60%);
  pointer-events: none;
}

/* Bottom separator */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.5px;
  background: var(--clr-border-light);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem var(--section-px);
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--ff-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 2.5rem;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 28px;
  height: 0.5px;
  background: var(--clr-border);
}

.hero-title {
  font-family: var(--ff-serif);
  font-size: var(--text-hero);
  font-weight: var(--fw-light);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--clr-text);
  margin-bottom: 0.2em;
}
.hero-title em {
  color: var(--clr-accent);
  font-style: italic;
}

.hero-subtitle {
  font-family: var(--ff-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-light);
  letter-spacing: 0.03em;
  color: var(--clr-text-secondary);
  max-width: 460px;
  margin: 1.75rem auto 3rem;
  line-height: 1.9;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.scroll-indicator span {
  font-family: var(--ff-sans);
  font-size: 0.58rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}
.scroll-line {
  width: 0.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clr-border), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.75); }
  50%       { opacity: 1;    transform: scaleY(1); }
}

/* ------------------------------------------------------------
   11. SOBRE — ABOUT
   ------------------------------------------------------------ */
.sobre { background: var(--clr-bg-alt); }

/* Image container with decorative offset frame */
.sobre-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: visible;
}
.sobre-image-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.sobre-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: filter 0.6s ease, transform 0.8s ease;
}
.sobre-image-wrapper:hover .sobre-image-inner img {
  filter: saturate(1);
  transform: scale(1.025);
}
/* Decorative offset border */
.sobre-image-frame {
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--clr-border);
  z-index: -1;
  pointer-events: none;
}

.sobre-content { padding: clamp(1rem, 4vw, 3.5rem) 0; }

/* Stats row */
.sobre-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: var(--border-thin);
}
.stat-number {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-light);
  color: var(--clr-accent);
  line-height: 1;
}
.stat-label {
  font-family: var(--ff-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------
   12. ESPECIALIDADES
   ------------------------------------------------------------ */
.especialidades { background: var(--clr-bg); }

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: var(--border-thin);
}

.specialty-item {
  padding: 2.5rem 2rem;
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease;
}
/* Remove double borders on grid edges */
.specialty-item:nth-child(4n) { border-right: none; }

.specialty-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0.5px;
  background: var(--clr-accent);
  transition: width 0.45s var(--ease-out);
}
.specialty-item:hover             { background: rgba(125, 99, 64, 0.03); }
.specialty-item:hover::after      { width: 100%; }

.specialty-icon {
  width: 30px;
  height: 30px;
  color: var(--clr-accent);
  stroke-width: 1;
  margin-bottom: 1.25rem;
}
.specialty-name {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: var(--fw-regular);
  color: var(--clr-text);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.specialty-desc {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  font-weight: var(--fw-light);
  line-height: 1.65;
}

/* ------------------------------------------------------------
   13. SERVIÇOS — SERVICES
   ------------------------------------------------------------ */
.servicos { background: var(--clr-bg-alt); }

.servico-card {
  background: var(--clr-bg);
  padding: 2.75rem 2.5rem;
  height: 100%;
  border: var(--border-light);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}
.servico-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--clr-accent);
  transition: height 0.45s var(--ease-out);
}
.servico-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(44, 48, 46, 0.07);
}
.servico-card:hover::after { height: 100%; }

.servico-number {
  font-family: var(--ff-serif);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}
.servico-title {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: var(--fw-regular);
  color: var(--clr-text);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.servico-desc {
  font-size: var(--text-sm);
  color: var(--clr-text-secondary);
  line-height: 1.85;
  margin-bottom: 2rem;
}

/* ------------------------------------------------------------
   14. MARCAÇÕES — BOOKING CTA
   ------------------------------------------------------------ */
.marcacoes {
  background: var(--clr-text);
  padding: clamp(4.5rem, 9vh, 7.5rem) 0;
}
.marcacoes .section-eyebrow  { color: rgba(249, 248, 245, 0.4); }
.marcacoes h2                { color: var(--clr-bg); }
.marcacoes h2 em             { color: rgba(125, 99, 64, 0.85); }

/* Ghost button on dark bg */
.marcacoes .btn-ghost {
  border-color: rgba(249, 248, 245, 0.5);
  color: var(--clr-bg);
}
.marcacoes .btn-ghost::before { background: rgba(249, 248, 245, 0.12); }
.marcacoes .btn-ghost:hover   { color: var(--clr-bg); border-color: var(--clr-bg); }

/* Booking form panel */
.booking-form {
  background: rgba(249, 248, 245, 0.04);
  border: 1px solid rgba(249, 248, 245, 0.1);
  padding: 2.75rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-label-custom {
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249, 248, 245, 0.4);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid rgba(249, 248, 245, 0.18);
  padding: 0.7rem 0;
  font-family: var(--ff-sans);
  font-weight: var(--fw-light);
  font-size: var(--text-base);
  color: var(--clr-bg);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.3s ease;
}
.form-input::placeholder { color: rgba(249, 248, 245, 0.2); }
.form-input:focus        { border-bottom-color: rgba(125, 99, 64, 0.7); }

/* Style native select options */
.form-input option {
  background: var(--clr-text);
  color: var(--clr-bg);
}

/* Datepicker accent */
.form-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.3);
  cursor: none;
}

.btn-submit {
  width: 100%;
  background: var(--clr-accent);
  border: 1px solid var(--clr-accent);
  color: var(--clr-bg);
  font-family: var(--ff-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.1rem;
  cursor: none;
  transition: var(--t-base);
  margin-top: 0.75rem;
}
.btn-submit:hover {
  background: var(--clr-accent-dark);
  border-color: var(--clr-accent-dark);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Booking feedback */
.booking-feedback {
  display: none;
  padding: 0.85rem 1.1rem;
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  font-weight: var(--fw-light);
  letter-spacing: 0.03em;
  border: var(--border-thin);
}
.booking-feedback.is-success {
  display: block;
  color: var(--clr-moss);
  border-color: var(--clr-moss);
  background: rgba(85, 96, 72, 0.05);
}
.booking-feedback.is-error {
  display: block;
  color: #8b3a3a;
  border-color: #c9a0a0;
  background: rgba(139, 58, 58, 0.05);
}

/* Booking aside details */
.booking-detail {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: rgba(249, 248, 245, 0.5);
  font-size: var(--text-sm);
  font-weight: var(--fw-light);
}
.booking-detail svg { flex-shrink: 0; color: rgba(125, 99, 64, 0.7); }
.booking-detail a   { color: inherit; transition: color 0.25s ease; }
.booking-detail a:hover { color: rgba(249, 248, 245, 0.85); }

/* ------------------------------------------------------------
   15. CONTACTO — CONTACT
   ------------------------------------------------------------ */
.contacto { background: var(--clr-bg); }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: var(--border-thin);
}
.contact-info-item:first-child { padding-top: 0; }

.contact-icon {
  width: 20px;
  height: 20px;
  color: var(--clr-accent);
  stroke-width: 1.25;
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 0.4rem;
}
.contact-value {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  color: var(--clr-text);
  line-height: 1.65;
  font-style: normal;
}
.contact-value a { transition: color 0.25s ease; }
.contact-value a:hover { color: var(--clr-accent); }

/* Map iframe */
.contact-map {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: var(--border-thin);
  display: block;
  filter: grayscale(1) sepia(0.3) contrast(0.88) brightness(1.02);
  transition: filter var(--transition-base);
}

.contact-map:hover iframe {
  filter: grayscale(0.5) sepia(0.2) contrast(0.9) brightness(1.04);
}

/* ------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--clr-text);
  padding: 5rem 0 2.75rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(249, 248, 245, 0.08);
  margin-bottom: 2.5rem;
}

.footer-logo {
  font-family: var(--ff-serif);
  font-size: 1.45rem;
  font-weight: var(--fw-medium);
  color: var(--clr-bg);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.footer-logo .accent { color: var(--clr-accent); }

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(249, 248, 245, 0.38);
  font-weight: var(--fw-light);
  line-height: 1.9;
  margin-bottom: 1.75rem;
  max-width: 240px;
}

.footer-address {
  font-size: var(--text-sm);
  color: rgba(249, 248, 245, 0.3);
  font-weight: var(--fw-light);
  line-height: 2;
  font-style: normal;
}

.footer-col-heading {
  font-family: var(--ff-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(249, 248, 245, 0.28);
  margin-bottom: 1.5rem;
}

.footer-col-links a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(249, 248, 245, 0.5);
  font-weight: var(--fw-light);
  margin-bottom: 0.7rem;
  cursor: none;
  transition: color 0.25s ease;
}
.footer-col-links a:hover { color: rgba(249, 248, 245, 0.85); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: var(--text-xs);
  color: rgba(249, 248, 245, 0.22);
  font-weight: var(--fw-light);
  letter-spacing: 0.06em;
}
.footer-legal {
  display: flex;
  gap: 2rem;
}
.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(249, 248, 245, 0.22);
  letter-spacing: 0.06em;
  cursor: none;
  transition: color 0.25s ease;
}
.footer-legal a:hover { color: rgba(249, 248, 245, 0.55); }

/* ------------------------------------------------------------
   17. SCROLL TOP
   ------------------------------------------------------------ */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg);
  border: 0.5px solid var(--clr-border);
  color: var(--clr-text-muted);
  cursor: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity     0.35s var(--ease-out),
              transform   0.35s var(--ease-out),
              border-color 0.25s ease,
              color        0.25s ease;
}

#scrollTop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTop:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* ------------------------------------------------------------
   18. SERVICE PAGES
   ------------------------------------------------------------ */

/* Breadcrumb */
.breadcrumb-bar {
  margin-top: var(--navbar-h);
  padding: 0.9rem var(--section-px);
  border-bottom: var(--border-thin);
  background: var(--clr-bg);
}
.breadcrumb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
}
.breadcrumb-inner a {
  color: var(--clr-text-muted);
  transition: color 0.25s ease;
  cursor: none;
}
.breadcrumb-inner a:hover { color: var(--clr-accent); }
.breadcrumb-sep { font-size: 0.55rem; opacity: 0.4; }
.breadcrumb-inner span:last-child { color: var(--clr-text); }

/* Service Hero */
.service-hero {
  background: var(--clr-text);
  padding: clamp(5rem, 12vh, 8rem) 0;
  position: relative;
  overflow: hidden;
}
.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(125, 99, 64, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.service-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px);
}
.service-hero__category {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(125, 99, 64, 0.75);
  margin-bottom: 1.5rem;
}
.service-hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: var(--fw-light);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--clr-bg);
  margin-bottom: 1.5rem;
}
.service-hero__title em {
  color: rgba(125, 99, 64, 0.85);
  font-style: italic;
}
.service-hero__tagline {
  font-size: var(--text-base);
  font-weight: var(--fw-light);
  color: rgba(249, 248, 245, 0.5);
  max-width: 540px;
  line-height: 1.9;
  margin-bottom: 2.75rem;
}
.service-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 0.5px solid rgba(249, 248, 245, 0.1);
  padding-top: 2rem;
  margin-top: 0.5rem;
  margin-bottom: 2.75rem;
}
.service-hero__meta-item {
  padding-right: 2.5rem;
  margin-right: 2.5rem;
  border-right: 0.5px solid rgba(249, 248, 245, 0.1);
}
.service-hero__meta-item:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.service-hero__meta-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249, 248, 245, 0.28);
  margin-bottom: 0.35rem;
}
.service-hero__meta-value {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  color: var(--clr-bg);
  line-height: 1.3;
}

/* Service Overview (2-col) */
.service-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.service-img-placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--clr-bg-alt) 0%, #DDD4C4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}
.service-img-placeholder .img-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
}
.service-img-frame {
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--clr-border);
  z-index: -1;
  pointer-events: none;
}

/* Service detail items (icon + label + value) */
.service-details {
  margin-top: 2.5rem;
  border-top: var(--border-thin);
}
.service-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: var(--border-thin);
}
.service-detail-icon {
  width: 18px;
  height: 18px;
  color: var(--clr-accent);
  stroke-width: 1.25;
  flex-shrink: 0;
  margin-top: 2px;
}
.service-detail-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  min-width: 100px;
}
.service-detail-value {
  font-family: var(--ff-serif);
  font-size: 1rem;
  color: var(--clr-text);
  line-height: 1.5;
}

/* Process Steps Grid */
.service-process { background: var(--clr-bg-alt); }
.service-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: var(--border-thin);
  margin-top: 4rem;
  counter-reset: step;
}
.service-step {
  padding: 2.5rem 2rem;
  border-right: var(--border-thin);
  position: relative;
  counter-increment: step;
}
.service-step:last-child { border-right: none; }
.service-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--ff-serif);
  font-size: 0.85rem;
  color: var(--clr-accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.service-step__title {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: var(--fw-regular);
  color: var(--clr-text);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}
.service-step__desc {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.75;
  font-weight: var(--fw-light);
}

/* Includes Grid */
.service-includes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--border-thin);
  margin-top: 4rem;
}
.service-include-item {
  padding: 2rem 1.75rem;
  border-right: var(--border-thin);
  border-bottom: var(--border-thin);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.3s ease;
}
.service-include-item:hover { background: rgba(125, 99, 64, 0.025); }
.service-include-item:nth-child(3n)  { border-right: none; }
.service-include-icon {
  width: 18px;
  height: 18px;
  color: var(--clr-accent);
  stroke-width: 1.25;
  flex-shrink: 0;
  margin-top: 3px;
}
.service-include-text strong {
  display: block;
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: var(--fw-regular);
  color: var(--clr-text);
  margin-bottom: 0.2rem;
  line-height: 1.25;
}
.service-include-text span {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
  font-weight: var(--fw-light);
}

/* Service CTA (simplified booking) */
.service-cta {
  background: var(--clr-text);
  padding: clamp(4rem, 8vh, 6.5rem) 0;
  text-align: center;
}
.service-cta .section-eyebrow { color: rgba(249, 248, 245, 0.35); }
.service-cta h2               { color: var(--clr-bg); max-width: 600px; margin: 0 auto 1rem; }
.service-cta h2 em            { color: rgba(125, 99, 64, 0.85); }
.service-cta p                { color: rgba(249, 248, 245, 0.5); max-width: 480px; margin: 0 auto 2.5rem; }
.service-cta .btn-ghost {
  border-color: rgba(249, 248, 245, 0.45);
  color: var(--clr-bg);
}
.service-cta .btn-ghost::before { background: rgba(255,255,255,0.06); }
.service-cta .btn-ghost:hover   { border-color: var(--clr-bg); color: var(--clr-bg); }

/* Related Services */
.service-related { background: var(--clr-bg-alt); }
.service-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}
.service-related-card {
  display: block;
  padding: 2.25rem 2rem;
  border: var(--border-light);
  background: var(--clr-bg);
  transition: var(--t-base);
  cursor: none;
  position: relative;
  overflow: hidden;
}
.service-related-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 0.5px;
  background: var(--clr-accent);
  transition: width 0.4s ease;
}
.service-related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(44,48,46,0.06); }
.service-related-card:hover::after { width: 100%; }
.service-related-card__cat {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}
.service-related-card__name {
  display: block;
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: var(--fw-regular);
  color: var(--clr-text);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.service-related-card__arrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  transition: gap 0.3s ease, color 0.25s ease;
}
.service-related-card:hover .service-related-card__arrow { gap: 0.85rem; color: var(--clr-accent); }

/* Responsive — service pages */
@media (max-width: 991.98px) {
  .service-overview          { grid-template-columns: 1fr; gap: 3rem; }
  .service-process-grid      { grid-template-columns: repeat(2, 1fr); }
  .service-step:nth-child(2n){ border-right: none; }
  .service-includes-grid     { grid-template-columns: repeat(2, 1fr); }
  .service-include-item:nth-child(3n) { border-right: var(--border-thin); }
  .service-include-item:nth-child(2n) { border-right: none; }
  .service-related-grid      { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .service-process-grid      { grid-template-columns: 1fr; }
  .service-step              { border-right: none !important; }
  .service-includes-grid     { grid-template-columns: 1fr; }
  .service-include-item      { border-right: none !important; }
  .service-related-grid      { grid-template-columns: 1fr; }
  .service-hero__meta        { flex-direction: column; gap: 1.5rem; }
  .service-hero__meta-item   { border-right: none !important; padding-right: 0; margin-right: 0; }
}

/* ------------------------------------------------------------
   19. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1199.98px) {
  .specialty-grid              { grid-template-columns: repeat(2, 1fr); }
  .specialty-item:nth-child(4n){ border-right: var(--border-thin); }
  .specialty-item:nth-child(2n){ border-right: none; }
  .footer-top                  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991.98px) {
  .navbar-links           { display: none; }
  .navbar-toggler-custom  { display: flex; }
  .navbar-mobile          { display: flex; }
  .sobre-image-wrapper    { margin-bottom: 3rem; }
  .sobre-image-frame      { display: none; }
}

@media (max-width: 767.98px) {
  :root { --section-py: clamp(3.5rem, 8vh, 5.5rem); }

  .specialty-grid              { grid-template-columns: 1fr; }
  .specialty-item              { border-right: none !important; }

  .sobre-stats                 { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .footer-top                  { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-cta                    { flex-direction: column; gap: 1rem; }
  .footer-bottom               { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575.98px) {
  .sobre-stats  { grid-template-columns: 1fr; gap: 1.75rem; }
  .booking-form { padding: 2rem 1.5rem; }
}
