﻿/* Variables de paleta de colores de La Esquina del Buen Comer */
:root {
    --brand-primary: #e67e22; /* Naranja logo */
    --brand-secondary: #8b2612; /* Rojo logo */
    --brand-cream: #fdf5e6;
}

/* Navbar */
.navbar-logo {
    height: 50px;
    width: auto;
}

#mainNav.navbar-scrolled {
    background-color: rgba(139, 38, 18, 0.95) !important;
    transition: background-color 0.3s ease;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/IndexDriveThru.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.text-shadow {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

/* Botones */
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

    .btn-primary:hover {
        background-color: var(--brand-secondary);
        border-color: var(--brand-secondary);
    }

/* Footer */
.footer-logo {
    height: 60px;
    width: auto;
}

/* Imágenes de sección */
.section-image {
    max-width: 100%;
    height: auto;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        height: auto;
        padding: 100px 0;
    }
}

/* --- Estilos para Cards con Imagen de Fondo --- */

/* Clase base para todas las tarjetas con fondo */
.card-with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    color: white; /* Cambiamos el texto base a blanco */
}

/* Capa oscura semi-transparente para asegurar legibilidad del texto */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 0;
}

/* Asegurar que el contenido esté por encima del overlay */
.z-index-1 {
    z-index: 1;
}

/* Efecto hover profesional: la tarjeta sube y la sombra crece */
.card-with-bg:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
}

/* --- Asignación de imágenes específicas a cada clase --- */


/* Ajuste de colores de iconos para que resalten sobre el fondo oscuro */
.card-with-bg .text-primary {
    color: #ff9f43 !important;
}
/* Un naranja más claro */
.card-with-bg .text-danger {
    color: #ff6b6b !important;
}
/* Un rojo más claro */
.card-with-bg .text-success {
    color: #1dd1a1 !important;
}

/* Cards modernas */

.landing-feature-card {
    transition: transform .25s ease, box-shadow .25s ease;
    background: #ffffff;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

    .landing-feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    }

/* Iconos más grandes */

.landing-feature-icon {
    height: 110px;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */

@media (max-width: 768px) {
    .landing-feature-icon {
        height: 80px;
    }
}

/* --- Extensiones para Páginas Legales --- */

.bg-brand-legal {
    background-color: var(--brand-secondary) !important; /* Rojo logo */
}

.text-brand-orange {
    color: var(--brand-primary) !important; /* Naranja logo */
}

.text-brand-red {
    color: var(--brand-secondary) !important; /* Rojo logo */
}

.bg-brand-cream {
    background-color: var(--brand-cream) !important;
}

.border-brand-orange {
    border-color: var(--brand-primary) !important;
}

/* Estilo para los bordes de los títulos de sección */
.border-brand-red {
    border-color: var(--brand-secondary) !important;
}

.card-body p {
    line-height: 1.6;
}

/* Estilos necesarios para la consistencia legal */
.bg-brand-legal {
    background-color: #8b2612 !important;
}

.text-brand-red {
    color: #8b2612 !important;
}

.text-brand-orange {
    color: #e67e22 !important;
}

.bg-brand-cream {
    background-color: #fdf5e6;
}

.border-brand-orange {
    border-color: #e67e22 !important;
}