/* ---------------------------
   RESETEO GENERAL
----------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f5f5f5;
    overflow-x: hidden;
}

/* ---------------------------
   BURBUJAS ANIMADAS
----------------------------*/
.burbujas {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.burbuja {
    position: absolute;
    width: 55px;
    height: 55px;
    background-size: contain;
    background-repeat: no-repeat;
    animation: flotar 12s linear infinite;
    opacity: 0.7;
}

@keyframes flotar {
    0% { transform: translateY(120vh); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-20vh); opacity: 0; }
}

/* ---------------------------
   HEADER
----------------------------*/
.site-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    padding: 10px 0;
    z-index: 1000;
}

.header-inner {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO + NOMBRE */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 55px;
    width: 55px;
    object-fit: contain;
    border-radius: 10px;
}

.brand-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

/* NAV */
.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}

.main-nav a:hover {
    color: #ff7a00;
}

/* ---------------------------
   BOTÓN MENÚ MÓVIL
----------------------------*/
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
}

.menu-icon {
    width: 28px;
    height: 3px;
    background: #333;
}

/* ---------------------------
   HERO
----------------------------*/
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    margin-top: 80px;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mobile-img {
    display: none !important;
}

@media(max-width: 768px){
    .hero-video { display: none; }
    .hero-mobile-img { display: block; }
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    top: 0;
    left: 0;
}

.hero-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 10;
}

.hero-inner h1 {
    font-size: 2.5em;
}

.btn.primary {
    background: #25d366;
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
    font-weight: bold;
    transition: 0.3s;
}

.btn.primary:hover {
    background: #1ea955;
}

/* ---------------------------
   SECCIONES
----------------------------*/
.section {
    padding: 80px 20px;
    text-align: center;
}

.cards {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* ---------------------------
   NUESTROS SERVICIOS CON EFECTO DE COLOR
----------------------------*/
.card {
    width: 260px;
    padding: 25px;
    background: white;
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
    position: relative;
    perspective: 800px;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-12px) scale(1.08) rotateX(10deg) rotateY(6deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.card img {
    width: 90px;
    margin-bottom: 15px;
}

/* Colores específicos por servicio */
.card:nth-child(1):hover {
    /* Productos frescos - Verde */
    filter: drop-shadow(0 0 15px rgba(40, 167, 69, 0.7));
}

.card:nth-child(2):hover {
    /* Envíos rápidos - Azul */
    filter: drop-shadow(0 0 15px rgba(0, 123, 255, 0.7));
}

.card:nth-child(3):hover {
    /* Atención personalizada - Naranja */
    filter: drop-shadow(0 0 15px rgba(255, 152, 0, 0.7));
}

/* ---------------------------
   OFERTAS SEMANALES CON EFECTO DE COLOR
----------------------------*/
.ofertas-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.oferta-icon {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
    position: relative;
    perspective: 800px;
    cursor: pointer;
}

.oferta-icon img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    object-fit: contain;
}

/* Hover 3D con glow */
.oferta-icon:hover {
    transform: translateY(-12px) scale(1.08) rotateX(10deg) rotateY(6deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Colores específicos por categoría */
.oferta-icon:nth-child(1):hover {
    /* Fiambres - Rojo */
    filter: drop-shadow(0 0 15px rgba(220, 53, 69, 0.7));
}

.oferta-icon:nth-child(2):hover {
    /* Bebidas - Azul */
    filter: drop-shadow(0 0 15px rgba(0, 123, 255, 0.7));
}

.oferta-icon:nth-child(3):hover {
    /* Elaborados de Granja - Naranja */
    filter: drop-shadow(0 0 15px rgba(255, 152, 0, 0.7));
}

.oferta-icon:nth-child(4):hover {
    /* Helados - Celeste/Rosa */
    filter: drop-shadow(0 0 15px rgba(255, 105, 180, 0.7));
}

.oferta-icon:nth-child(5):hover {
    /* Panchos y Hamburguesas - Amarillo/Marrón */
    filter: drop-shadow(0 0 15px rgba(255, 193, 7, 0.7));
}

.promo-text {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

/* ---------------------------
   BOTONES FLOTANTES
----------------------------*/
.float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    right: 20px;
    border-radius: 50%;
    padding: 10px;
    background: white;
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: 0.3s;
}

.float-btn img {
    width: 38px;
}

.float-btn:hover {
    transform: scale(1.1);
}

.whatsapp {
    bottom: 90px;
}

.instagram {
    bottom: 20px;
}

/* ---------------------------
   RESPONSIVE (MÓVIL)
----------------------------*/
@media (max-width: 768px) {

    .logo-img {
        height: 60px;
        width: 60px;
    }

    .brand-name {
        font-size: 1.2em;
    }

    .main-nav {
        position: absolute;
        top: 80px;
        right: 0;
        background: white;
        width: 60%;
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        display: none;
    }

    .main-nav.open {
        display: flex;
    }

    .menu-btn {
        display: flex;
    }

    .hero {
        height: 60vh;
    }

    .whatsapp {
        bottom: 110px;
        right: 15px;
    }

    .instagram {
        bottom: 40px;
        right: 15px;
    }

    .oferta-icon {
        width: 140px;
        height: 140px;
    }

    .oferta-icon img {
        width: 65px;
        height: 65px;
    }
}

/* ---------------------------
   HORARIOS (ANIMACIONES MEJORADAS)
----------------------------*/
.horario-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

/* Animación de entrada */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.horario-item {
    background: white;
    width: 260px;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: 0.4s ease;
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

/* Glow + 3D */
.horario-item:hover {
    transform: scale(1.07) rotateX(6deg) rotateY(6deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25), 0 0 20px rgba(255,165,0,0.4);
}

.horario-item img {
    width: 70px;
    margin-bottom: 10px;
    transition: 0.3s;
}

/* Pulsito del icono al pasar */
.horario-item:hover img {
    transform: scale(1.15);
}

.horario-item h3 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: #333;
}

.horario-item p {
    font-size: 1.1em;
    color: #555;
}

/* ---------------------------
   NOSOTROS ULTRA 3D
----------------------------*/
.nosotros-section {
    padding: 90px 20px;
    text-align: center;
    background: #ffffff;
    position: relative;
}

.nosotros-title {
    font-size: 2.8em;
    font-weight: 900;
    margin-bottom: 50px;
    color: #333;
    text-shadow: 0 0 25px rgba(255,165,0,0.4);
    animation: fadeUp 1.2s ease-out forwards;
    opacity: 0;
}

.nosotros-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* --- TARJETA 3D --- */
.nosotros-card {
    width: 280px;
    background: white;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: 0.3s ease-out;
    position: relative;
    perspective: 800px;
    animation: fadeUp 1.2s ease forwards;
    opacity: 0;
}

/* Glow exterior */
.nosotros-card::before {
    content: "";
    position: absolute;
    top: -5px; left: -5px;
    right: -5px; bottom: -5px;
    border-radius: 27px;
    background: linear-gradient(45deg, #ff7a00, #ffd27f, #ffae00);
    filter: blur(25px);
    opacity: 0;
    transition: 0.5s;
    z-index: -1;
}

/* Hover 3D extremo */
.nosotros-card:hover {
    transform: scale(1.08) rotateX(12deg) rotateY(12deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.nosotros-card:hover::before {
    opacity: 1;
}

/* ICONO ANIMADO */
.nosotros-icon {
    font-size: 65px;
    color: #ff7a00;
    margin-bottom: 20px;
    animation: iconFloat 4s ease-in-out infinite, iconSpin 8s linear infinite;
}

/* Flotación suave */
@keyframes iconFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Rotación 3D */
@keyframes iconSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* TITULO TARJETA */
.nosotros-card h3 {
    font-size: 1.5em;
    margin-bottom: 12px;
    color: #333;
    text-shadow: 0 0 10px rgba(255,165,0,0.3);
}

/* TEXTO */
.nosotros-card p {
    font-size: 1.1em;
    color: #555;
}

/* --- Ajustes para móvil en la sección Nosotros --- */
@media (max-width: 768px) {

    .nosotros-container {
        gap: 15px;
        padding: 0 10px;
    }

    .nosotros-card {
        padding: 18px;
        transform: scale(0.92);
        border-radius: 18px;
    }

    .nosotros-card h3 {
        font-size: 1.2rem;
    }

    .nosotros-card p {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .nosotros-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

}

/* PAGOS */
#pagos {
    text-align: center;
    padding-top: 40px;
}

.pagos-container {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Tarjetas de pago */
.pago-item {
    background: white;
    padding: 25px;
    border-radius: 22px;
    width: 230px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
    text-align: center;
    cursor: pointer;
    perspective: 800px;
}

/* Icono principal (Efectivo / MP) */
.pago-item > img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Sacamos el ícono de la sección Tarjetas */
.pago-tarjetas > img {
    display: none;
}

/* Logos Visa / Mastercard / Naranja */
.logo-tarjeta {
    width: 65px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 5px;
}

/* Contenedor interno para logos */
.tarjetas-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Logo Mercado Pago */
.logo-mp {
    width: 160px;
    height: auto;
    object-fit: contain;
    margin-top: -10px;
}

/* Hover 3D */
.pago-item:hover {
    transform: translateY(-12px) scale(1.07) rotateX(12deg) rotateY(6deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* Brillos */
.pago-mp:hover {
    filter: drop-shadow(0 0 15px rgba(0,140,255,0.7));
}
.pago-debito:hover,
.pago-tarjetas:hover {
    filter: drop-shadow(0 0 10px rgba(0, 110, 255, 0.6));
}
.pago-credito:hover {
    filter: drop-shadow(0 0 12px rgba(255, 180, 0, 0.6));
}
.pago-efectivo:hover {
    filter: drop-shadow(0 0 12px rgba(0, 255, 90, 0.6));
}

/* Mobile Fix */
@media (max-width: 768px) {
    .pago-item {
        width: 180px;
        padding: 20px;
        transform: scale(0.95);
    }

    .pago-item:hover {
        transform: translateY(-4px) scale(0.97);
    }

    .logo-tarjeta {
        width: 55px;
    }

    .logo-mp {
        width: 130px;
    }
}

/* CONTACTO */
.contacto-box {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    flex-wrap: wrap;
}

html {
    scroll-behavior: smooth;
}


.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.contact-link img {
    width: 70px;
    height: 70px;
    margin-bottom: 8px;
}

.contact-link:hover {
    transform: scale(1.1);
}

/* --------------------------
   TITULO 3D + ANIMACIÓN
   -------------------------- */
h1 {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1.05;
    margin: 0 0 24px 0;
    text-shadow:
        0 0 10px rgba(0,255,197,0.9),
        0 0 20px rgba(0,255,197,0.7),
        0 3px 0 #00c2a7,
        0 6px 0 #009f85,
        0 9px 0 #007462;
    transform: translateZ(0);
    animation: glow 2.2s infinite ease-in-out;
}

/* sombra del efecto 3D */
h1::after {
    content: "";
    display: block;
    height: 6px;
    width: 100%;
    filter: blur(6px);
    margin-top: 6px;
    opacity: 0.25;
}

/* ANIMACIÓN */
@keyframes glow {
    0% {
        text-shadow:
            0 0 8px rgba(0,255,197,0.7),
            0 0 18px rgba(0,255,197,0.5),
            0 3px 0 #00c2a7,
            0 6px 0 #009f85,
            0 9px 0 #007462;
    }
    50% {
        text-shadow:
            0 0 26px rgba(0,255,197,1),
            0 0 48px rgba(0,255,197,0.9),
            0 4px 0 #00e0c7,
            0 8px 0 #00bfa5,
            0 12px 0 #008f76;
    }
    100% {
        text-shadow:
            0 0 8px rgba(0,255,197,0.7),
            0 0 18px rgba(0,255,197,0.5),
            0 3px 0 #00c2a7,
            0 6px 0 #009f85,
            0 9px 0 #007462;
    }
}

/* --------------------------
   AJUSTES GENERALES PARA TABLETS
   -------------------------- */
@media (max-width: 1100px) {
    h1 { font-size: 40px; }
}

/* --------------------------
   MODO CELULAR — UNA SOLA COLUMNA REAL
   -------------------------- */
@media (max-width: 900px) {

    /* Romper el grid y convertirlo en columna */
    .ofertas-grid {
        display: block !important;
        width: 100% !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }

    .oferta-card {
        display: block !important;
        width: 100% !important;
        max-width: 420px !important;
        margin: 0 auto 30px auto !important;
        box-sizing: border-box !important;
    }

    .oferta-img {
        width: 100% !important;
    }

    /* Título adaptado a móvil */
    h1 {
        font-size: 32px !important;
        margin-bottom: 18px !important;
        letter-spacing: 0.5px !important;
    }

    /* Texto más legible */
    .precio { font-size: 22px !important; }
    p { font-size: 16px !important; line-height: 1.45 !important; }

    /* Botones flotantes */
    .float-btn { width: 50px !important; height: 50px !important; }
    .whatsapp { bottom: 16px !important; right: 16px !important; }
    .instagram { bottom: 82px !important; right: 16px !important; }
}


/* Estilo para el menú de navegación */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: #000;
    margin: 0 15px;
    font-size: 16px;
    text-align: center;
}

.main-nav a:hover {
    color: #f39c12;
}

/* Estilo para los títulos de las secciones */
.section h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    text-transform: uppercase;
}

h2.nosotros-title,
h2.pagos-title {
    font-size: 24px;
    color: #555;
    font-weight: normal;
}

/* Ajuste de márgenes de las tarjetas */
.cards {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #777;
}


/* Estilo para el menú en móvil */
.main-nav {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilo general de los enlaces del menú */
.main-nav a {
    text-decoration: none;
    color: #333;
    margin: 0 20px;
    font-size: 16px;
}

.main-nav a:hover {
    color: #f39c12;
}

/* MENÚ MÓVIL */
@media (max-width: 900px) {
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%);
    }

    .main-nav.open {
        display: flex;
        transform: translateY(0);
    }

    .main-nav a {
        margin: 10px 0;
    }

    .menu-btn {
        display: block;
        background-color: transparent;
        border: none;
        cursor: pointer;
    }

    .menu-btn .menu-icon {
        width: 30px;
        height: 3px;
        background-color: #333;
        margin: 6px 0;
        border-radius: 5px;
    }
}