:root {
    --yellow: #FFC107;
    --light-red: #E53935;
    --green: #388E3C;
    --dark-gray: #424242;
}

/* Reset y estilos base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    overflow-x: hidden;
}

/* Colores principales */
.bg-primary {
    background-color: var(--green) !important;
}

.btn-primary {
    background-color: var(--green) !important;
    border-color: var(--green) !important;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2E7D32 !important;
    border-color: #2E7D32 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.text-primary {
    color: var(--green) !important;
}

.border-primary {
    border-color: var(--green) !important;
}

/* ===== SECCIÓN PRINCIPAL CON VIDEO ===== */
.cover-container {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Video de fondo */
.cover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Imagen de respaldo */
.backup-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay oscuro */
.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

/* Navbar sobre el video */
.cover-container .navbar {
    background: transparent !important;
    box-shadow: none;
    z-index: 4;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.cover-container .navbar.navbar-scrolled {
    background: rgba(0, 0, 0, 0.329) !important;
    padding: 0.5rem 0;
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.cover-container .navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.cover-container .navbar-nav .nav-link:hover {
    color: var(--yellow) !important;
    background: rgba(255, 255, 255, 0.1);
}

.cover-container .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.5rem;
}

.cover-container .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.2em;
    height: 1.2em;
}

/* Contenido principal sobre el video */
.cover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    padding-top: 100px;
}

.cover-content h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 800;
    line-height: 1.2;
}

.cover-content p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SLIDER DE PUBLICIDAD ===== */
.publicidad-slider .swiper-slide {
    height: auto;
}

.banner-publicidad {
    padding: 1.5rem 0;
    background-size: cover;
    background-position: center;
}

.banner-publicidad h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.banner-publicidad p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ===== CARRUSEL DE PRODUCTOS ===== */
.productos-slider {
    padding: 10px 0 40px;
}

.productos-slider .swiper-slide {
    height: auto;
}

.productos-slider .swiper-pagination {
    bottom: 0;
}

.productos-slider .swiper-pagination-bullet {
    background-color: var(--green);
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.productos-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--green);
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 60px 0;
    scroll-margin-top: 80px;
}

.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--yellow);
    border-radius: 2px;
}

/* ===== PRODUCTOS - CARDS RESPONSIVE ===== */
.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border-radius: 12px !important;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Contenedor de imagen fijo */
.product-img-container {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img-container img {
    transform: scale(1.1);
}

/* Cuerpo de la card */
.product-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-size: 1.25rem;
    min-height: 60px;
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
}

.product-card .card-text {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.price {
    color: var(--green);
    font-weight: bold;
    font-size: 1.25rem;
}

.product-card .btn-success {
    background-color: var(--green) !important;
    border-color: var(--green) !important;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-card .btn-success:hover {
    background-color: #2E7D32 !important;
    border-color: #2E7D32 !important;
    transform: translateY(-2px);
}

/* ===== UBICACIÓN ===== */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    border: none;
}

/* ===== HORARIOS ===== */
.horarios-card .list-group-item {
    border-color: rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    background: transparent;
}

/* ===== DELIVERY ===== */
.delivery-buttons .btn {
    min-width: 200px;
    transition: all 0.3s ease;
}

.delivery-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ===== EVENTOS ===== */
.eventos-card {
    border-radius: 12px;
    overflow: hidden;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-gray);
}

.footer-logo {
    height: 80px;
    width: auto;
}

.social-icon {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* ===== MODALES ===== */
.modal-header {
    border-bottom: 2px solid var(--green);
}

.modal-body img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

/* ===== COTIZACIÓN ===== */
#breakdownQuote {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    max-height: 300px;
    overflow-y: auto;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-total {
    font-weight: bold;
    color: var(--green);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid var(--green);
}

/* ===== BOTÓN DE ORDENA AHORA ===== */
.btn-warning {
    background-color: var(--yellow) !important;
    border-color: var(--yellow) !important;
    color: #000 !important;
}

.btn-warning:hover {
    background-color: #e0a800 !important;
    border-color: #e0a800 !important;
    transform: translateY(-2px);
}

/* ===== MEDIA QUERIES RESPONSIVE ===== */

/* Dispositivos móviles pequeños (portrait) */
@media (max-width: 575.98px) {
    .cover-container {
        height: 100vh;
        min-height: 500px;
    }
    
    .cover-content {
        padding-top: 80px;
    }
    
    .cover-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .cover-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .cover-content .btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .navbar-logo {
        height: 40px;
    }
    
    section {
        padding: 40px 0;
        scroll-margin-top: 60px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .product-img-container {
        height: 180px;
    }
    
    .product-card .card-title {
        font-size: 1.1rem;
        min-height: auto;
    }
    
    .product-card .card-text {
        font-size: 0.95rem;
    }
    
    .price {
        font-size: 1.1rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    .delivery-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .footer-logo {
        height: 60px;
    }
    
    .banner-publicidad {
        padding: 1rem 0;
    }
    
    .banner-publicidad h3 {
        font-size: 1.2rem;
    }
    
    .banner-publicidad p {
        font-size: 1rem;
    }
}

/* Dispositivos móviles (landscape) y tablets pequeñas */
@media (min-width: 576px) and (max-width: 767.98px) {
    .cover-content h1 {
        font-size: 2.5rem;
    }
    
    .product-img-container {
        height: 200px;
    }
    
    .product-card .card-title {
        font-size: 1.15rem;
        min-height: 55px;
    }
    
    .map-container iframe {
        height: 350px;
    }
    
    .productos-slider {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* Tablets (portrait) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .cover-content {
        padding-top: 120px;
    }
    
    .cover-content h1 {
        font-size: 3rem;
    }
    
    .product-img-container {
        height: 200px;
    }
    
    .product-card .card-title {
        font-size: 1.2rem;
        min-height: 60px;
    }
    
    .map-container iframe {
        height: 400px;
    }
}

/* Tablets (landscape) y laptops pequeñas */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .cover-content h1 {
        font-size: 3.5rem;
    }
    
    .product-img-container {
        height: 210px;
    }
    
    .product-card .card-title {
        font-size: 1.2rem;
    }
}

/* Escritorios grandes */
@media (min-width: 1200px) {
    .cover-content h1 {
        font-size: 4rem;
    }
    
    .product-img-container {
        height: 220px;
    }
    
    .product-card .card-title {
        font-size: 1.25rem;
    }
}

/* Altura específica para dispositivos móviles en landscape */
@media (max-height: 600px) and (orientation: landscape) {
    .cover-container {
        height: 120vh;
        min-height: 400px;
    }
    
    .cover-content {
        padding-top: 70px;
    }
    
    .cover-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .cover-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* Para evitar problemas con el navbar en móviles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    .cover-container .navbar-nav .nav-link {
        text-align: center;
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }
    
    .productos-slider {
        padding-bottom: 50px;
    }
}

/* Ajustes para pantallas muy grandes */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .cover-content h1 {
        font-size: 4.5rem;
    }
}

/* Impresión */
@media print {
    .cover-container,
    .navbar,
    .btn,
    iframe,
    footer .social-icon,
    .publicidad-slider,
    .swiper {
        display: none !important;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .product-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}


/* Estilos adicionales para las nuevas secciones */
.payment-method {
    transition: transform 0.3s ease;
}

.payment-method:hover {
    transform: translateY(-5px);
}

.coming-soon {
    position: relative;
    opacity: 0.9;
}

.coming-soon::after {
    content: "PRÓXIMAMENTE";
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 10;
}

.app-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.app-badge:hover {
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-5px);
}

.delivery-platform {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.delivery-platform:hover {
    border-color: #007bff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.payment-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #007bff;
}

@media (max-width: 768px) {
    .payment-icon {
        font-size: 2rem;
    }
    
    .delivery-platform {
        margin-bottom: 20px;
    }
}