/* ============================================= */
/* VARIABLES Y ESTILOS GLOBALES         */
/* ============================================= */
:root {
    --color-primario: #0D2A4E;
    --color-secundario: #D9232D;
    --color-acento: #4A90E2;
    --color-fondo: #FFFFFF;
    --color-fondo-claro: #F4F6F8;
    --color-texto: #333333;
    --color-texto-claro: #666666;
    --fuente-principal: 'Inter', sans-serif;
    --header-height: 70px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fuente-principal); background-color: var(--color-fondo); color: var(--color-texto); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-acento); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--color-primario); }
:focus-visible { outline: 2px solid var(--color-acento); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-weight: 700; color: var(--color-primario); line-height: 1.2; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ============================================= */
/* COMPONENTES REUTILIZABLES      */
/* ============================================= */
.btn { display: inline-block; padding: 12px 24px; border-radius: 5px; font-weight: 500; text-align: center; cursor: pointer; transition: all var(--transition-speed) ease; border: none; }
.btn-primary { background-color: var(--color-secundario); color: white; }
.btn-primary:hover { background-color: #A81B23; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.section-padding { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; }

/* ============================================= */
/* HEADER & FOOTER (Sin cambios mayores)     */
/* ============================================= */
.main-header { background-color: var(--color-fondo); border-bottom: 1px solid #E0E0E0; padding: 0 5%; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1000; }
.logo img { height: 45px; }
.main-nav { display: none; }
.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links a { color: var(--color-primario); font-weight: 500; position: relative; padding-bottom: 5px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--color-secundario); transition: width var(--transition-speed) ease; }
.nav-links a:hover::after { width: 100%; }
.header-icons { display: flex; align-items: center; gap: 20px; }
.header-icons a { position: relative; color: var(--color-primario); }
.cart-icon .cart-count { position: absolute; top: -8px; right: -10px; background-color: var(--color-secundario); color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 0.7rem; display: flex; justify-content: center; align-items: center; font-weight: bold; }
.mobile-menu-toggle { display: block; cursor: pointer; background: none; border: none; font-size: 1.5rem; color: var(--color-primario); }
.main-footer { background-color: var(--color-primario); color: #E0E0E0; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
.footer-column h4 { color: var(--color-fondo); margin-bottom: 15px; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul a { color: #B0C4DE; }
.footer-column ul a:hover { color: var(--color-fondo); text-decoration: underline; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #2A4A6E; font-size: 0.9rem; }

/* ============================================= */
/* NUEVOS COMPONENTES (Basado en Research) */
/* ============================================= */
/* --- Sellos de Confianza (Trust Badges) --- */
.trust-badges { background-color: var(--color-fondo-claro); padding: 20px 0; }
.trust-badges .container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px; }
.trust-badge { display: flex; align-items: center; gap: 10px; color: var(--color-texto-claro); font-weight: 500; }
.trust-badge img { height: 40px; }

/* --- Acordeón para FAQs --- */
.faq-section { max-width: 800px; margin: 40px auto; }
.faq-item { border-bottom: 1px solid #e0e0e0; }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 20px 0; font-size: 1.1rem; font-weight: 500; color: var(--color-primario); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '\f078'; font-family: "Font Awesome 6 Free"; font-weight: 900; transition: transform var(--transition-speed) ease; }
.faq-item.active .faq-question::after { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-speed) ease-in-out, padding var(--transition-speed) ease-in-out; }
.faq-answer p { padding: 0 0 20px 0; }

/* ============================================= */
/* TABLAS RESPONSIVAS (Carrito y Dashboard) */
/* ============================================= */
.responsive-table { width: 100%; border-collapse: collapse; }
.responsive-table thead { border-bottom: 2px solid var(--color-primario); }
.responsive-table th { text-align: left; padding: 15px 5px; font-size: 0.9rem; color: var(--color-texto-claro); text-transform: uppercase; }
.responsive-table tbody tr { border-bottom: 1px solid #e0e0e0; }
.responsive-table td { padding: 20px 5px; vertical-align: middle; }

/* Mobile-first: Ocultar thead por defecto, se mostrará con data-label */
@media screen and (max-width: 767px) {
    .responsive-table thead { display: none; }
    .responsive-table tr { display: block; margin-bottom: 20px; border: 1px solid #e0e0e0; border-radius: var(--border-radius); padding: 10px; }
    .responsive-table td { display: block; text-align: right; padding: 10px; position: relative; }
    .responsive-table td::before { content: attr(data-label); float: left; font-weight: bold; text-transform: uppercase; font-size: 0.8rem; color: var(--color-texto); }
    .responsive-table .product-cell, .responsive-table .quantity-cell { text-align: left; } /* Ajustes específicos */
}
/* ... (Se mantienen otros estilos de páginas, como tienda.html, etc.) ... */
.page-header { background-color: var(--color-fondo-claro); padding: 30px 0; text-align: center; }
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; }
.breadcrumbs { font-size: 0.9rem; color: var(--color-texto-claro); }
.breadcrumbs a { color: var(--color-texto-claro); }
.breadcrumbs a:hover { color: var(--color-secundario); }

/* ============================================= */
/* RESPONSIVE GENERAL */
/* ============================================= */
@media (min-width: 768px) {
    .mobile-menu-toggle { display: none; }
    .main-nav { display: block; }
    .section-title { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}
@media (min-width: 992px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}