@charset "utf-8";

/* --- 1. VARIABLES & RESET --- */
:root {
    --primary: #008f39;
    --text-on-primary: #ffffff;
    --black: #ffffff;
    --overlay: rgba(0, 0, 0, 0.45);
    --dark-gray: #222222;
    --max-width: 1920px;
    --header-h: 72px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--black);
    background: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 2. ANIMACIONES --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- 3. HEADER & NAV --- */
header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: var(--header-h);
    background: var(--primary);
    color: var(--text-on-primary);
    z-index: 1100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Centrado absoluto del logo */
    align-items: center;
    padding: 0 16px;
}

.left-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
}

.menu-toggle {
    background: transparent;
    border: 0;
    color: var(--text-on-primary);
    font-size: 26px;
    cursor: pointer;
    display: none; /* Visible solo en móvil */
    align-items: center;
    justify-content: center;
}


     .logo{
         grid-column: 2 / 3; /* Coloca el logo en la columna central */
         text-align: center;
         justify-self: center; /* Asegura el centrado absoluto */
     }
     .logo img{

        position: absolute;

        height:50px;

        width:auto;

        display:block;

        margin-left: auto;

        margin-right: auto;

        left: 0;

        right: 0;

        top:15%;

        text-align: center;
    
}

/* Navegación Escritorio */
nav.desktop {
    grid-column: 3 / 4;
    display: flex;
    align-items: center;
    gap: 18px;
    justify-self: end;
}

nav.desktop ul {
    list-style: none;
    display: flex;
    gap: .5px;
    align-items: center;
}

nav.desktop a {
    color: var(--text-on-primary);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
}

nav.desktop a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-links a {
    color: var(--text-on-primary);
    font-size: 18px;
}

/* Navegación Móvil */
.mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--primary);
    color: var(--text-on-primary);
    z-index: 1099;
    transform: translateY(-120%);
    transition: transform .28s ease;
    padding: 18px;
    display: none;
}

.mobile-nav.open {
    transform: translateY(0);
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mobile-nav a {
    color: var(--text-on-primary);
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    display: block;
}

/* --- 4. LAYOUT PRINCIPAL --- */
main {
    max-width: var(--max-width);
    margin: calc(var(--header-h) + 20px) auto 40px;
    padding: 0 16px;
    min-height: calc(100vh - var(--header-h) - 120px);
}

footer {
    background: var(--dark-gray);
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    padding: 22px;
    text-align: center;
    margin-top: 28px;
}

/* --- 5. COMPONENTES: HERO SLIDER --- */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto 24px;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
}

.slides {
    display: flex;
    transition: transform 1s ease-in-out;
    will-change: transform;
}

.slide {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    min-height: 220px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay);
    z-index: 1;
}

.slide .caption {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 2;
    text-align: center;
    font-size: 40px;
    line-height: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    padding: 0 12px;
}

.slide .caption small {
    display: block;
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.9;
}

.slide .cta-btn {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 12px 28px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 20px;
    text-decoration: none;
}

.dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.15);
}

.dot.active {
    background: #fff;
}

/* --- 6. COMPONENTES: STACKED HERO & SINGLE HERO --- */
.stacked-hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
}

.hero, .hero-square {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    aspect-ratio: 1/1;
    flex-shrink: 0;
}

/* Estilos compartidos para Single Hero y Hero Square */
.hero img, .hero-square img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero::before, .hero-square::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay);
}

.hero .cta, .hero-square .cta {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 14px 28px;
    border-radius: 10px;
    background: var(--primary); /* Square usa rgba en original, pero unificamos estilo base */
    color: var(--text-on-primary);
    font-size: 28px;
    font-family: 'Bebas Neue', sans-serif;
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    text-align: center;
}

.hero-square .cta {
    background: rgba(0, 0, 0, 0.705);
    border: 1px solid rgba(255, 255, 255, 0.685);
    font-size: 20px;
}

.hero .caption, .hero-square .caption {
    position: absolute;
    left: 16px;
    bottom: 12px;
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    font-size: 16px;
}

/* --- 7. COMPONENTES: TICKER (MARQUESINA) --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #1a1a1a;
    padding-left: 100%;
    box-sizing: border-box;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-name: ticker;
    animation-duration: 25s;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 14px;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
}

.live-dot {
    height: 10px;
    width: 10px;
    background-color: #ff0000;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

/* --- 8. COMPONENTES: ACTIONS CARDS (SUCURSALES) --- */
.actions-cards {
    margin: 40px 0;
}

.actions-cards h2 {
    text-align: center;
    margin-bottom: 18px;
    color: #fff;
    font-size: 32px;
    font-family: 'Bebas Neue', sans-serif;
}

.actions-cards .cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.actions-cards .card {
    background: #111;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    padding: 18px;
    flex: 1 1 300px;
    max-width: 320px;
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.actions-cards .card img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    height: 180px; /* Corregido de 0px en una versión a 180px */
}

.actions-cards .card h3 {
    margin: 0;
    font-size: 24px;
}

.actions-cards .card p {
    font-size: 16px;
    margin-bottom: 0;
}

.actions-cards .card .actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

/* --- 9. COMPONENTES: MENÚ ESTILO UBER EATS --- */
.menu-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #000000;
}

.menu-categories {
    display: flex;
    overflow-x: auto;
    gap: .5rem;
    margin-bottom: 1rem;
}

.menu-categories a {
    flex: 0 0 auto;
    background: #008f39;
    padding: 1rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.menu-categories a:hover {
    background: #006e2d;
}

.menu-section {
    margin-bottom: 2rem;
    color: #fff;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 12px;
}

.menu-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.menu-item h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.menu-item p {
    margin: 0.3rem 0 0;
    font-size: 1rem;
    color: #ccc;
}

/* --- 10. MODALES & BOTONES GENÉRICOS --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal {
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: 92%;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    text-align: center;
}

.modal img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.modal h3 {
    margin-bottom: 8px;
    color: #111;
}

.modal p {
    color: #444;
    margin-bottom: 14px;
}

.actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Bebas Neue', sans-serif;
    text-decoration: none;
}

.btn-cta {
    background: var(--primary);
    color: var(--text-on-primary);
}

.btn-close {
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.08);
    color: var(--black);
}

/* --- 11. MEDIA QUERIES (RESPONSIVE) --- */

/* Tablet y Móvil (max 900px) */
@media (max-width: 900px) {
    nav.desktop {
        display: none;
    }
    
    .menu-toggle {
        display: inline-flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .slide {
        height: 50vh;
    }
    
    .slide .caption {
        font-size: 20px;
    }
    
    .hero-square .cta {
        font-size: 18px;
        padding: 12px 20px;
    }
}

/* Escritorio (min 901px) */
@media (min-width: 901px) {
    .mobile-nav {
        display: none !important;
    }
    
    .menu-toggle {
        display: none;
    }

    .stacked-hero {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 18px;
    }

    .hero-square {
        width: 32%;
        aspect-ratio: 1/1;
    }
}

/* Móvil pequeño (max 600px) */
@media (max-width: 600px) {
    .slide {
        height: 30vh;
    }
    
    .slide .caption {
        font-size: 18px;
    }
}

 /* =========================
   Actions Cards Califícanos
   ========================= */
.actions-cards {
  margin: 40px 0;
}

.actions-cards h2 {
  text-align: center;
  margin-bottom: 18px;
  color: #fff;
  font-size: 32px;
  font-family: 'Bebas Neue', sans-serif;
}

.actions-cards .cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.actions-cards .card {
  background: #111;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  padding: 18px;
  flex: 1 1 300px;
  max-width: 320px;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.actions-cards .card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 0px;
}

.actions-cards .card h3 {
  margin: 0;
  font-size: 24px;
}

.actions-cards .card p {
  font-size: 16px;
  margin-bottom: 0;
}

.actions-cards .card .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.actions-cards .card .btn {
  background: var(--primary);
  color: var(--text-on-primary);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Bebas Neue', sans-serif;
  display: inline-block;
}

 /* =========================
   Actions Cards (Sucursales)
   ========================= */
.actions-cards {
  margin: 40px 0;
}

.actions-cards h2 {
  text-align: center;
  margin-bottom: 18px;
  color: #fff;
  font-size: 32px;
  font-family: 'Bebas Neue', sans-serif;
}

.actions-cards .cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.actions-cards .card {
  background: #111;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  padding: 18px;
  flex: 1 1 300px;
  max-width: 320px;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.actions-cards .card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 180px;
}

.actions-cards .card h3 {
  margin: 0;
  font-size: 24px;
}

.actions-cards .card p {
  font-size: 16px;
  margin-bottom: 0;
}

.actions-cards .card .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.actions-cards .card .btn {
  background: var(--primary);
  color: var(--text-on-primary);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Bebas Neue', sans-serif;
  display: inline-block;
}

/* --- BUTTON BACK TO TOP (FLOTANTE) --- */
.btn-to-top {
  position: fixed; /* Esto lo hace flotante (siempre visible en la ventana) */
  bottom: 30px;    /* Distancia desde abajo en Escritorio */
  right: 30px;     /* Distancia desde la derecha en Escritorio */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary); 
  color: var(--text-on-primary);
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 1098; /* Debajo del Header pero encima del contenido */
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  
  /* Flex para centrar la flecha perfectamente */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Animación de entrada/salida */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

/* Clase activa cuando bajas el scroll */
.btn-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Efecto Hover (Solo escritorio para evitar que se quede pegado en móvil) */
@media (hover: hover) {
  .btn-to-top:hover {
    background: #006e2d; 
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.6);
  }
}

/* --- AJUSTE PARA MÓVIL --- */
@media (max-width: 600px) {
  .btn-to-top {
    bottom: 20px; /* Más cerca del borde para ganar espacio */
    right: 15px;
    width: 45px;  /* Ligeramente más pequeño */
    height: 45px;
    font-size: 20px;
  }
}

#scrollToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #006e2d; /* Color negro discreto */
  color: #fff;
  border-radius: 50%;
  display: flex;       /* Para centrar la flecha */
  align-items: center;  /* Para centrar la flecha */
  justify-content: center; /* Para centrar la flecha */
  text-decoration: none;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Efecto al pasar el mouse */
#scrollToTop:hover {
  background-color: #333;
  color: #fff;
}

/* --- SECCIÓN DE BEBIDAS --- */
.drinks-section {
    padding: 40px 0;
    animation: fadeIn 0.8s ease;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.section-title p {
    color: #ccc;
    font-size: 1.1rem;
}

.drinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.drink-card {
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid #222;
}

.drink-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.drink-image {
    position: relative;
    height: 250px;
}

.drink-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drink-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

.drink-info {
    padding: 20px;
}

.drink-info h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.drink-info p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.4;
    font-family: 'Arial', sans-serif; /* Más legible para descripciones */
}

.drink-tags {
    margin-top: 15px;
    display: flex;
    gap: 8px;
}

.drink-tags span {
    font-size: 0.7rem;
    background: #222;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    border: 1px solid var(--primary);
}

/* Contenedor de las categorías */
.drink-category-section {
    margin-bottom: 50px;
    animation: fadeIn 0.5s ease forwards;
}

.category-title {
    font-size: 2.2rem;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    margin-bottom: 25px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Grid de texto (2 columnas en escritorio, 1 en móvil) */
.text-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    gap: 30px;
}

.text-menu-item {
    border-bottom: 1px dashed #444;
    padding-bottom: 15px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.item-name {
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 1px;
}

.item-price {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: bold;
}

.item-desc {
    font-family: 'Arial', sans-serif; /* Fuente legible */
    color: #aaa;
    font-size: 0.9rem;
    text-transform: none; /* Quitamos las mayúsculas para las descripciones */
}

/* Ajuste para los filtros */
.filter-btn.active {
    background: #fff !important;
    color: var(--primary) !important;
    transform: scale(1.1);
}

/* --- Sección de Galería Dual --- */
.dual-gallery {
    padding: 20px;
    width: 100%;
    max-width: 1200px; /* Ancho máximo para que no se estire demasiado */
    margin: 0 auto;
    box-sizing: border-box;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap; /* Permite que bajen si no caben */
    gap: 20px;       /* Espacio entre imágenes */
    justify-content: center;
}

.gallery-item {
    flex: 1 1 300px; /* Crecen para llenar espacio, base de 300px */
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px; /* Bordes redondeados opcionales */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.img-expandable {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para llenar sin deformar */
    display: block;
    transition: transform 0.3s ease;
}

/* Efecto Hover */
.gallery-item:hover .img-expandable {
    transform: scale(1.05); /* Zoom suave al pasar el mouse */
}

/* --- Estilos del Modal (Lightbox) --- */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 9999; /* Encima de todo */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9); /* Fondo negro semitransparente */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh; /* Que no sea más alta que el 80% de la pantalla */
    object-fit: contain;
    border: 2px solid #fff;
    animation-name: zoom;
    animation-duration: 0.3s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Animación de apertura */
@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* --- Responsive --- */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 95%;
    }
}
