/* =======================================
   ESTILOS BASE Y CONFIGURACIÓN GENERAL
======================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fcffec;
}

/* Espaciado global entre secciones */
.section {
  padding: 4rem 1rem;
}

/* Títulos generales */
.section__title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #1a3d2c;
}

/* =======================================
   HEADER (logo + navegación principal)
======================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);

  padding: 1rem 0;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
}

.header__logo img {
  max-height: 60px;
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__nav .nav__list {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.header__nav a {
  text-decoration: none;
  font-weight: 600;
  color: black;
  font-size: 1rem;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.header__nav a:hover,
.header__nav a.active {
  color: greenyellow; /* Hover amarillo */
  border-bottom: 2px solid #ffeb3b; /* Subrayado al estar activo */
}

/* =======================================
   HOME SECTION
======================================= */
.section.home {
  position: relative;
  width: 100vw; /* 👈 Fuerza a ocupar el 100% del viewport horizontal */
  height: 100vh; /* Altura de pantalla completa */
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.home__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 👈 Escala la imagen sin deformarla */
}

.section.home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BOTÓN VERDE CENTRADO AL ESTILO DE LA CAPTURA */
.section.home {
  position: relative;
  height: 100vh; /* Banner a pantalla completa */
  width: 100%;
  overflow: hidden;
}

.section.home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home__menu-button {
  position: absolute;
  bottom: 4rem;
  left: 25%;
  transform: translateX(-50%);

  background-color: #a4f656; /* Verde claro */
  color: #1c3a24; /* Verde oscuro del texto */
  font-weight: bold;
  font-size: 1rem;
  text-transform: none;

  padding: 0.75rem 2.5rem;
  border-radius: 10px;
  border: 2px solid #1c3a24; /* ✅ Borde agregado */
  cursor: pointer;
  transition: all 0.2s ease;
}

.home__menu-button:hover {
  background-color: #90e14b;
  transform: translateX(-50%) scale(1.03);
}

.home__menu-button {
  text-decoration: none;
}

/* =======================================
   ABOUT SECTION
======================================= */
/* CONTENEDOR GENERAL DEL ABOUT US */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* SUBTÍTULO VERDE “About Us” */
.about__subtitle {
  color: #4caf50;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: left;
}

/* TÍTULO “ARIS: One tradition...” */
.about__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #266055;
  text-align: left;
  line-height: 1.3;
}

/* PÁRRAFO */
.about__text {
  font-size: 1rem;
  max-width: 600px;
  color: #333;
  text-align: left;
  line-height: 1.6;
}

/* IMAGEN DEL FOOD TRUCK */
.about__image {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.flag-inline {
  width: 28px;
  height: auto;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* =======================================
   PRODUCTS SECTION (Carrusel simulado)
======================================= */
.section.products {
  margin-top: -7rem; /* O incluso 0 si lo quieres pegado */
}

.products__headings {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 0 2rem;
  margin-bottom: 3rem;
}

.section__title {
  color: #266055; /* Verde fuerte */
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  text-align: left;
}

.products__subtitle {
  color: #222;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  text-align: left;
}

.products__carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}

.products__carousel {
  overflow: hidden;
  width: 100%;
}

.products__grid {
  display: flex;
  gap: 1rem;
  transition: transform 0.3s ease;
  padding: 0;
  margin: 0;
  overflow-x: hidden; /* Oculta scroll */
}

.product {
  flex: 0 0 calc(25% - 0.75rem); /* 4 imágenes exactas */
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.product img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ Esto hará que la imagen llene su contenedor sin deformarse */
  border-radius: 10px;
}

.product__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Hover en desktop */
@media (hover: hover) {
  .product:hover img {
    filter: blur(2px);
  }
  .product:hover .product__label {
    opacity: 1;
  }
}

/* Touch en mobile */
@media (hover: none) {
  .product:active img {
    filter: blur(2px);
  }
  .product:active .product__label {
    opacity: 1;
  }
}

/* Flechas */
.carousel-arrow-img {
  width: 24px;
  cursor: pointer;
  user-select: none;
  z-index: 10;
  transition: transform 0.2s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-arrow-img.left {
  left: -36px;
}

.carousel-arrow-img.right {
  right: -36px;
}

.carousel-arrow-img:hover {
  transform: translateY(-50%) scale(1.1);
}

#carousel-track {
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.product {
  scroll-snap-align: start;
  flex-shrink: 0;
}

#carousel-track {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

#carousel-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari y Opera */
}

/* =======================================
   Q R 
======================================= */

.qr-section {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.qr-card {
  margin-top: -8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  width: 306px; /* 🟩 Fuerza ancho igual */
  height: 193px; /* 🟩 Fuerza alto igual */
}

.qr-card:hover {
  transform: translateY(-3px);
}

.qr-card img {
  width: 140px;
  height: auto;
  margin-bottom: -1rem;
}

.qr-card p {
  margin: 0;
  font-weight: bold;
  color: white;
  font-size: 1.5rem; /* 🔁 más seguro que 3rem */
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Colores */
.light-green {
  background-color: #c0ff4d;
}

.dark-green {
  background-color: #00b94f;
}

/* =======================================
  DATES SECTION
======================================= */

.dates__intro {
  text-align: center;
  padding: 2rem 1rem;
}

.dates__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0rem;
  margin-bottom: -3rem;
}

.dates__divider hr {
  flex: 2.5;
  height: 1px;
  background-color: #1a3d2c;
  border: none;
  position: relative;
  z-index: 0;
}

.divider__parrot {
  margin-top: 4rem;
  width: 297px;
  height: auto;
  margin-bottom: 80px; /* 👈 Sube el loro para que las líneas coincidan con las alas */
  z-index: 1;
}

.dates__title {
  color: #1a3d2c;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.dates__subtitle {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
  margin: 0;
}

.dates__info-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 2rem;
}

.dates__info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 900px;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
}

.dates__locations {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 280px;
  flex: 1;
}

.dates__location {
  background-color: transparent;
  padding: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
}

.dates__location.active {
  background-color: #fff6d6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-weight: bold;
  color: #1a3d2c;
}

.dates__map {
  max-width: 500px;
  width: 100%;
  height: 250px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex: 1;
}

.calendar-button-wrapper {
  width: 100%;
  text-align: center;
  margin-top: 7rem;
}

.calendar-button {
  display: inline-block;
  background-color: #b5fd47;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  color: #1a3d2c;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
}

.calendar-button:hover {
  background-color: #a0eb3c;
}

/* =======================================
   CONTACT SECTION
======================================= */
/* Título */

/* Formulario */

.contact__header {
  text-align: left;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
}

.title-highlight {
  color: #9eff6d;
  font-weight: bold;
  font-size: 1.8rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15); /* Sombra suave */
}

.title-bold {
  color: #1a3d2c;
  font-weight: 800;
  font-size: 1.8rem;
}

.contact__card {
  background-image: url("../img/Rectangle\ 8972.png"); /* Asegúrate que esté en img/ o cambia el path */
  background-size: cover;
  background-position: center;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  margin: auto;
  backdrop-filter: blur(6px);
  background-color: rgba(255, 255, 255, 0.3); /* efecto translúcido */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__row {
  display: flex;
  gap: 1rem;
}

.contact__row input {
  flex: 1;
}

.contact__form input,
.contact__form textarea {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
}

.contact__form textarea {
  resize: none;
  min-height: 100px;
}

/* Botón */
.contact__form button {
  background-color: #91e74b;
  border: none;
  padding: 0.5rem 1.5rem;
  font-weight: bold;
  color: #1c1c1c;
  border-radius: 6px;
  cursor: pointer;
  width: fit-content;
  align-self: center;
  transition: all 0.3s ease;
}

.contact__form button:hover {
  background-color: #7ed63f;
}

/* =======================================
   FOOTER
======================================= */
.custom-footer {
  background-color: #a4f656;
  padding: 2rem 1rem 1rem;
  text-align: center;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1.5rem;
}

.footer__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  color: #1a3d2c;
  font-size: 0.85rem;
  text-decoration: none;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer__social img {
  width: 22px;
  height: auto;
}

.footer__logo {
  width: 40px;
}

.footer__credits {
  margin-top: 1rem;
  font-size: 0.7rem;
  color: #333;
}

.footer__scalex {
  height: 14px;
  vertical-align: middle;
  margin-left: 4px;
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background-color: #a4f656;
  color: #1a3d2c;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.scroll-to-top:hover {
  background-color: #90e14b;
}

/* ======================================
  RESPONSIVE  
====================================== */

/* HEADER AND HOME */
@media (max-width: 1024px) {
  .header__container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .header__nav {
    justify-content: center;
  }

  .header__nav .nav__list {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .header__logo img {
    max-height: 50px;
  }
}

@media (max-width: 768px) {
  .header__nav .nav__list {
    gap: 1rem;
    font-size: 0.95rem;
  }

  .home__menu-button {
    left: 50%;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .home__menu-button {
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .header__nav .nav__list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .header__container {
    padding: 0 1rem;
  }
}

/* ABOUT US */
@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: -3rem;
  }

  .about__subtitle,
  .about__title,
  .about__text {
    text-align: center;
  }

  .about__image {
    margin-top: 0rem;
  }
}
/* QR */

@media (max-width: 600px) {
  .qr-section {
    flex-direction: column;
    align-items: center;
  }

  .qr-card {
    width: 200px;
  }
}

/* ==============================
   RESPONSIVE COMPLETO
============================== */

/* PRODUCTS */
@media (max-width: 1024px) {
  .product {
    flex: 0 0 calc(33.333% - 0.75rem);
  }
}

@media (max-width: 768px) {
  .products__headings {
    padding: 1rem;
  }

  .product {
    flex: 0 0 calc(50% - 0.75rem);
  }

  .carousel-arrow-img.left {
    left: -20px;
  }

  .carousel-arrow-img.right {
    right: -20px;
  }
}

@media (max-width: 480px) {
  .product {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  .divider__parrot {
    margin-top: -1rem; /* ✅ Más arriba */
    margin-bottom: 2rem; /* ✅ Menor separación inferior */
    width: 220px; /* (opcional) más pequeño para encajar mejor en móviles */
  }
}

/* DATES */
@media (max-width: 768px) {
  .dates__info {
    flex-direction: column;
    align-items: center;
  }

  .dates__locations {
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .dates__map {
    max-width: 100%;
  }
}

/* CONTACT */
@media (max-width: 768px) {
  .contact__row {
    flex-direction: column;
  }

  .contact__form button {
    width: 100%;
  }
}

/* FOOTER */
@media (max-width: 768px) {
  .footer__content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__links {
    justify-content: center;
  }
}

/* NAV MENU TOGGLER */
@media (max-width: 768px) {
  .header__nav {
    flex-direction: column;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: 100px;
  }

  .header__nav.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a3d2c;
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    z-index: 1001;
  }
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
}

/* ✅ Botón móvil: aparece sobre el About */
.home__menu-button.mobile-version {
  display: none;
  margin: 3rem auto 2rem;
  text-align: center;
  width: fit-content;
  background-color: #a4f656;
  color: #1c3a24;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  border: 2px solid #1c3a24;
  text-decoration: none;
}

/* ✅ Botones QR versión móvil */
.qr-buttons-mobile {
  display: none;
}

@media (max-width: 768px) {
  /* Oculta imágenes QR y muestra botones */
  .qr-section {
    display: none;
  }

  .qr-buttons-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: -5rem; /* antes estaba en 2rem */
    margin-bottom: 2rem;
  }

  .qr-button {
    width: 240px; /* ✅ Mismo ancho para ambos */
    padding: 1rem;
    background-color: #a4f656;
    color: #1a3d2c;
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
    text-align: center;
  }

  .qr-button:hover {
    background-color: #90e14b;
  }
}

@media (max-width: 768px) {
  .home__menu-button.mobile-version {
    position: static;
    display: block;
    margin: 2rem auto;
    transform: none;
  }
}

/* ✅ Mostrar solo en escritorio */
.desktop-version {
  display: inline-block;
}

.mobile-version {
  display: none;
}

/* ✅ Mostrar solo en móviles */
@media (max-width: 768px) {
  .desktop-version {
    display: none;
  }

  .mobile-version {
    display: inline-block;
  }
}
@media (max-width: 768px) {
  .header {
    padding: 0rem 0; /* 🔽 Reduce la altura del header solo en móvil */
  }

  .header__logo img {
    margin-top: 0.1rem;
    max-height: 30px; /* 🔽 Opcional: reduce el tamaño del logo */
  }
  .header__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 1;
  }

  .header__logo img {
    max-height: px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-toggle span {
    width: 26px;
    height: 3px;
    background-color: #1a3d2c;
    transition: all 0.3s ease;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fcffec;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
  }

  .header__nav.open {
    max-height: 300px;
  }

  .nav__list {
    flex-direction: column;
    padding: 1rem 0;
    text-align: center;
    gap: 1.5rem;
  }
}

/* Animación general de fade */
[data-animate] {
  opacity: 0;
  transition: all 0.6s ease;
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Animación específica por tipo */
[data-animate="fade-up"] {
  transform: translateY(30px);
}
[data-animate="fade-right"] {
  transform: translateX(-30px);
}
[data-animate="typewriter"] {
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #333;
  animation: typing 2s steps(30, end), blink 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #333;
  }
}

[data-animate="type"] {
  opacity: 0;
  transform: translateY(20px);
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: none;
  animation: none;
}

[data-animate="fade"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* Animación tipo escritura más lenta */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.animated-type {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 2.8s steps(40, end) forwards;
}

.animated-fade {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.language-selector {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.language-selector select {
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: white;
  cursor: pointer;
}

/* Mobile: colocar debajo del botón del menú */
@media (max-width: 768px) {
  .language-selector {
    width: 100%;
    margin-top: 10px;
    justify-content: flex-start;
  }

  .language-selector select {
    width: auto;
    margin-left: 10px;
  }

  .header__container {
    flex-wrap: wrap;
  }
}
