/* =====================================================
   Cafe Macis - Estilos principales
   ===================================================== */

:root {
    --primary: #5C3A1E;
    --primary-light: #7A5A3E;
    --secondary: #F5EDDF;
    --secondary-alt: #FDF8F0;
    --accent-green: #4A6B2A;
    --accent-red: #8B2D2D;
    --text-primary: #3E2A14;
    --text-secondary: #7A6550;
    --whatsapp: #25D366;
    --white: #FFFFFF;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 25px rgba(0,0,0,0.15);
    --radius: 12px;
}

/* ---- Base ---- */
* { box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--secondary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

a {
    color: var(--primary);
    transition: color 0.3s;
}
a:hover {
    color: var(--accent-red);
    text-decoration: none;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.section-padding {
    padding: 70px 0;
}

/* ---- Navbar ---- */
#mainNav {
    background: transparent;
    transition: background-color 0.4s, box-shadow 0.4s;
    padding: 12px 0;
}

#mainNav.scrolled {
    background-color: var(--primary) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

#mainNav .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 15px;
    transition: color 0.3s;
}

#mainNav .nav-link:hover {
    color: var(--white);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: var(--white) !important;
    border-radius: 20px;
    padding: 6px 18px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(37,211,102,0.4);
    color: var(--white) !important;
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(rgba(62,42,20,0.7), rgba(62,42,20,0.7)),
                url('../img/platillos/plato_2.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .lead {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-primary-custom {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-whatsapp-hero {
    background-color: var(--whatsapp);
    color: var(--white);
    border: 2px solid var(--whatsapp);
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-whatsapp-hero:hover {
    background-color: #1da851;
    border-color: #1da851;
    color: var(--white);
}

/* ---- Promociones ---- */
.promociones-section {
    background-color: var(--secondary-alt);
}

.promo-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.promo-card-img {
    width: 100%;
    height: auto;
    display: block;
}

.promo-card-body {
    padding: 0.75rem 1rem;
}

.promo-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.promo-card-text {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
}

/* ---- Sobre Nosotros ---- */
.about-section {
    background-color: var(--white);
}

.about-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.horarios-table {
    width: 100%;
    font-size: 0.95rem;
}

.horarios-table td {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.horarios-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.horarios-table .cerrado {
    color: var(--accent-red);
}

/* ---- Platillos Destacados ---- */
.destacados-section {
    background-color: var(--secondary-alt);
}

.dish-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.dish-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.dish-card-body {
    padding: 20px;
}

.dish-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.dish-card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-red);
}

/* ---- Preview Menu ---- */
.menu-preview-section {
    background-color: var(--white);
}

.nav-pills-custom .nav-link {
    color: var(--primary);
    font-weight: 600;
    border-radius: 30px;
    padding: 8px 20px;
    margin: 0 5px 10px;
    border: 2px solid var(--primary);
    transition: all 0.3s;
}

.nav-pills-custom .nav-link.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.menu-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.menu-preview-item:last-child {
    border-bottom: none;
}

.menu-preview-name {
    font-weight: 600;
    color: var(--text-primary);
}

.menu-preview-price {
    font-weight: 700;
    color: var(--accent-red);
    white-space: nowrap;
}

.btn-ver-menu {
    background-color: var(--primary);
    color: var(--white);
    border-radius: 30px;
    padding: 12px 35px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-ver-menu:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

/* ---- Ensalada Preview ---- */
.ensalada-section {
    background: linear-gradient(135deg, var(--accent-green), #3a5520);
    color: var(--white);
}

.ensalada-section h2 {
    color: var(--white);
}

.ensalada-img {
    border-radius: 50%;
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 5px solid rgba(255,255,255,0.3);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-ensalada {
    background-color: var(--white);
    color: var(--accent-green);
    border-radius: 30px;
    padding: 12px 35px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-ensalada:hover {
    background-color: var(--secondary);
    color: var(--accent-green);
    transform: scale(1.05);
}

/* ---- Ubicacion ---- */
.ubicacion-section {
    background-color: var(--secondary-alt);
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    height: 100%;
}

.info-card i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 30px;
}

/* ---- Contacto ---- */
.contacto-section {
    background-color: var(--white);
}

.contact-card {
    background: var(--secondary-alt);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-card h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-card p, .contact-card a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---- Footer ---- */
.site-footer {
    background-color: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 20px;
}

.footer-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-slogan {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    opacity: 0.8;
}

.footer-title {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-divider {
    border-color: rgba(255,255,255,0.15);
    margin: 30px 0 15px;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.6;
    margin: 0;
}

/* ---- Boton flotante WhatsApp ---- */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 9999;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,0.6);
    color: var(--white);
}

/* ---- Animaciones ---- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    #mainNav {
        background-color: var(--primary) !important;
    }
    .navbar-collapse {
        padding: 15px 0;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero .lead {
        font-size: 1.05rem;
    }
    .hero-logo {
        width: 120px;
        height: 120px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section-padding {
        padding: 50px 0;
    }
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    .ensalada-img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 575px) {
    .whatsapp-float {
        bottom: 70px;
        left: 15px;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
}
