/*
Theme Name: Uriagereka Theme
Theme URI: https://huevosuriagereka.com
Description: Tema personalizado para Granja Uriagereka - Huevos frescos desde 1967
Author: Hawkmoon
Author URI: https://hawkmoon.dev
Template: twentytwentyfour
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uriagereka-theme
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ========== VARIABLES GLOBALES ========== */
:root {
    --uriagereka-rojo: #c1282a;
    --uriagereka-rojo-claro: #fb2115;
    --uriagereka-naranja: #d1651a;
    --uriagereka-verde: #4CAF50;
    --uriagereka-verde-oscuro: #2E7D32;
    --uriagereka-dorado: #FFC107;
    --uriagereka-blanco: #ffffff;
    --uriagereka-gris-claro: #f8f8f8;
    --uriagereka-gris: #e8e8e8;
    --uriagereka-negro: #1a1a1a;
    --uriagereka-texto: #333333;
    --uriagereka-texto-claro: #666666;

    --gradient-primary: linear-gradient(135deg, #c1282a 0%, #d1651a 100%);
    --gradient-light: linear-gradient(135deg, #fef9f9 0%, #fff5f0 100%);

    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 25px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* ========== TIPOGRAFÍAS ========== */
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700;800;900&display=swap');

body {
    font-family: "Red Hat Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--uriagereka-texto);
    background-color: var(--uriagereka-blanco);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Red Hat Display", sans-serif;
    font-weight: 700;
    color: var(--uriagereka-negro);
    line-height: 1.2;
    margin-top: 0;
}

p {
    margin-top: 0;
}

a {
    color: var(--uriagereka-rojo);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--uriagereka-naranja);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== HEADER ========== */
.site-header {
    background: var(--uriagereka-blanco);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.site-header .header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.site-logo img {
    max-height: 60px;
    width: auto;
    transition: transform var(--transition-normal);
}

.site-logo:hover img {
    transform: scale(1.02);
}

/* Header Contact/Phone */
.header-contact {
    display: flex;
    align-items: center;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gradient-primary);
    color: #fff !important;
    padding: 0.7rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(193, 40, 42, 0.3);
}

.header-phone i {
    font-size: 0.9rem;
    animation: phone-ring 2s ease-in-out infinite;
}

@keyframes phone-ring {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    50% { transform: rotate(0); }
}

.header-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 40, 42, 0.4);
}

@media (max-width: 900px) {
    .header-contact {
        display: none;
    }
}

/* ========== NAVEGACIÓN ========== */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
    align-items: center;
}

.main-navigation a {
    text-decoration: none;
    color: var(--uriagereka-texto);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
    transition: color var(--transition-normal);
}

.main-navigation a:hover,
.main-navigation a.active,
.main-navigation .current-menu-item a {
    color: var(--uriagereka-rojo);
}

.main-navigation a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
    border-radius: 3px;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

/* ========== MEGA MENU ========== */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-item-has-children > a i {
    font-size: 10px;
    transition: transform var(--transition-normal);
}

.menu-item-has-children:hover > a i {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 650px;
    background: var(--uriagereka-blanco);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
    padding: 0;
    overflow: hidden;
}

.menu-item-has-children:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.mega-menu-section {
    padding: 1.5rem;
    border-right: 1px solid #eee;
}

.mega-menu-section:last-of-type {
    border-right: none;
}

.mega-menu-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--uriagereka-texto-claro);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--uriagereka-rojo);
    display: inline-block;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
    margin-bottom: 4px;
}

.mega-menu-item:hover {
    background: var(--gradient-light);
    transform: translateX(5px);
}

.mega-menu-item::after {
    display: none !important;
}

.mega-menu-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #f5f5f5;
    padding: 5px;
}

.mega-menu-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--uriagereka-negro);
}

.mega-menu-item:hover span {
    color: var(--uriagereka-rojo);
}

.mega-menu-cta {
    grid-column: 1 / -1;
    background: var(--gradient-light);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eee;
}

.mega-menu-cta p {
    margin: 0;
    font-size: 14px;
    color: var(--uriagereka-texto-claro);
}

.main-navigation .mega-menu-btn {
    background: var(--gradient-primary);
    color: #fff !important;
    padding: 10px 10px !important;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.mega-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(193, 40, 42, 0.3);
}

.mega-menu-btn::after {
    display: none !important;
}

/* Mega menu responsive */
@media (max-width: 900px) {
    .mega-menu {
        display: none !important;
    }

    .menu-item-has-children > a i {
        display: none;
    }
}

.nav-cta {
    background: var(--gradient-primary);
    color: var(--uriagereka-blanco) !important;
    padding: 12px 24px !important;
    border-radius: var(--radius-full);
    font-weight: 700 !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(193, 40, 42, 0.3);
}

.nav-cta::after {
    display: none !important;
}

/* ========== BOTONES ========== */
.btn-primary,
.wp-block-button__link {
    background: var(--gradient-primary);
    color: var(--uriagereka-blanco) !important;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(193, 40, 42, 0.25);
}

.btn-primary:hover,
.wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(193, 40, 42, 0.4);
    color: var(--uriagereka-blanco) !important;
}

.btn-secondary {
    background: transparent;
    color: var(--uriagereka-rojo);
    border: 2px solid var(--uriagereka-rojo);
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--uriagereka-rojo);
    color: var(--uriagereka-blanco);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--uriagereka-blanco);
    color: var(--uriagereka-rojo) !important;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ========== SECCIONES ========== */
.section {
    padding: 80px 20px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--uriagereka-texto-claro);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* ========== CARDS ========== */
.card {
    background: var(--uriagereka-blanco);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* ========== PRODUCTOS GRID ========== */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.producto-card {
    background: var(--uriagereka-blanco);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    text-decoration: none;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.producto-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.producto-card:hover img {
    transform: scale(1.05);
}

.producto-card-content {
    padding: 1.75rem;
}

.producto-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--uriagereka-negro);
}

.producto-card p {
    color: var(--uriagereka-texto-claro);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== VALORES/FEATURES ========== */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.valor-card {
    background: var(--uriagereka-blanco);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.valor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.valor-card .icon,
.valor-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--uriagereka-blanco);
}

.valor-card h4,
.valor-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--uriagereka-negro);
}

.valor-card p {
    color: var(--uriagereka-texto-claro);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ========== NOSOTROS ========== */
.nosotros-section {
    background: var(--uriagereka-gris-claro);
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.nosotros-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.nosotros-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--uriagereka-texto-claro);
}

.nosotros-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--uriagereka-gris);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--uriagereka-rojo);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--uriagereka-texto-claro);
    margin-top: 0.25rem;
}

.nosotros-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* ========== CONTACTO ========== */
.contacto-section {
    background: var(--gradient-primary);
    color: var(--uriagereka-blanco);
}

.contacto-section h2 {
    color: var(--uriagereka-blanco);
}

.contacto-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.contacto-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.contacto-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.contacto-icon {
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contacto-data h4 {
    color: var(--uriagereka-blanco);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contacto-data p,
.contacto-data a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contacto-data a:hover {
    color: var(--uriagereka-blanco);
}

/* ========== FOOTER ========== */
.site-footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    color: rgba(255,255,255,0.85);
}

.footer-main {
    padding: 5rem 2rem 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-height: 55px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    color: rgba(255,255,255,0.7);
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

@media (max-width: 600px) {
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.65rem;
}

.footer-col ul a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.footer-col ul a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--uriagereka-rojo);
    position: absolute;
    bottom: -2px;
    left: 0;
    transition: width var(--transition-fast);
}

.footer-col ul a:hover {
    color: #fff;
}

.footer-col ul a:hover::before {
    width: 100%;
}

/* Footer Contact Items */
.footer-contact .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.footer-contact-item:hover .footer-contact-icon {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(193, 40, 42, 0.4);
}

.footer-contact-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.7);
}

.footer-contact-text strong {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
}

.footer-contact-text a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact-text a:hover {
    color: var(--uriagereka-rojo);
}

/* Footer Certifications */
.footer-certifications {
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 2rem;
}

.footer-certifications .footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.certifications-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cert-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.cert-logo {
    height: 27px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.cert-logo-kitdigital {
    height: 45px;
    opacity: 1;
}

.cert-separator {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
}

.cert-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.5rem 2rem;
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

.footer-bottom-left p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal li a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-legal li a:hover {
    color: #fff;
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
    background: var(--uriagereka-gris-claro);
    padding: 1rem 2rem;
    font-size: 0.9rem;
}

.breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumbs a {
    color: var(--uriagereka-texto-claro);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--uriagereka-rojo);
}

.breadcrumbs span {
    color: var(--uriagereka-texto);
}

/* ========== FORMS ========== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--uriagereka-gris);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-normal);
    background: var(--uriagereka-blanco);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--uriagereka-rojo);
    box-shadow: 0 0 0 4px rgba(193, 40, 42, 0.1);
}

/* ========== PAGINATION ========== */
.pagination,
.paginacion {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 0.75rem;
    background: var(--uriagereka-blanco);
    color: var(--uriagereka-texto);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--gradient-primary);
    color: var(--uriagereka-blanco);
}

/* ========== COOKIE CONSENT ========== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.15);
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

#cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex: 1;
    min-width: 300px;
}

.cookie-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.cookie-message h4 {
    font-size: 1.1rem;
    margin: 0 0 0.35rem;
    color: #1a1a1a;
}

.cookie-message p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.cookie-message a {
    color: var(--uriagereka-rojo);
    text-decoration: none;
    font-weight: 600;
}

.cookie-message a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-btn-config {
    background: #f0f0f0;
    color: #333;
}

.cookie-btn-config:hover {
    background: #e0e0e0;
}

.cookie-btn-reject {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
}

.cookie-btn-reject:hover {
    border-color: #999;
    color: #333;
}

.cookie-btn-accept {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(193, 40, 42, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 40, 42, 0.4);
}

/* Cookie Modal */
#cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

#cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.cookie-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

#cookie-modal.show .cookie-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-modal-header h3 i {
    color: var(--uriagereka-rojo);
}

.cookie-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s;
}

.cookie-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.cookie-modal-body {
    padding: 1.5rem;
    max-height: 50vh;
    overflow-y: auto;
}

.cookie-modal-intro {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8f8f8;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.cookie-option-header h4 {
    margin: 0;
    font-size: 1rem;
}

.cookie-badge {
    font-size: 0.7rem;
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

.cookie-option p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Cookie Switch */
.cookie-switch {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cookie-switch input:checked + .cookie-slider {
    background: var(--gradient-primary);
}

.cookie-switch input:checked + .cookie-slider::before {
    transform: translateX(24px);
}

.cookie-switch.disabled .cookie-slider {
    background: #aaa;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #fafafa;
}

/* Settings Button */
#cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(193, 40, 42, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#cookie-settings-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(193, 40, 42, 0.5);
}

/* Cookie responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .cookie-banner-text {
        flex-direction: column;
        align-items: center;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        justify-content: center;
        min-width: auto;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .cookie-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .cookie-option {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-switch {
        align-self: flex-end;
    }
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nosotros-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .site-header .header-container {
        min-height: 70px;
    }

    .site-logo img {
        max-height: 50px;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--uriagereka-blanco);
        box-shadow: var(--shadow-lg);
        padding: 1.5rem;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid var(--uriagereka-gris);
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 1rem 0;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--uriagereka-texto);
    }

    .section {
        padding: 50px 20px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem;
    }

    .nosotros-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .stat-item {
        text-align: center;
        min-width: 100px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .productos-grid,
    .valores-grid {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* ========== MENÚ MÓVIL ========== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--uriagereka-texto);
    padding: 8px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* ========== ANIMACIONES ========== */
@keyframes fadeInUp {
    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);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== UTILIDADES ========== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== WORDPRESS OVERRIDES ========== */
.wp-block-group {
    padding: 0;
}

.wp-site-blocks {
    padding: 0;
}

.entry-content {
    max-width: 100%;
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Fix for TwentyTwentyFour parent theme */
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100%;
}
