/* =====================================================================
   bertrandsourdais.com · hoja de estilos propia (sobre Bootstrap 5.3)
   ===================================================================== */
:root {
  --bs-body-font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --c-wine: #6b1f2a;
  --c-wine-dark: #4d141c;
  --c-ink: #1c1a1a;
  --c-ink-soft: #4a4646;
  --c-cream: #f6f2ec;
  --c-sand: #e9e1d6;
  --c-gold: #b8945a;
  --c-white: #ffffff;
  --bs-body-color: var(--c-ink);
  --bs-body-bg: var(--c-white);
  --bs-link-color: var(--c-wine);
  --bs-link-hover-color: var(--c-wine-dark);
  --bs-primary: var(--c-wine);
  --bs-primary-rgb: 107, 31, 42;
  --header-h: 76px;
  --radius: 4px;
  --shadow: 0 18px 45px -22px rgba(28, 26, 26, .45);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--bs-body-font-family);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .brand-name, .stat__num {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--c-ink);
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.1rem; }
strong { font-weight: 700; }
a { text-decoration: none; transition: color .2s ease; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
picture { display: block; }
::selection { background: var(--c-wine); color: #fff; }

.kicker {
  font-family: var(--bs-body-font-family);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: .75rem;
}
.kicker--light { color: #e2c48c; }

.btn { border-radius: var(--radius); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; padding: .8rem 1.5rem; }
.btn-lg { font-size: .85rem; padding: .95rem 1.8rem; }
.btn-sm { font-size: .72rem; padding: .5rem 1rem; }
.btn-primary { --bs-btn-bg: var(--c-wine); --bs-btn-border-color: var(--c-wine); --bs-btn-hover-bg: var(--c-wine-dark); --bs-btn-hover-border-color: var(--c-wine-dark); --bs-btn-active-bg: var(--c-wine-dark); --bs-btn-active-border-color: var(--c-wine-dark); }
.btn:hover { text-decoration: none; }
.btn-outline-light:hover { color: var(--c-ink); }
.link-arrow { font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-wine); display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow i { transition: transform .2s ease; }
.link-arrow:hover i { transform: translateX(4px); }
.section--dark .link-arrow { color: #e2c48c; }

.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: var(--c-wine); color: #fff; padding: .5rem 1rem; border-radius: var(--radius); }

/* ---------------------------------------------------------------- cabecera */
.site-header .navbar {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(28, 26, 26, .08);
  min-height: var(--header-h);
  padding: .6rem 0;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header--transparent .navbar { background: transparent; border-bottom-color: transparent; }
.site-header--transparent .navbar.is-scrolled { background: rgba(255, 255, 255, .97); border-bottom-color: rgba(28, 26, 26, .08); box-shadow: 0 8px 30px -20px rgba(0, 0, 0, .35); }
.navbar-brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 600; color: var(--c-ink); letter-spacing: .01em; }
.brand-tag { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--c-gold); margin-top: .25rem; font-weight: 700; }
.navbar-brand:hover { text-decoration: none; }
.navbar .nav-link { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink); padding: .55rem .85rem !important; position: relative; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--c-wine); text-decoration: none; }
.navbar .nav-link.active { color: var(--c-wine); }
@media (min-width: 992px) {
  .navbar .nav-link.active::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; background: var(--c-gold); }
  .site-header--transparent .navbar:not(.is-scrolled) .nav-link,
  .site-header--transparent .navbar:not(.is-scrolled) .brand-name,
  .site-header--transparent .navbar:not(.is-scrolled) .social-link,
  .site-header--transparent .navbar:not(.is-scrolled) .navbar-toggler { color: #fff; }
  .site-header--transparent .navbar:not(.is-scrolled) .nav-link:hover { color: #e2c48c; }
  .site-header--transparent .navbar:not(.is-scrolled) .nav-link.active { color: #e2c48c; }
}
.navbar-toggler { border: 0; font-size: 1.4rem; color: var(--c-ink); padding: .25rem .5rem; }
.navbar-toggler:focus { box-shadow: none; outline: 2px solid var(--c-gold); }
.dropdown-menu { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; margin-top: .4rem; }
.dropdown-item { font-size: .85rem; padding: .6rem .9rem; border-radius: 3px; color: var(--c-ink); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--c-cream); color: var(--c-wine); text-decoration: none; }
.dropdown-item.active, .dropdown-item:active { background: var(--c-wine); color: #fff; }
.nav-lang .nav-link { font-size: .78rem; }
.nav-social { gap: .15rem; margin-left: .5rem; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; color: var(--c-ink); font-size: .95rem; transition: background .2s, color .2s; }
.social-link:hover { background: var(--c-wine); color: #fff !important; text-decoration: none; }
.offcanvas { --bs-offcanvas-width: 320px; }
.offcanvas-header { border-bottom: 1px solid var(--c-sand); }
@media (max-width: 991.98px) {
  .offcanvas .navbar-nav { gap: .15rem; }
  .offcanvas .nav-link { padding: .75rem .25rem !important; border-bottom: 1px solid var(--c-sand); }
  .offcanvas .dropdown-menu { box-shadow: none; background: var(--c-cream); margin: .25rem 0 .5rem; }
  .offcanvas .nav-social { margin: 1rem 0 0; }
  .offcanvas .nav-social .social-link { color: var(--c-ink); }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; background: var(--c-ink); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 12, .55) 0%, rgba(20, 12, 12, .35) 45%, rgba(20, 12, 12, .75) 100%); }
.hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-width: 177.78vh; min-height: 100vh; transform: translate(-50%, -50%); pointer-events: none; border: 0; opacity: 0; transition: opacity 1s ease; }
.hero__media iframe.is-ready { opacity: 1; }
.hero__content { position: relative; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 5rem; max-width: 1140px; }
.hero__title { font-size: clamp(3rem, 8vw, 6rem); color: #fff; margin-bottom: .25rem; font-weight: 500; }
.hero__sub { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.1rem); color: #e2c48c; margin-bottom: 1.25rem; }
.hero__lead { max-width: 38rem; font-size: 1.15rem; color: rgba(255, 255, 255, .88); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 1.1rem; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll { animation: none; } }

/* ---------------------------------------------------------------- secciones */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--cream { background: var(--c-cream); }
.section--dark { background: var(--c-ink); color: rgba(255, 255, 255, .88); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head__p { font-size: 1.1rem; color: var(--c-ink-soft); }
.section-title { margin-bottom: 2rem; }
.section-title--sm { font-size: 1.6rem; }
.img-frame { box-shadow: var(--shadow); }
img.img-frame { width: 100%; display: block; border-radius: var(--radius); }
.lead-text { font-size: 1.2rem; font-family: var(--font-serif); line-height: 1.55; color: var(--c-ink-soft); }
.prose p { font-size: 1.08rem; }
.prose--lead p:first-child { font-family: var(--font-serif); font-size: 1.45rem; line-height: 1.45; color: var(--c-ink); }
.prose--legal h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.prose--legal h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.prose--legal ul { padding-left: 1.2rem; }
.prose--legal li { margin-bottom: .4rem; }
.quote { border-left: 3px solid var(--c-gold); padding-left: 1.25rem; margin: 1.25rem 0 1.5rem; }
.quote p { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; line-height: 1.45; color: var(--c-ink-soft); margin: 0; }

.stats { margin-top: 3.5rem; }
.stat { border-top: 1px solid var(--c-sand); padding-top: 1.1rem; }
.stat__num { display: block; font-size: 2.6rem; color: var(--c-wine); line-height: 1; margin-bottom: .35rem; }
.stat__txt { display: block; font-size: .9rem; color: var(--c-ink-soft); }

/* tarjetas de bodegas */
.winery-card { background: #fff; height: 100%; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .4); transition: transform .25s ease, box-shadow .25s ease; }
.winery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.winery-card__img { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.winery-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.winery-card:hover .winery-card__img img { transform: scale(1.05); }
.winery-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.winery-card__place { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold); font-weight: 700; margin-bottom: .4rem; }
.winery-card__title { font-size: 1.7rem; margin-bottom: .6rem; }
.winery-card__title a { color: var(--c-ink); }
.winery-card__title a:hover { color: var(--c-wine); text-decoration: none; }
.winery-card__body p:not(.winery-card__place) { font-size: .95rem; color: var(--c-ink-soft); flex: 1; }

/* teaser Soria */
.soria-teaser .img-frame { aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------------------------------------------------------------- páginas interiores */
.page-hero { padding: calc(var(--header-h) + 3.5rem) 0 2.5rem; }
.page-hero h1 { margin-bottom: .5rem; }
.page-hero__sub { font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; color: var(--c-ink-soft); margin: 0; }
.banner + .page-hero { padding-top: 2.5rem; }
.banner { margin-top: var(--header-h); }
.banner__img { width: 100%; display: block; aspect-ratio: 1920 / 420; object-fit: cover; }
.breadcrumb-nav { margin-bottom: 1.25rem; }
.breadcrumb { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin: 0; --bs-breadcrumb-divider: "›"; }
.breadcrumb a { color: var(--c-ink-soft); }
.breadcrumb-item.active { color: var(--c-wine); }

.video-facade { position: relative; background: var(--c-ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.video-facade .video-poster { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.video-facade:hover .video-poster { transform: scale(1.03); }
.video-play { position: absolute; top: 50%; left: 50%; width: 5.2rem; height: 5.2rem; transform: translate(-50%, -50%); border-radius: 50%; border: 0; background: var(--c-wine); color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: background .2s, transform .2s; }
.video-play i { margin-left: .25rem; }
.video-facade:hover .video-play, .video-play:focus-visible { background: var(--c-wine-dark); transform: translate(-50%, -50%) scale(1.06); }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ratio > picture { position: absolute; inset: 0; }

.fact { background: var(--c-cream); padding: 1.3rem 1.4rem; border-radius: var(--radius); height: 100%; }
.fact__icon { color: var(--c-wine); font-size: 1.4rem; margin-bottom: .6rem; display: block; }
.fact__title { font-size: 1.25rem; margin-bottom: .35rem; }
.fact p { font-size: .92rem; margin: 0; color: var(--c-ink-soft); }
.map-figure { position: sticky; top: calc(var(--header-h) + 1.5rem); margin: 0; }
.map-figure a { display: block; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.map-figure img { display: block; width: 100%; }
.map-figure figcaption { font-size: .85rem; color: var(--c-ink-soft); margin-top: .75rem; }
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__zoom { position: absolute; right: .9rem; bottom: .9rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--c-wine); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; }
.gallery-item:hover .gallery-item__zoom, .gallery-item:focus-visible .gallery-item__zoom { opacity: 1; }

.timeline { list-style: none; padding: 0 0 0 1.5rem; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: .3rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--c-sand); }
.timeline__item { position: relative; padding-bottom: 1.5rem; }
.timeline__item::before { content: ""; position: absolute; left: -1.5rem; top: .45rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--c-wine); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--c-sand); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item:last-child::before { background: var(--c-gold); }
.timeline__date { display: block; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--c-wine); line-height: 1.2; }
.timeline__text { margin: .15rem 0 0; font-size: .98rem; color: var(--c-ink-soft); }
.full-image img { width: 100%; display: block; max-height: 80vh; object-fit: cover; }

.teaser-card { display: flex; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .4); color: var(--c-ink); height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.teaser-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.teaser-card picture { flex: 0 0 42%; }
.teaser-card img { width: 100%; height: 100%; object-fit: cover; }
.teaser-card__body { padding: 1.4rem; display: flex; flex-direction: column; }
.teaser-card__body h3 { font-size: 1.45rem; }
.teaser-card__body p { font-size: .92rem; color: var(--c-ink-soft); flex: 1; }
@media (max-width: 575.98px) { .teaser-card { flex-direction: column; } .teaser-card picture { aspect-ratio: 3 / 2; } }

/* ---------------------------------------------------------------- pie */
.site-footer { background: var(--c-ink); color: rgba(255, 255, 255, .78); padding: 4rem 0 2rem; font-size: .93rem; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: #e2c48c; }
.footer-brand { font-size: 1.8rem; color: #fff; margin-bottom: .75rem; }
.footer-tag { max-width: 24rem; }
.footer-social { display: flex; gap: .25rem; }
.footer-social .social-link { color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.footer-title { font-family: var(--bs-body-font-family); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: #e2c48c; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .45rem; }
.footer-address { font-style: normal; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.footer-legal { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-legal a { color: rgba(255, 255, 255, .6); }

.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--c-wine); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease; z-index: 1030; box-shadow: var(--shadow); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-wine-dark); color: #fff; text-decoration: none; }

.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1040; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; font-size: .85rem; max-width: 720px; margin: 0 auto; border: 1px solid var(--c-sand); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 320px; }

.lightbox .modal-content { background: transparent; border: 0; align-items: center; }
.lightbox .btn-close { position: fixed; top: 1rem; right: 1rem; z-index: 2; opacity: .9; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox-caption { color: rgba(255, 255, 255, .85); font-size: .9rem; margin: .75rem 0 0; text-align: center; }
.modal-backdrop.show { opacity: .88; }

@media (max-width: 767.98px) {
  body { font-size: 1rem; }
  .hero { min-height: 92svh; }
  .hero__content { padding-bottom: 4rem; }
  .map-figure { position: static; }
  .stats { margin-top: 2.5rem; }
}
@media print {
  .site-header, .site-footer .footer-social, .to-top, .cookie-banner, .hero__media, .video-play { display: none !important; }
  .page-hero { padding-top: 1rem; }
}
