/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 991px) {
    .container {
        max-width: 98vw;
        padding-left: 10px;
        padding-right: 10px;
    }
    body {
        padding-top: 0 !important;
    }
}

@media (max-width: 575px) {
    .container {
        max-width: 100vw;
        padding-left: 5px;
        padding-right: 5px;
    }
    body {
        padding-top: 0 !important;
    }
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 10;
}

.navbar-brand img {
    max-height: 50px;
}

/* Hero Section */
.hero-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
    background-color: #f8f9fa;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.hero-section h2 {
    font-size: 2rem;
    margin-top: 2rem;
    color: #2c3e50;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: #666;
}

.achievement {
    background-color: #611232;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

/* Sección de Videos */
#testimonios {
    background-color: white;
    position: relative;
    z-index: 1;
}

.video-container {
    margin-bottom: 2rem;
}

/* Sección de Contacto */
.contact-info {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-info i {
    color: #007bff;
    margin-right: 10px;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: #611232;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #4a0e25;
}

/* Portada imagen responsiva y centrada */
.hero-section img {
    width: 100%;
    max-width: 500px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    object-fit: cover;
}

/* Ajuste de secciones para mejor margen visual */
section {
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    .hero-section img {
        margin-top: 2rem;
        max-width: 90vw;
    }
    section {
        margin-top: 24px;
        margin-bottom: 24px;
    }
}

/* Apartado de Testimonios */
.video-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem 1rem 1rem 1rem;
    transition: box-shadow 0.2s;
    position: relative;
    min-height: 340px;
}
.video-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.fecha-izq, .fecha-der {
    font-size: 0.95rem;
    color: #007bff;
    font-weight: 600;
    background: #f1f7ff;
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
}
.fecha-izq {
    text-align: left;
}
.fecha-der {
    text-align: right;
}
.video-card video {
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #000;
}
.video-card button {
    margin-right: 0.3rem;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #fff;
    background: rgba(0,0,0,0.35);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.2s;
    opacity: 1;
    pointer-events: auto;
}
.video-play-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

/* Header vino para logotipos dentro del marco */
.header-vino {
    background: #611232 !important;
    height: 65px;
    margin-bottom: 0 !important;
    position: fixed !important;
    z-index: 1000 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw;
}

.logo-header {
    max-height: 65px;
    height: 65px;
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
    background: none !important;
    pointer-events: auto;
}

@media (max-width: 991px) {
    .header-vino {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        z-index: 9999 !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
    }
    body {
        padding-top: 50px !important;
    }
}
@media (max-width: 575px) {
    .header-vino {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        z-index: 9999 !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
    }
    body {
        padding-top: 38px !important;
    }
}

.slider-portadas-auto,
.slider-portadas-top {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    height: 0px;
    max-height: 0px;
    overflow: hidden;
    margin-bottom: 48px;
}

@media (max-width: 991px) {
    .slider-portadas-auto,
    .slider-portadas-top {
        margin-top: 0 !important;
    }
}
@media (max-width: 575px) {
    .slider-portadas-auto,
    .slider-portadas-top {
        margin-top: 0 !important;
    }
}

/* Ajustes para el carrusel de videos */
.video-carousel-wrapper {
    position: relative;
    max-width: 700px;
    margin: auto;
    z-index: 1;
}

.video-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #800000;
    color: #fff;
    border: none;
    font-size: 2em;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
}

.carousel-arrow:hover {
    background: #4a0e25;
}

.carousel-arrow.left {
    left: 0;
}

.carousel-arrow.right {
    right: 0;
}

/* Ajustes responsivos para el carrusel */
@media (max-width: 600px) {
    .video-carousel-wrapper {
        max-width: 100%;
    }
    .video-carousel {
        flex-direction: column;
    }
    .carousel-arrow {
        font-size: 1.5em;
    }
}

/* Restaurar estilos originales del header y logotipos */
.header-content-flex {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  position: relative;
}
.header-links {
  margin-right: 32px;
  display: flex;
  gap: 18px;
  align-items: center;
}
@media (max-width: 991px) {
  .header-links {
    margin-right: 8px !important;
    gap: 8px !important;
  }
}
@media (max-width: 575px) {
  .header-links {
    margin-right: 2px !important;
    gap: 4px !important;
  }
}

/* Franja inferior con imagen exacta del patrón proporcionado */
.footer-pleca {
    position: static;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52px;
    min-height: 52px;
    background: #611232 url('MARGEN/MARGEN INFERIOR DE LA PAGINA.png') repeat-x center;
    background-size: auto 52px;
    z-index: 1000;
    width: 100vw;
    pointer-events: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: flex-end;
}
@media (max-width: 991px) {
    .footer-pleca {
        background-size: auto 54px;
    }
}
@media (max-width: 575px) {
    .footer-pleca {
        background-size: auto 44px;
    }
}

/* Estilos de la esfera y videos testimoniales */
.homeheader_figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 400px;
  height: 500px !important;
  background: none !important;
  z-index: 10;
  margin-top: 140px;
}

.homeheader_inset {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 600px;
  min-height: 400px;
  background: none !important;
}

#header-globe-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1/1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#globe {
  width: 100% !important;
  height: 100% !important;
  min-width: 300px;
  min-height: 300px;
  max-width: 600px;
  max-height: 600px;
  display: block;
  background: transparent !important;
  border-radius: 50%;
  box-shadow: none;
  z-index: 30;
}

#globe-mexico-silhouette {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  z-index: 2;
  pointer-events: none;
}

#globe-mexico-silhouette svg {
  width: 100%;
  height: 100%;
  fill: #0066cc;
  opacity: 0.9;
}

#globe-testimonial-thumbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.globe-thumb {
  position: absolute;
  width: 110px !important;
  height: 80px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 3px solid #fff;
  overflow: hidden;
  background: #000;
  pointer-events: auto;
  transition: all 0.3s ease;
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
}
.globe-thumb video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border: none !important;
  display: block;
  border-radius: 12px !important;
  background: #000;
  margin: 0;
  padding: 0;
}

.globe-thumb:hover {
  transform: scale(1.15) rotate(-3deg);
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.globo-mexico {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}
.globo-mexico img {
  width: 300px;
  filter: drop-shadow(0 0 30px #1976d2);
  animation: glow 2s infinite alternate, float 6s ease-in-out infinite;
}
@keyframes glow {
  from { filter: drop-shadow(0 0 10px #1976d2); }
  to   { filter: drop-shadow(0 0 40px #1976d2); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}

.slider-presidencia.slider-banner {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto 18px auto;
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 8px 12px;
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  z-index: 60;
}
.slider-presidencia.slider-banner li {
  flex: 1 1 0;
  max-width: 120px;
  min-width: 60px;
}
.slider-presidencia.slider-banner img {
  width: 100%;
  max-height: 48px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: transform 0.2s;
  cursor: pointer;
}
.slider-presidencia.slider-banner img:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
@media (max-width: 600px) {
  .slider-presidencia.slider-banner {
    max-width: 98vw;
    gap: 4px;
    padding: 4px 2px;
  }
  .slider-presidencia.slider-banner li {
    max-width: 40px;
    min-width: 24px;
  }
  .slider-presidencia.slider-banner img {
    max-height: 22px;
  }
}

.slider-banner-wrapper {
  width: 100%;
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.slider-banner-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 8px 10px;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #bdbdbd #f5f5f5;
}
.slider-banner-row::-webkit-scrollbar {
  height: 8px;
}
.slider-banner-row::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 4px;
}
.slider-banner-row img {
  width: 220px;
  min-width: 180px;
  max-width: 240px;
  max-height: 60px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: transform 0.2s;
  cursor: pointer;
  background: #fff;
  flex-shrink: 0;
}
.slider-banner-row img:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
@media (max-width: 991px) {
  .slider-banner-row img {
    width: 120px;
    min-width: 90px;
    max-width: 140px;
    max-height: 32px;
  }
  .slider-banner-row {
    gap: 6px;
    padding: 4px 2px;
  }
}

.banner-presidencia-unico {
  width: 100%;
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.banner-presidencia-unico img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  background: #fff;
  object-fit: cover;
}
@media (max-width: 991px) {
  .banner-presidencia-unico img {
    border-radius: 8px;
  }
}

.banner-portadas-multiples {
  width: 100%;
  margin-bottom: 18px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 8px 10px;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #bdbdbd #f5f5f5;
}
.banner-portadas-multiples::-webkit-scrollbar {
  height: 8px;
}
.banner-portadas-multiples::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 4px;
}
.banner-portadas-multiples img {
  width: 220px;
  min-width: 180px;
  max-width: 240px;
  max-height: 60px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: transform 0.2s;
  cursor: pointer;
  background: #fff;
  flex-shrink: 0;
}
.banner-portadas-multiples img:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
@media (max-width: 991px) {
  .banner-portadas-multiples img {
    width: 120px;
    min-width: 90px;
    max-width: 140px;
    max-height: 32px;
  }
  .banner-portadas-multiples {
    gap: 6px;
    padding: 4px 2px;
  }
}

.slider-portadas-auto {
  width: 100%;
  max-width: 100vw;
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #611232 !important;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  margin: 0 auto 24px auto !important;
  padding: 0;
  border-top: 3px solid #611232 !important;
}

.slider-portadas-auto .slider-img {
  height: 100%;
  max-height: 110px;
  width: auto;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: opacity 0.7s;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
}

.slider-portadas-auto .slider-img.active {
  opacity: 1;
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  .slider-portadas-auto {
    height: 60px;
    border-radius: 8px;
  }
  .slider-portadas-auto .slider-img {
    max-height: 60px;
    border-radius: 8px;
  }
}

@media (max-width: 575px) {
  .slider-portadas-auto {
    height: 38px;
  }
  .slider-portadas-auto .slider-img {
    max-height: 38px;
  }
}

.slider-portadas-top {
  margin-top: 56px !important;
  width: 100vw;
  max-width: 100vw;
  position: fixed;
  top: 56px;
  left: 0;
  margin: 0;
  padding: 0;
  background: #f5f7fa;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 367px;
  overflow: hidden;
  z-index: 1100;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 3px solid #611232 !important;
}
.slider-portadas-top .slider-img {
  width: 100vw;
  max-width: 100vw;
  height: 367px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  margin-top: 48px;
}
@media (max-width: 991px) {
  .slider-portadas-top {
    margin-top: 0 !important;
    top: 0;
    height: 180px;
  }
  .slider-portadas-top .slider-img {
    height: 180px;
  }
}
@media (max-width: 575px) {
  .slider-portadas-top {
    margin-top: 0 !important;
    top: 0;
    height: 100px;
  }
  .slider-portadas-top .slider-img {
    height: 100px;
  }
}

.hero-section.main-content {
  margin-top: 85px !important;
  padding-top: 20px;
}
@media (max-width: 991px) {
  .hero-section.main-content {
    margin-top: 60px !important;
  }
}
@media (max-width: 575px) {
  .hero-section.main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* Elimino cualquier position: fixed de sliders, banners o portadas */
.slider-portadas-top, .banner-portada-top, .banner-portadas-multiples, .slider-portadas-auto {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
}

.hero-section .row.align-items-center.min-vh-100 {
  min-height: 0 !important;
  height: auto !important;
}

.footer-action-buttons {
    background: #611232 !important;
    position: static;
    right: unset;
    bottom: unset;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 1101;
    pointer-events: auto;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 24px 0;
}

.footer-action-buttons a {
    background: #611232 !important;
    color: #fff !important;
    border: none !important;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    outline: none;
}

.footer-action-buttons a:hover {
    background: #4a0e25 !important;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.footer-action-buttons a:focus {
    outline: none;
    border: none;
}

@media (max-width: 991px) {
    .footer-action-buttons {
        gap: 6px;
        padding: 4px 0;
    }
    .footer-action-buttons a {
        font-size: 1.2rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 575px) {
    .footer-action-buttons {
        gap: 4px;
        padding: 2px 0;
    }
    .footer-action-buttons a {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
    }
}

#apartado4 {
  background: url('MARGEN/FONDO DE APARTADO 4.png') center center repeat;
  background-size: cover;
}

@media (max-width: 800px) {
  .video-carousel-wrapper iframe {
    width: 100% !important;
    height: 45vw !important; /* Relación de aspecto 16:9 */
    min-height: 200px;
    max-width: 100vw;
  }
  .video-carousel-wrapper {
    max-width: 100vw !important;
  }
  .carousel-arrow {
    font-size: 1.5em !important;
    padding: 0 10px !important;
  }
}

/* Eliminar estilos de botón para .btn-header */
.btn-header { all: unset !important; }

/* Eliminar ocultamiento de sliders superiores */
.slider-portadas-auto,
.slider-portadas-top,
.banner-portada-top,
.banner-portadas-multiples {
  display: flex !important;
  /* O el valor original que tenían, pero nunca none */
}

/* Ajustar el margen superior del contenido principal */
.hero-section.main-content {
    margin-top: 85px !important;
    padding-top: 20px;
}

@media (max-width: 991px) {
    .hero-section.main-content {
        margin-top: 60px !important;
    }
}

@media (max-width: 575px) {
    .hero-section.main-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Enlaces simples y elegantes en el header */
.header-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.08em;
    padding: 4px 10px;
    border-radius: 6px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: background 0.18s, color 0.18s;
    letter-spacing: 0.5px;
    display: inline-block;
}
.header-link:hover, .header-link:focus {
    background: rgba(255,255,255,0.18);
    color: #ffe0e6;
    text-decoration: none;
}
.header-links {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-right: 32px;
}
@media (max-width: 991px) {
    .header-links {
        margin-right: 8px !important;
        gap: 8px !important;
    }
    .header-link {
        font-size: 0.98em;
        padding: 3px 6px;
    }
}
@media (max-width: 575px) {
    .header-links {
        margin-right: 2px !important;
        gap: 4px !important;
    }
    .header-link {
        font-size: 0.88em;
        padding: 2px 4px;
    }
}

/* Restaurar margen superior vino al ras de los logotipos */
.footer-pleca-superior {
  width: 100vw;
  height: 100px;
  background: #611232;
  margin: 0;
  padding: 0;
  display: block;
}
@media (max-width: 991px) {
  .footer-pleca-superior {
    height: 75px;
  }
}
@media (max-width: 575px) {
  .footer-pleca-superior {
    height: 50px;
  }
}

body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Ajuste responsivo para el slider-carrusel en móviles */
@media (max-width: 575px) {
  .header-vino {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  #slider-carrusel {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    align-items: stretch !important;
  }
  #slider-carrusel img {
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    object-fit: contain !important;
    background: transparent !important;
    display: block !important;
    margin: 0 !important;
  }
  section.hero-section.main-content {
    margin: 0 !important;
    padding: 0 !important;
  }
}
@media (min-width: 576px) {
  #slider-carrusel {
    height: 360px !important;
    max-height: 360px !important;
  }
}

/* Video de YouTube responsivo */
.youtube-responsive-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Proporción 16:9 */
  height: 0;
  overflow: hidden;
}
.youtube-responsive-wrapper iframe,
.youtube-responsive-wrapper #youtube-player {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vw !important;
  border: 0;
  display: block;
}
@media (max-width: 575px) {
  #youtube-carousel {
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 8px !important;
  }
  .youtube-responsive-wrapper {
    margin-bottom: 4px !important;
  }
  #video-title {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
  }
}

/* Forzar iframe de YouTube responsivo dentro del carrusel */
#youtube-player iframe {
  width: 100% !important;
  max-width: 100vw !important;
  height: 56vw !important;
  max-height: 60vw !important;
  min-height: 180px;
  display: block;
  margin: 0 auto;
  border: none;
}
@media (min-width: 576px) {
  #youtube-player iframe {
    height: 315px !important;
    max-width: 560px !important;
    max-height: 315px !important;
  }
}

@media (max-width: 575px) {
  section {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .contact-info, .contact-form {
    padding: 1rem !important;
    margin-bottom: 8px !important;
  }
  .achievement {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }
}

#slider-carrusel {
  margin-top: 30px !important;
  background: #611232;
}
#slider-carrusel ul {
  background: #611232 !important;
}

@media (max-width: 991px) {
  #slider-carrusel {
    margin-top: 30px !important;
    background: #611232;
  }
}
@media (max-width: 575px) {
  #slider-carrusel {
    margin-top: 0 !important;
  }
}

.slider-portadas-auto {
  background: #611232 !important;
}

.banner-portadas-multiples {
  background: #611232 !important;
}

.banner-presidencia-unico img,
.slider-banner-row img,
.banner-portadas-multiples img {
  background: #611232 !important;
}

.header-vino, #slider-carrusel {
  border-bottom: none !important;
  border-top: none !important;
  box-shadow: none !important;
}

@media (max-width: 600px) {
  #header-globe-wrapper {
    max-width: 90vw;
    min-width: 220px;
    margin: 0 auto;
  }
  .homeheader_figure {
    min-height: 260px;
    height: 320px !important;
    margin-top: 100px;
  }
}

/* Slider portada en sección portada */
.slider-carrusel-portada {
    position: relative !important;
    width: 100% !important;
    max-width: 400px !important;
    height: 420px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10) !important;
    background: #fff !important;
    display: block !important;
}
.slider-portada-img {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.7s !important;
    border-radius: 16px !important;
    z-index: 1 !important;
    display: none !important;
}
.slider-portada-img.active {
    opacity: 1 !important;
    z-index: 2 !important;
    pointer-events: auto !important;
    display: block !important;
}
@media (max-width: 991px) {
    .slider-carrusel-portada {
        max-width: 90vw !important;
        height: 260px !important;
    }
}
@media (max-width: 575px) {
    .slider-carrusel-portada {
        max-width: 98vw !important;
        height: 180px !important;
    }
}

/* Refuerzo para el modal de la presidenta */
#modal-presidenta {
  display: none;
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3000 !important;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
}
#modal-presidenta[style*="display: flex"] {
  display: flex !important;
}
.modal-presidenta-content {
  position: relative !important;
  z-index: 3100 !important;
  background: #fff;
  border-radius: 18px;
  padding: 24px 16px 16px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
@media (max-width: 600px) {
  .modal-presidenta-content {
    padding: 8px 2px 2px 2px;
    max-width: 99vw;
    max-height: 80vh;
  }
  .modal-presidenta-content img {
    max-width: 98vw;
    max-height: 60vh;
  }
}

.btn-presidenta-vino {
    background-color: transparent !important;
    color: #611232 !important;
    border: 2px solid #611232 !important;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.btn-presidenta-vino:hover, .btn-presidenta-vino:focus {
    background-color: #611232 !important;
    color: #fff !important;
    border: 2px solid #611232 !important;
    text-decoration: none;
}

@media (max-width: 575px) {
  .header-vino {
    height: 38px;
  }
  .logo-header {
    max-height: 38px;
    height: 38px;
  }
  .slider-portadas-auto,
  .slider-portadas-top {
    margin-top: 60px !important;
  }
  body {
    padding-top: 0 !important;
  }
  #slider-carrusel {
    height: 180px !important;
    max-height: 220px !important;
    min-height: 120px !important;
    margin-top: 0 !important;
    background: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #slider-carrusel img {
    max-height: 220px !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #fff !important;
  }
  section.hero-section.main-content {
    margin-top: 40px !important;
  }
}

/* Ajustes solo para móviles */
@media (max-width: 600px) {
  body, html {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw;
    overflow-x: hidden;
  }
  .container, .container-fluid, .row, .col-lg-6, .col, .main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  section, #slider-carrusel, #portada, #testimonios, #contacto {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  /* Botón Contacto en el header */
  .header-links {
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 8px !important;
    justify-content: flex-end !important;
  }
  .header-link {
    padding: 8px 12px !important;
    font-size: 1em;
    border-radius: 6px;
    background: none;
    color: #fff;
    display: inline-block;
  }
  /* Header fijo */
  .header-vino {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    z-index: 1000;
  }
  body {
    padding-top: 70px !important; /* Ajusta según la altura de tu header */
  }
  /* Carrusel pegado al header */
  #slider-carrusel {
    margin-top: 0 !important;
  }
  /* ¿Quiénes somos? pegado al carrusel */
  #portada {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

@media (max-width: 600px) {
  .header-links {
    gap: 1px !important;
    margin-right: 1px !important;
    flex-wrap: wrap !important;
  }
  .header-link {
    font-size: 0.78em !important;
    padding: 1px 2px !important;
    min-width: 54px;
    text-align: center;
    letter-spacing: 0;
    word-break: break-word;
  }
}

@media (min-width: 992px) {
  .modal-presidenta-content {
    padding-top: 0;
    max-width: 900px;
  }
  .modal-presidenta-content img {
    margin-top: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  }
  .modal-presidenta-close {
    top: 8px !important;
    right: 8px !important;
    z-index: 9999 !important;
  }
  .modal-presidenta-content img {
    max-width: 540px;
    max-height: 80vh;
  }
}

@media (max-width: 991px) {
  body {
    padding-top: 0 !important;
  }
  #slider-carrusel-movil {
    margin-top: 50px !important;
  }
}
@media (max-width: 575px) {
  body {
    padding-top: 0 !important;
  }
  #slider-carrusel-movil {
    margin-top: 38px !important;
  }
}

@media (max-width: 991px) {
  .espaciador-header {
    width: 100vw;
    height: 50px;
    display: block;
  }
}
@media (max-width: 575px) {
  .espaciador-header {
    height: 38px;
  }
}

@media (max-width: 991px) {
  .espacio-blanco-slider {
    width: 100vw;
    height: 32px;
    background: #fff;
    display: block;
  }
}
@media (max-width: 575px) {
  .espacio-blanco-slider {
    height: 24px;
  }
}

@media (max-width: 991px) {
  .header-vino {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    z-index: 1030 !important;
    background: #611232 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}
@media (max-width: 575px) {
  .header-vino {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    z-index: 1030 !important;
    background: #611232 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}

@media (max-width: 991px) {
  .header-layout-flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}
@media (max-width: 575px) {
  .header-layout-flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}

@media (max-width: 991px) {
  #modal-presidenta {
    background: rgba(0,0,0,0.85) !important;
    box-shadow: 0 0 0 100vw rgba(0,0,0,0.85) !important;
    backdrop-filter: blur(2px);
  }
  .modal-presidenta-content {
    box-shadow: 0 8px 32px rgba(0,0,0,0.45) !important;
  }
}
@media (max-width: 575px) {
  #modal-presidenta {
    background: rgba(0,0,0,0.92) !important;
    box-shadow: 0 0 0 100vw rgba(0,0,0,0.92) !important;
    backdrop-filter: blur(2px);
  }
  .modal-presidenta-content {
    box-shadow: 0 12px 40px rgba(0,0,0,0.55) !important;
  }
} 