/*
Theme Name: Cárnicas Vallesol
Theme URI: https://carnicasvallesol.com
Author: Arelance
Author URI: https://arelance.com
Description: Theme profesional para Cárnicas Vallesol - Distribución de jamones, quesos y embutidos en Málaga
Version: 2.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carnicas-vallesol
Tags: food-and-drink, one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, wide-blocks
*/

/* ==========================================
   VARIABLES Y RESET
   ========================================== */
:root {
    --color-primario: #8B0000;
    --color-secundario: #D4A574;
    --color-dorado: #C5A572;
    --color-oscuro: #2C1810;
    --color-claro: #FDF8F3;
    --color-texto: #333333;
    --fuente-titulo: 'Playfair Display', serif;
    --fuente-texto: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-texto);
    color: var(--color-texto);
    line-height: 1.6;
    background: #fff;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   UTILIDADES
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ==========================================
   TIPOGRAFÍA
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--fuente-titulo);
    color: var(--color-oscuro);
    line-height: 1.3;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

/* ==========================================
   BOTONES
   ========================================== */
.btn-primary,
.wp-block-button__link {
    display: inline-block;
    background: var(--color-dorado) !important;
    color: var(--color-oscuro) !important;
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: all 0.3s;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-primary:hover,
.wp-block-button__link:hover {
    background: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-secundario {
    display: inline-block;
    background: #fff;
    color: var(--color-primario);
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-secundario:hover {
    background: var(--color-dorado);
    color: #fff;
    transform: translateY(-3px);
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    background: linear-gradient(135deg, var(--color-oscuro) 0%, #3D251A 100%);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.site-header .wp-block-group {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-logo,
.site-header .wp-block-site-title a {
    font-family: var(--fuente-titulo);
    font-size: 1.8rem;
    color: var(--color-dorado) !important;
    font-weight: 700;
}

/* Navegación */
.wp-block-navigation {
    gap: 30px;
}

.wp-block-navigation a {
    color: #fff !important;
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wp-block-navigation a:hover {
    color: var(--color-dorado) !important;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95) 0%, rgba(139, 0, 0, 0.85) 100%);
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/hero-bg.jpg') center/cover;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 20px;
}

.hero-content h1 span,
.texto-dorado {
    color: var(--color-dorado);
}

.hero-badges {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.badge {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.badge-number {
    font-family: var(--fuente-titulo);
    font-size: 2.5rem;
    color: var(--color-dorado);
    font-weight: 700;
}

.badge-text {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   SECCIONES
   ========================================== */
.seccion {
    padding: 100px 20px;
}

.seccion-clara {
    background: var(--color-claro);
}

.seccion-oscura {
    background: linear-gradient(135deg, var(--color-oscuro) 0%, #3D251A 100%);
    color: #fff;
}

.seccion-oscura h2,
.seccion-oscura h3 {
    color: #fff;
}

.seccion-roja {
    background: linear-gradient(135deg, var(--color-primario) 0%, #600000 100%);
    color: #fff;
}

.seccion-titulo {
    text-align: center;
    margin-bottom: 60px;
}

.seccion-titulo h2 {
    margin-bottom: 15px;
}

.linea-decorativa {
    width: 80px;
    height: 3px;
    background: var(--color-dorado);
    margin: 0 auto 20px;
}

.seccion-titulo p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   TARJETAS DE VALOR
   ========================================== */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.valor-card {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.valor-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primario), var(--color-dorado));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: #fff;
}

.valor-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.valor-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ==========================================
   TARJETAS DE PRODUCTO
   ========================================== */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.producto-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 280px;
}

.producto-card:hover {
    transform: translateY(-10px);
}

.producto-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.producto-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(44, 24, 16, 0.95));
    padding: 80px 20px 25px;
}

.producto-overlay h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 5px;
}

.producto-overlay p {
    color: var(--color-dorado);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   TESTIMONIOS
   ========================================== */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonio-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
}

.testimonio-card::before {
    content: '"';
    font-family: var(--fuente-titulo);
    font-size: 6rem;
    color: var(--color-dorado);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonio-texto {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonio-autor {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonio-autor img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonio-autor h4 {
    font-size: 1.1rem;
}

.testimonio-autor p {
    color: var(--color-dorado);
    font-size: 0.85rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--color-oscuro);
    color: #fff;
    padding: 80px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--fuente-titulo);
    font-size: 1.8rem;
    color: var(--color-dorado);
    margin-bottom: 20px;
}

.footer-descripcion {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-titulo {
    font-family: var(--fuente-titulo);
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--color-dorado);
}

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

.footer-links li {
    margin-bottom: 12px;
}

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

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

.footer-contacto p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.footer-social a:hover {
    background: var(--color-dorado);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ==========================================
   WHATSAPP FLOTANTE
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* ==========================================
   PAGE HEADER (Páginas internas)
   ========================================== */
.page-header {
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95) 0%, rgba(139, 0, 0, 0.9) 100%);
    padding: 180px 20px 100px;
    text-align: center;
    position: relative;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumb {
    margin-top: 20px;
}

.breadcrumb a {
    color: var(--color-dorado);
}

.breadcrumb span {
    color: rgba(255,255,255,0.6);
    margin: 0 10px;
}

/* ==========================================
   FORMULARIOS
   ========================================== */
.form-grupo {
    margin-bottom: 25px;
}

.form-grupo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-oscuro);
    font-size: 0.9rem;
}

.form-grupo input,
.form-grupo select,
.form-grupo textarea,
.wp-block-search__input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0d8d0;
    border-radius: 10px;
    font-family: var(--fuente-texto);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
}

.form-grupo input:focus,
.form-grupo select:focus,
.form-grupo textarea:focus {
    outline: none;
    border-color: var(--color-dorado);
    box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.2);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .valores-grid,
    .testimonios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    
    .valores-grid,
    .productos-grid,
    .testimonios-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .seccion {
        padding: 60px 15px;
    }
}
