/*
Theme Name: Sabor a Brasa
Theme URI: https://saborabrasa.cl
Author: Desarrollo Web
Description: Tema personalizado elegante para Sabor a Brasa - Asados Premium
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saborabrasa
Tags: restaurant, grill, catering, landing-page
*/

/* ==========================================
   VARIABLES CSS - PALETA DE COLORES
   ========================================== */
:root {
    /* Colores principales basados en el logo */
    --color-primary: #8B3A3A;        /* Café rojizo */
    --color-secondary: #D4AF37;      /* Amarillo dorado */
    --color-tertiary: #F5E6D3;       /* Crema */
    --color-dark: #1a1a1a;           /* Negro elegante */
    --color-dark-accent: #2d2d2d;    /* Gris oscuro */
    
    /* Colores de acento */
    --color-fire: #FF6B35;           /* Naranja fuego */
    --color-smoke: #4A4A4A;          /* Gris humo */
    --color-white: #ffffff;
    --color-light-bg: #FAF7F2;       /* Fondo claro cálido */
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, #6B2B2B 100%);
    --gradient-fire: linear-gradient(135deg, var(--color-fire) 0%, var(--color-primary) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(26, 26, 26, 0.7) 0%, rgba(26, 26, 26, 0.4) 100%);
    
    /* Tipografía */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Espaciados */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Bordes y sombras */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --box-shadow-hover: 0 8px 30px rgba(139, 58, 58, 0.3);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================
   RESET Y BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.7;
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ==========================================
   TIPOGRAFÍA
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    color: var(--color-smoke);
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-white {
    color: var(--color-white);
}

/* ==========================================
   BOTONES
   ========================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width var(--transition-normal);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--box-shadow);
}

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

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-dark);
    box-shadow: var(--box-shadow);
}

.btn-secondary:hover {
    background: #B89430;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--color-white);
    box-shadow: var(--box-shadow);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

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

/* ==========================================
   CONTENEDORES
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-light {
    background-color: var(--color-light-bg);
}

.section-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* ==========================================
   HEADER Y LOGO
   ========================================== */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-branding a {
    display: block;
    line-height: 0;
    padding: 5px;
}

.custom-logo {
    height: auto;
    width: auto;
    max-height: 65px !important;
    max-width: 170px !important;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.custom-logo:hover {
    transform: scale(1.05);
}

.navbar {
    padding: 12px 0 !important;
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-branding img {
    width: auto !important;
    height: auto !important;
    max-height: inherit !important;
    max-width: inherit !important;
}

.custom-logo[width],
.custom-logo[height] {
    width: auto !important;
    height: auto !important;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes fireFlicker {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.animate-fade-in {
    animation: fadeIn 1s var(--transition-normal) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s var(--transition-normal) forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s var(--transition-normal) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s var(--transition-normal) forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s var(--transition-normal) forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s var(--transition-normal) forwards;
}

/* ==========================================
   UTILIDADES
   ========================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }

/* ==========================================
   HERO SECTION - SOLO LANDING
   ========================================== */

/* El hero solo se aplica cuando existe .landing-page */
.landing-page .hero-section {
    position: relative;
    min-height: 100vh;
    background-image: url('https://saborabrasa.cl/wp-content/uploads/2025/12/LOGO-PERFIL-1.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--color-dark);
    display: flex;
    align-items: center;
}

/* Overlay oscuro */
.landing-page .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Contenido por encima del overlay */
.landing-page .hero-section .container {
    position: relative;
    z-index: 2;
}

/* Título y texto del hero */
.landing-page .hero-title {
    color: var(--color-white);
}

.landing-page .hero-title .highlight {
    color: var(--color-secondary);
}

.landing-page .hero-subtitle {
    color: var(--color-tertiary);
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
}

/* ==========================================
   FOOTER - FIX ENLACES AZULES
   ========================================== */

/* Reset completo de todos los enlaces del footer */
.site-footer a,
.site-footer a:link,
.site-footer a:visited,
.site-footer a:active,
.site-footer a:focus {
    color: var(--color-tertiary) !important;
    text-decoration: none !important;
    transition: all var(--transition-normal);
}

.site-footer a:hover {
    color: var(--color-secondary) !important;
    text-decoration: none !important;
}

/* Enlaces específicos del footer */
.footer-content a,
.footer-widget a,
.footer-menu a,
.footer-contact a,
.footer-info a {
    color: var(--color-tertiary) !important;
    text-decoration: none !important;
}

.footer-content a:hover,
.footer-widget a:hover,
.footer-menu a:hover,
.footer-contact a:hover,
.footer-info a:hover {
    color: var(--color-secondary) !important;
}

/* Enlaces en listas del footer */
.site-footer ul li a,
.site-footer ol li a {
    color: var(--color-tertiary) !important;
    text-decoration: none !important;
}

.site-footer ul li a:hover,
.site-footer ol li a:hover {
    color: var(--color-secondary) !important;
}

/* Footer bottom / Copyright */
.footer-bottom a,
.site-info a,
.copyright a {
    color: var(--color-tertiary) !important;
    text-decoration: none !important;
}

.footer-bottom a:hover,
.site-info a:hover,
.copyright a:hover {
    color: var(--color-secondary) !important;
}

/* Redes sociales */
.social-links a,
.footer-social a {
    color: var(--color-white) !important;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none !important;
    transition: all var(--transition-normal);
}

.social-links a:hover,
.footer-social a:hover {
    background: var(--color-secondary) !important;
    color: var(--color-dark) !important;
    transform: translateY(-3px);
}

/* Asegurar que los íconos también tengan el color correcto */
.site-footer a i,
.site-footer a svg,
.site-footer a .icon {
    color: inherit !important;
}

/* Para widgets de WordPress en el footer */
.site-footer .widget a {
    color: var(--color-tertiary) !important;
    text-decoration: none !important;
}

.site-footer .widget a:hover {
    color: var(--color-secondary) !important;
}

/* Para menús de WordPress en el footer */
.site-footer .menu a,
.site-footer nav a {
    color: var(--color-tertiary) !important;
    text-decoration: none !important;
}

.site-footer .menu a:hover,
.site-footer nav a:hover {
    color: var(--color-secondary) !important;
}

/* FIX ESPECÍFICO PARA ENLACES DE EMAIL Y TELÉFONO */
footer a[href^="mailto:"],
footer a[href^="tel:"],
footer a[href*="@"],
.footer a[href^="mailto:"],
.footer a[href^="tel:"],
.footer a[href*="@"] {
    color: var(--color-secondary) !important;
    text-decoration: none !important;
}

footer a[href^="mailto:"]:hover,
footer a[href^="tel:"]:hover,
.footer a[href^="mailto:"]:hover,
.footer a[href^="tel:"]:hover {
    color: var(--color-tertiary) !important;
    text-decoration: underline !important;
}

/* Reset total de azul en todo el footer */
footer a,
footer a:link,
footer a:visited,
footer a:active {
    color: var(--color-tertiary) !important;
}

footer a:hover {
    color: var(--color-secondary) !important;
}

/* ==========================================
   FOOTER - LOGO MÁS GRANDE Y CENTRADO DERECHA
   ========================================== */

.footer-logo {
    text-align: center;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
}

.footer-logo img,
.footer-logo .custom-logo {
    max-width: 220px !important;
    width: 220px !important;
    height: auto !important;
    display: block;
}

.footer-logo a {
    display: inline-block;
}

/* Centrar texto debajo del logo */
.footer-brand .footer-claim,
.footer-brand .footer-tagline {
    text-align: center;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Desktop grande */
@media (min-width: 1400px) {
    .custom-logo {
        max-height: 70px !important;
        max-width: 185px !important;
    }
    
    .footer-logo img,
    .footer-logo .custom-logo {
        max-width: 240px !important;
        width: 240px !important;
    }
}

/* Desktop normal */
@media (min-width: 1200px) and (max-width: 1399px) {
    .custom-logo {
        max-height: 65px !important;
        max-width: 170px !important;
    }
    
    .footer-logo img,
    .footer-logo .custom-logo {
        max-width: 220px !important;
        width: 220px !important;
    }
}

/* Tablet grande */
@media (max-width: 1199px) {
    .custom-logo {
        max-height: 58px !important;
        max-width: 150px !important;
    }
    
    .footer-logo img,
    .footer-logo .custom-logo {
        max-width: 200px !important;
        width: 200px !important;
    }
    
    .navbar {
        padding: 10px 0 !important;
    }
}

@media (max-width: 1024px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* Tablet */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 3rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
    
    .custom-logo {
        max-height: 50px !important;
        max-width: 130px !important;
    }
    
    .footer-logo {
        justify-content: center;
        padding-right: 0;
    }
    
    .footer-logo img,
    .footer-logo .custom-logo {
        max-width: 180px !important;
        width: 180px !important;
    }
}

/* Móvil */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
    }
    
    .custom-logo {
        max-height: 45px !important;
        max-width: 115px !important;
    }
    
    .footer-logo img,
    .footer-logo .custom-logo {
        max-width: 160px !important;
        width: 160px !important;
    }
}