/* --- Variables CSS (Colores y Fuentes) --- */
:root {
    --primary-color: #A00000; /* Rojo oscuro para acentos */
    --secondary-color: #333333; /* Gris oscuro para texto principal */
    --accent-color: #D4AF37; /* Dorado o marrón claro para algunos detalles si se desea */
    --text-light: #f5f5f5; /* Color de texto claro */
    --text-dark: #222222; /* Color de texto oscuro */
    --bg-light: #ffffff; /* Fondo claro */
    --bg-dark: #1a1a1a; /* Fondo oscuro */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 15px;
}

h1 { font-size: 3em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }

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

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Elimina espacio extra debajo de las imágenes */
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* --- Header --- */
.main-header {
    background-color: var(--bg-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo img {
    max-height: 80px; /* Establece una altura máxima, ajusta según el tamaño óptimo de tu logo */
    width: auto;     /* Permite que el ancho se ajuste proporcionalmente */
   /* filter: brightness(0) invert(1); /* Para logos oscuros en fondo oscuro */
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--text-light);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.95em;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after { /* Clase 'active' para la página actual */
    width: 100%;
}

.search-bar {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.search-bar input {
    border: none;
    padding: 8px 10px;
    border-radius: 3px 0 0 3px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-bar button {
    background-color: var(--primary-color);
    border: none;
    padding: 8px 12px;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: var(--accent-color);
}

.menu-toggle {
    display: none; /* Oculto en desktop */
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--text-light);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    background: url('https://carnespremiumlv.com/images/hero-bg.jpg') no-repeat center center/cover; /* Imagen de fondo para el héroe */
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.hero-section::before { /* Overlay oscuro para mejor contraste del texto */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

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

/* --- NUEVO ESTILO AÑADIDO PARA LA IMAGEN DEL TORO --- */
.hero-bull-icon {
    height: 200px; /* Tamaño base para pantallas grandes (escritorio) */
    width: auto;   /* Mantiene la proporción de la imagen */
    margin: 0 auto 0px auto; /* Centra la imagen y añade 20px de margen inferior */
    display: block; /* Asegura que el margen 'auto' funcione correctamente */
    
    /* Sombra que se adapta a la forma del toro */
    filter: drop-shadow(2px 4px 6px rgba(5,5,20,0.7));
}

.hero-content h1 {
    font-size: 4em; /* Tamaño del título principal */
    margin-bottom: 10px;
    color: var(--text-light); /* Color blanco para el título */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* Sombra para mejor lectura */
    font-family: var(--font-heading); /* Usa la fuente de encabezado definida */
    line-height: 1.1; /* Ajuste para el interlineado del h1 */
}

.hero-content p {
    font-size: 1.5em; /* Tamaño del eslogan */
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9); /* Blanco semitransparente para el eslogan */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Sombra para mejor lectura */
    font-family: var(--font-body); /* Usa la fuente de cuerpo definida */
    font-weight: 300; /* Un peso de fuente más ligero para el eslogan */
}

.hero-content .btn-primary {
    background-color: var(--primary-color); /* Rojo oscuro */
    color: var(--text-light); /* Texto blanco */
    border: 2px solid var(--primary-color); /* Borde del mismo color */
    padding: 15px 35px; /* Un poco más de padding para que sea más grande */
    font-size: 1.1em; /* Texto un poco más grande */
}

.hero-content .btn-primary:hover {
    background-color: var(--accent-color); /* Color de acento dorado/marrón al pasar el ratón */
    border-color: var(--accent-color);
    color: var(--text-dark); /* Texto oscuro al pasar el ratón */
}


/* --- Featured Products Section --- */
.featured-products {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

/* ... (el resto de tu CSS sigue igual hasta las media queries) ... */
.featured-products h2 {
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: var(--bg-light);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0;
}

.product-item h3 {
    margin: 20px 0 10px;
    color: var(--secondary-color);
}

.product-item p {
    color: #666;
    padding: 0 20px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.product-item .btn {
    margin-bottom: 20px;
}

/* --- About Us Brief Section --- */
.about-us-brief {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.about-us-brief .about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-us-brief .about-content img {
    flex: 1;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-us-brief .text-content {
    flex: 1;
}

.about-us-brief .text-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-us-brief .text-content p {
    margin-bottom: 25px;
    line-height: 1.8;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

.testimonials-section h2 {
    color: var(--text-light);
    margin-bottom: 40px;
}

.testimonial-carousel {
    display: flex;
    justify-content: center;
    gap: 30px; /* Espacio entre testimonios */
    flex-wrap: wrap; /* Para que se adapten en pantallas pequeñas */
}

.testimonial-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.testimonial-item span {
    font-weight: 700;
    color: var(--accent-color);
}


/* --- Footer --- */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
    font-size: 0.9em;
}

.main-footer .footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.main-footer .widget h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2em;
}

.main-footer .widget ul li {
    margin-bottom: 10px;
}

.main-footer .widget a {
    color: var(--text-light);
}

.main-footer .widget a:hover {
    color: var(--primary-color);
}

.main-footer .copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.main-footer .social-links {
    display: flex;
    gap: 20px; /* Espacio entre los íconos */
    margin-bottom: 15px; /* Espacio antes del handle de Instagram */
}

.main-footer .social-links a {
    font-size: 1.8em; /* Tamaño de los íconos */
    color: var(--text-light);
    transition: color 0.3s ease, transform 0.3s ease;
}

.main-footer .social-links a:hover {
    color: var(--primary-color); /* Color rojo al pasar el ratón */
    transform: scale(1.1); /* Efecto de crecimiento sutil */
}

.main-footer .instagram-handle a {
    color: var(--text-light);
    font-size: 1em;
    font-weight: bold;
}

.main-footer .instagram-handle a:hover {
    color: var(--primary-color);
}

.main-footer .widget .instagram-handle {
    margin-top: 10px; /* Un poco de espacio */
    font-size: 1em;
    color: var(--text-light); /* Color del texto claro */
}


/* --- Responsive Design (Media Queries) --- */
@media (max-width: 992px) {
    .main-nav ul {
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 3.5em;
    }
    .hero-content p {
        font-size: 1.3em;
    }
    .hero-content .btn-primary {
        padding: 12px 30px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
    }
    .main-header .logo {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    .main-header .logo img {
        max-height: 60px;
    }
    .main-nav {
        order: 3;
        flex-basis: 100%;
        margin-top: 15px;
        text-align: center;
    }
    .main-nav ul {
        flex-direction: column;
        display: none;
        width: 100%;
        gap: 10px;
        background-color: var(--bg-dark);
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .main-nav ul.active {
        display: flex;
    }
    .main-nav li {
        width: 100%;
    }
    .main-nav a {
        padding: 10px 0;
        display: block;
    }
    .search-bar {
        order: 2;
        flex-basis: 100%;
        justify-content: center;
        margin: 0;
    }
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 25px;
    }
    .hero-section {
        height: 450px;
    }
    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .hero-content .btn-primary {
        padding: 10px 25px;
        font-size: 0.9em;
    }

    /* --- NUEVO ESTILO AÑADIDO PARA LA ESCALA DEL TORO EN TABLET --- */
    .hero-bull-icon {
        height: 160px;
    }

    .featured-products h2,
    .about-us-brief h2,
    .testimonials-section h2 {
        font-size: 2em;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .about-us-brief .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-us-brief .about-content img {
        width: 80%;
    }
    .testimonial-carousel {
        flex-direction: column;
        align-items: center;
    }
    .main-footer .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .main-footer .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }

    .hero-section {
        height: 350px;
    }
    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .hero-content .btn-primary {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    /* --- NUEVO ESTILO AÑADIDO PARA LA ESCALA DEL TORO EN MÓVIL --- */
    .hero-bull-icon {
        height: 120px;
        margin-bottom: 0px;
    }
}
