* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

body {
  font-family: "Merriweather", serif;

  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: min(2000px, 95vw);
  margin: 0 auto;
  padding: 0 2rem;
}

.hidden {
  display: none !important;
}


header {
  background-color: #fcfcec;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;

  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  font-family: "Merriweather", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-size: 2rem;
  color: #9f0100;
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #8b4513;
}


.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #3a1e00;
  transition: 0.3s;
}


.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

nav ul {
  display: flex;
  list-style: none;
  gap: clamp(0.8rem, 2vw - 0.5rem, 1.5rem);

  flex-wrap: wrap;
  margin-left: auto;
  transition: all 0.3s ease;
}

nav a {
  text-decoration: none;
  color: #3a1e00;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw - 0.2rem, 1.1rem);
  letter-spacing: 1px;
  transition: color 0.3s ease;
  text-transform: uppercase;
  white-space: nowrap;
}

nav a:hover {
  color: #8b4513;
}



.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 80px;
  box-sizing: border-box;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/photo_hero.jpg') center/cover no-repeat;
  z-index: 1;
  opacity: 50%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(138, 96, 54, 0.8), rgba(131, 83, 36, 0.8), #703b0a, #703b0a);
  z-index: 2;
}

.hero-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
  gap: clamp(1rem, 3vw, 3rem);/
}

.hero-text {
  flex: 1;
  max-width: 50%;
  margin-left: clamp(1rem, 4vw, 3rem);
}

.hero-text p {
  font-family: "Merriweather", serif;

  font-style: italic;

  font-size: clamp(1.5rem, 1rem + 1.5vw, 6rem);

  line-height: 1.4em;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-bottle {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 8rem;
}

.hero-bottle img {
  height: 500px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}


.productos-section {
  background: #fcfcec;
  padding: 5rem 0;
}

.section-title {
  font-family: "Merriweather", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  text-align: center;
  font-size: 2.5rem;
  color: #8b4513;
  margin-bottom: 4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.producto {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4rem 0;
  gap: clamp(2rem, 5vw, 6rem);
  min-height: 400px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.producto:nth-child(2) .producto-info {
  order: 1;
  flex: 1;
  max-width: 500px;
}

.producto:nth-child(2) .producto-imagen {
  order: 2;
  flex: 0 0 clamp(250px, 35vw, 600px);
}

.producto:nth-child(3) .producto-info {
  order: 2;
  flex: 1;
  max-width: 500px;
}

.producto:nth-child(3) .producto-imagen {
  order: 1;
  flex: 0 0 clamp(250px, 35vw, 600px);
}

.producto-info {
  text-align: center;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.producto-info h3 {
  font-family: "Merriweather", serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: #8b4513;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.producto-info h4 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: #666;
  margin-bottom: 2rem;
  font-weight: 400;
}

.btn-ver-mas {
  background: #e67e22;
  color: white;
  border: none;

  padding: clamp(0.8rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: 25px;

  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;

  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-ver-mas:hover {
  background: #d35400;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.producto-imagen {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.producto-imagen img {
  width: 100%;
  height: auto;
  max-width: clamp(250px, 35vw, 600px);
  max-height: clamp(300px, 40vw, 700px);
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
  min-width: 200px;
}

.fundacion-section {
  color: #000000;
  padding: 5rem 0;
  background: #fcfcec;
}

.fundacion-section .section-title {
  margin-bottom: 3rem;
}

.fundacion-content {
  max-width: min(1750px, 90vw);
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.9rem);
  line-height: 1.8;
  word-spacing: clamp(0.1em, 0.2em + 0.2vw, 0.5em);
}

.fundacion-content p {
  margin-bottom: 0.8rem;
  text-align: justify;
  font-family: "Poppins", sans-serif;
}

.proposito-section {
  background: #fcfcec;
  padding: 5rem 0;
}

.proposito-content {
  max-width: min(1750px, 90vw);
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.9rem);
  line-height: 1.8;
  color: #000000;
  word-spacing: clamp(0.1em, 0.2em + 0.2vw, 0.5em);

}

.proposito-content p {
  margin-bottom: 0.8rem;
  text-align: justify;
  font-family: "Poppins", sans-serif;
}

.importadores-section {
  background: #fcfcec;
  padding: 5rem 0;
  text-align: center;
}

.importadores-section .section-title {
  margin-bottom: 3rem;
}

.importadores-logo img {
  max-width: 400px;
  width: 100%;
  height: auto;
}


.footer {
  background: #713d0e;
  color: #f8f6f0;
  padding: 3rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-info {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.footer-section {
  text-align: center;
  max-width: 200px;
}

.footer-section p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-top: 1rem;
  filter: brightness(0.9);
}

.footer-section:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-section:last-child p {
  margin-bottom: 1rem;
  font-weight: 600;
}

.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-icons a {
  text-decoration: none;
  transition: transform 0.3s ease;
  display: inline-block;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: brightness(1);
}

.social-icon:hover {
  filter: brightness(1.2);
}

@media (max-width: 1200px) {
  .hero-bottle {

    margin-right: 5rem;
  }


}

@media (max-width: 940px) {
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fcfcec;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    margin-left: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  nav ul.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav li {
    width: 100%;
    text-align: center;
  }

  header {
    position: relative;
  }
}





@media (max-width: 480px) {
  header {
    padding: 10px 15px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .menu-toggle {
    gap: 3px;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
  }

  .hero {
    padding: 20px 15px;
  }

  .producto-info h3 {
    font-size: 1.5rem;
  }

  .producto-info h4 {
    font-size: 1.2rem;
  }

  .producto-imagen img {
    min-width: 180px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .footer-content {
    padding: 0 0.5rem;
  }

  .footer-info {
    gap: 1.5rem;
  }

  .footer-section p {
    font-size: 0.8rem;
  }

  .footer-logo {
    width: 100px;
    height: 100px;
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }

  .producto-detalle-section {
    padding: 2rem 0;
  }

  .producto-detalle {
    gap: 1.5rem;
  }

  .producto-detalle-info {
    padding: 0 0.5rem;
  }

  .producto-detalle-imagen {
    max-width: 250px;
  }

  .producto-detalle-imagen img {
    max-width: 220px;
    max-height: 280px;
  }

  .age-modal {
    padding: 1.5rem 1rem;
    max-width: 320px;
  }

  .age-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-age {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    min-width: auto;
    width: 100%;
  }

  .underage-content {
    padding: 1rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text,
.hero-bottle {
  animation: fadeInUp 1s ease-out;
}

html {
  scroll-behavior: smooth;
}

.producto-detalle-section {
  background: #fcfcec;
  padding: 5rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.producto-detalle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  min-height: 500px;
  max-width: 1200px;
  margin: 0 auto;
}

.producto-detalle-info {
  flex: 1;
  max-width: 500px;
  padding: 0 2rem;
}

.producto-detalle-info h1 {
  font-family: "Merriweather", serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: #8b4513;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.producto-detalle-info h2 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #666;
  margin-bottom: 2rem;
  font-weight: 400;
}

.producto-detalle-info p {
  font-family: "Merriweather", serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

.producto-detalle-imagen {
  flex: 0 0 clamp(280px, 40vw, 650px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.producto-detalle-imagen img {
  width: 100%;
  height: auto;
  max-width: clamp(320px, 35vw, 600px);
  max-height: clamp(400px, 40vw, 700px);
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.age-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}


.age-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.age-modal {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  max-width: 700px;
  width: 90%;
}

.age-modal h2 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #fcfcec;
  margin-bottom: 2rem;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  -webkit-text-stroke: 1px black; 
}

.age-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-age {
  background: #703b0a;
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 120px;
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
}

.btn-age:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(230, 126, 34, 0.4);
}

.btn-age:active {
  transform: translateY(-1px);
}

.btn-no {
  background: #703b0a;
  box-shadow: 0 8px 20px rgba(149, 165, 166, 0.3);
}

.btn-no:hover {
  box-shadow: 0 12px 25px rgba(149, 165, 166, 0.4);
}

.underage-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.underage-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.underage-content {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
}

.underage-content h2 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #8b4513;
  margin-bottom: 2rem;
  line-height: 1.4;
}

body.age-checking header,
body.age-checking main,
body.age-checking section,
body.age-checking footer {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}

body.age-verified header,
body.age-verified main,
body.age-verified section,
body.age-verified footer {
  visibility: visible;
  opacity: 1;
}

.social-icons {
  justify-content: center;
}

.social-icon {
  width: 28px;
  height: 28px;
}

.footer-logo {
  width: 120px;
  height: 120px;
}

.galeria-section {
  background: #fcfcec;
  padding: 5rem 0;
}

.gallery-carousel {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1rem;
  position: relative;
}

.gallery-container {
  overflow: hidden;
  flex: 1;
  border-radius: 12px;
  position: relative;
}

.gallery-track {
  display: flex;
  transition: transform 0.4s ease;
  padding: 0.5rem 0;
  will-change: transform;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.5s ease;
}

.gallery-item {
  flex-shrink: 0;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-nav {
  background: white;
  border: 2px solid #8b4513;
  color: #8b4513;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
  user-select: none;
  z-index: 2;
}

.gallery-nav:hover:not(.disabled) {
  background: #8b4513;
  color: white;
  transform: scale(1.1);
}

.gallery-nav:active:not(.disabled) {
  transform: scale(0.95);
}

.gallery-nav:disabled,
.gallery-nav.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .gallery-item {
    flex: 0 0 250px;
    height: 200px;
  }

  .gallery-nav {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .hero-bottle {

    margin-right: 3rem;
  }

}

@media (max-width: 768px) {
  .gallery-carousel {
    gap: 0.5rem;
  }

  .gallery-track {
    gap: 0.8rem;
  }

  .gallery-item {
    flex: 0 0 200px;
    height: 160px;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 20px;
  }


  .hero {
    padding: 30px 20px;
  }

  .hero-background {
    background-position: center;
    background-size: cover;
  }

  .hero-overlay {
    background: linear-gradient(to bottom, #703b0a, #703b0a, #703b0a, rgba(131, 83, 36, 0.8),
        rgba(138, 96, 54, 0.8));
  }


  .hero-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
    gap: 2rem;
  }

  .hero-text {
    order: 2;
    max-width: 100%;
    margin: 0;
    padding-top: 1rem;
    text-align: center;
  }

  .hero-bottle {
    order: 1;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-right: none;
  }

  .hero-bottle img {
    height: 50vh;
    margin: 0;
    display: block;
  }

  .section-title {
    font-size: 2rem;
  }

  .producto {
    flex-direction: column !important;
    text-align: center;
    gap: 2rem;
    max-width: 100%;
    margin: 3rem auto;
  }

  .producto:nth-child(2) .producto-info,
  .producto:nth-child(2) .producto-imagen,
  .producto:nth-child(3) .producto-info,
  .producto:nth-child(3) .producto-imagen {
    order: 0;
    flex: none;
    max-width: 100%;
  }

  .producto-imagen {
    order: 1;
    margin-bottom: 1rem;
  }

  .producto-info {
    order: 2;
    padding: 0;
  }

  .producto-info h3 {
    font-size: 2rem;
  }

  .producto-info h4 {
    font-size: 1.5rem;
  }

  .producto-imagen img {
    min-width: 180px;
  }

  .container {
    padding: 0 1rem;
  }

  .fundacion-content,
  .proposito-content {
    font-size: 1rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
  }

  .footer-info {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
  }

  .footer-section {
    min-width: auto;
    width: 100%;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-logo {
    width: 120px;
    height: 120px;
  }

  .producto-detalle-section {
    padding: 3rem 0;
    min-height: auto;
  }

  .producto-detalle {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    min-height: auto;
  }

  .producto-detalle-info {
    order: 1;
    max-width: 100%;
    padding: 0 1rem;
  }

  .producto-detalle-imagen {
    order: 2;
    flex: none;
    max-width: 300px;
  }

  .producto-detalle-imagen img {
    max-width: 280px;
    max-height: 350px;
  }
}

@media (max-width: 480px) {
  .gallery-carousel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.5rem;
    justify-content: space-between;
  }

  .gallery-container {
    flex: 1;
    overflow: hidden;
    order: 1;
    min-width: 0;
  }

  .gallery-nav {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    flex-shrink: 0;
    border-width: 1px;
    position: relative;
    z-index: 10;
  }

  .gallery-nav-prev {
    order: 0;
    margin-right: 0.25rem;
  }

  .gallery-nav-next {
    order: 2;
    margin-left: 0.25rem;
  }

  .gallery-nav.disabled {
    opacity: 0.3;
    pointer-events: none;
  }

  .gallery-track {
    gap: 0.5rem;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
  }

  .gallery-item {
    flex: 0 0 auto;
    height: 180px;
    border-radius: 6px;
    display: block;
    transition: opacity 0.3s ease;
    position: relative;
  }

  .galeria-section .container {
    padding: 0 0.5rem;
    max-width: 100vw;
    overflow: hidden;
 
  }
  .english-icon-link {
    position: absolute;
    top: 5px;
    right: 16px;
    z-index: 1000;
  
  }
}

.english-icon-link {
  position: absolute;
  top: 5px;
  right: 16px;
  z-index: 1000;
}

.english-icon-link img.english-icon-img,
.english-icon-link .english-icon-img,
.english-icon-img {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  object-fit: contain !important;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: block !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* Regla adicional súper específica para asegurar que funcione */
body header a[href*="en/index.html"] img[alt="English"] {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
}

.english-nav-link {
  display: none;
}

.terms-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 2rem;
  box-sizing: border-box;
}

.terms-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.terms-modal-content {
  background: white;
  border-radius: 15px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  position: relative;
}

.terms-modal-header {
  background: #8b4513;
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 15px 15px 0 0;
}

.terms-modal-header h2 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  margin: 0;
  font-weight: 700;
}

.terms-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.terms-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.terms-modal-body {
  padding: 2rem;
  max-height: calc(90vh - 100px);
  overflow-y: auto;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
}

.terms-modal-body::-webkit-scrollbar {
  width: 8px;
}

.terms-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.terms-modal-body::-webkit-scrollbar-thumb {
  background: #8b4513;
  border-radius: 4px;
}

.terms-modal-body::-webkit-scrollbar-thumb:hover {
  background: #6d3310;
}

.terms-modal-body h3 {
  font-family: "Merriweather", serif;
  color: #8b4513;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.terms-modal-body h4 {
  font-family: "Merriweather", serif;
  color: #8b4513;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.terms-modal-body p {
  margin-bottom: 1rem;
  text-align: justify;
  font-size: 0.95rem;
}

.terms-modal-body ul {
  margin: 0.5rem 0 1rem 1.5rem;
  padding: 0;
}

.terms-modal-body li {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.footer-link {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #fcfcec;
  text-decoration: none;
}

@media (max-width: 768px) {
  .terms-modal {
    padding: 1rem;
  }

  .terms-modal-content {
    max-height: 95vh;
  }

  .terms-modal-header {
    padding: 1rem 1.5rem;
  }

  .terms-modal-header h2 {
    font-size: 1.2rem;
  }

  .terms-modal-body {
    padding: 1.5rem;
    max-height: calc(95vh - 80px);
  }

  .terms-modal-body h3 {
    font-size: 1.1rem;
  }

  .terms-modal-body h4 {
    font-size: 1rem;
  }

  .terms-modal-body p,
  .terms-modal-body li {
    font-size: 0.9rem;
  }
  .english-icon-link {
    display: none !important;
  }
  .english-nav-link {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .terms-modal {
    padding: 0.5rem;
  }

  .terms-modal-header {
    padding: 1rem;
  }

  .terms-modal-body {
    padding: 1rem;
  }


}


