/**
 * Bodegas Ramanyà — réplica estática
 * Estilos equivalentes al diseño original (Divi): Open Sans, #333/#666,
 * fondo blanco, contenido centrado, galerías de tipo mampostería.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #666666;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
}

.container-wide {
  width: 92%;
  max-width: 1250px;
  margin: 0 auto;
}

/* ===================== CABECERA ===================== */
.site-header {
  background: #ffffff;
  border-bottom: 0;
}

.header-row {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 0;
  text-align: center;
}

.header-logo img {
  display: inline-block;
}

/* ===================== SLIDER HERO ===================== */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.slider-inner {
  position: relative;
  height: 511px;
  width: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* ===================== SECCIONES ===================== */
.section {
  padding: 80px 0;
}

.section + .section,
.section + .gallery-section {
  border-top: 0;
}

.text-block p {
  margin-bottom: 1.6em;
  text-align: center;
}

.text-block p:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 30px;
  font-weight: 500;
  color: #333333;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 45px;
}

/* ===================== GALERÍAS (mampostería) ===================== */
.masonry-gallery {
  column-count: 3;
  column-gap: 8px;
}

.masonry-gallery img {
  width: 100%;
  margin-bottom: 8px;
  break-inside: avoid;
}

/* ===================== VINOS ===================== */
.wine-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px 0;
}

.wine-card {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  text-align: center;
  padding: 0 20px;
}

.wine-card img {
  margin: 0 auto 14px;
}

.wine-card h4 {
  font-size: 18px;
  font-weight: 500;
  color: #333333;
}

/* ===================== COLECCIÓN ETNOGRÁFICA ===================== */
.ethnography {
  background: #ffffff;
}

/* ===================== VISITA Y TOURS ===================== */
.visit-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 50px;
}

.visit-photos img {
  flex: 1 1 31%;
  max-width: 350px;
}

.tours {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 65px;
}

.tour-card {
  flex: 1 1 40%;
  min-width: 280px;
  text-align: center;
}

.tour-image img {
  width: 100%;
  margin-bottom: 20px;
}

.tour-title {
  font-size: 18px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 12px;
}

.tour-content > p {
  text-align: center;
  margin-bottom: 10px;
}

.tour-content ul {
  list-style: disc;
  text-align: left;
  padding-left: 24px;
  display: inline-block;
}

.tour-content ul li {
  margin-bottom: 4px;
}

/* ===================== CONTACTO ===================== */
.contact-intro p {
  text-align: right;
  font-size: 16px;
  text-transform: uppercase;
  color: #333333;
  margin-bottom: 40px;
}

.contact-rows {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: stretch;
}

.contact-map {
  flex: 3 1 58%;
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

.contact-info {
  flex: 2 1 34%;
}

.contact-info h2 {
  font-size: 20px;
  font-weight: 800;
  color: #000000;
  margin: 18px 0 6px;
}

.contact-info h2:first-child {
  margin-top: 0;
}

.contact-info p {
  margin-bottom: 20px;
}

.contact-info a {
  color: #666666;
  text-decoration: none;
}

.contact-info a:hover {
  color: #000000;
}

/* ===================== PIE ===================== */
.site-footer {
  background: #ffffff;
  padding: 30px 0;
}

.footer-row {
  text-align: center;
}

.footer-row img {
  display: inline-block;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .slider-inner {
    height: 380px;
  }

  .masonry-gallery {
    column-count: 2;
  }

  .wine-card {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .section {
    padding: 45px 0;
  }

  .contact-map iframe {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .slider-inner {
    height: 240px;
  }

  .masonry-gallery {
    column-count: 1;
  }

  .wine-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .section-title {
    font-size: 22px;
  }

  .contact-intro p {
    text-align: center;
  }
}
