/* ==================================================
   RESPONSIVE DESIGN - MODERN COOPERATIVE WEBSITE
   ==================================================

   Esta hoja la cargan **las 12 vistas** del sitio publico, asi que es donde vive
   el sistema tipografico: familia, escala, pesos e interlineados. Definirlo aqui
   evita tener que tocar las doce paginas para cambiar una regla.
   ================================================== */

/* ==================================================
   TIPOGRAFIA: la fuente
   ==================================================

   El sitio declaraba `Poppins` en 30 selectores y **no la cargaba desde ningun
   lado**: no habia `@font-face` ni enlace a Google Fonts, solo un `dns-prefetch`
   suelto en Head.php que no descarga nada. La fuente solo se veia en los equipos
   que la tuvieran instalada; en el resto caia al sans-serif del sistema sin que
   nadie lo notara, y por eso unas vistas se veian en Poppins y otras en Arial.

   Se aloja en el propio sitio (assets/fonts/, subconjunto latin, 38 KB los cinco
   pesos) en vez de enlazar Google Fonts: se ve igual en cualquier equipo, sin una
   peticion a un tercero por visitante y sin depender de que Google responda.

   `font-display: swap` a proposito: el texto se lee desde el primer momento con
   la fuente del sistema y cambia a Poppins al llegar. La alternativa —que el
   texto sea invisible hasta que descargue— es peor con una conexion mala.

   ------------------------------------------------------------------
   Los pesos van en número literal, NUNCA en `var(--peso-*)`
   ------------------------------------------------------------------
   `font-weight` dentro de `@font-face` es un **descriptor**, no una propiedad, y
   los descriptores no admiten `var()`: la especificación solo resuelve custom
   properties sobre elementos, y `@font-face` no lo es.

   Estos cinco bloques declaraban `font-weight: var(--peso-ligero)` …
   `var(--peso-fuerte)`. El navegador descartaba el descriptor y dejaba los cinco
   como `normal`, o sea **cinco caras distintas compitiendo por el mismo peso de
   la misma familia**. Gana la última declarada, así que todo el sitio —cuerpo,
   párrafos, etiquetas— se pintaba con `poppins-700.woff2`. Comprobado en
   navegador el 2026-09-02: `document.fonts` devolvía cinco entradas
   `Poppins w=normal` y una sola cargada.

   Se veía como un sitio entero en negrita, y los `--peso-ligero`/`--peso-medio`
   del resto de las hojas no tenían ningún efecto porque no había cara que
   servirles. Si alguien vuelve a poner `var()` aquí, vuelve el mismo síntoma.
   ================================================== */

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/poppins-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-700.woff2') format('woff2');
}

/* Variables CSS para consistencia */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #1a2947;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-heavy: 0 20px 40px rgba(0,0,0,0.15);
    --border-radius: 10px;
    --transition: all 0.3s ease;

    /* ==================================================
       TIPOGRAFIA: la escala
       ==================================================

       Antes no habia escala: 29 tamaños distintos en rem, mas 7 en px, 4 en pt y
       11 expresiones clamp() sueltas. Los parrafos iban de 0.7rem a 1.5rem segun
       la vista.

       Los pasos no se eligieron por gusto: son los valores que el sitio ya usaba
       con mas frecuencia (1rem 31 veces, 1.5rem 18, 1.1rem 18, 0.875rem 12...),
       redondeados a una progresion regular. Los sueltos se acercan al paso mas
       proximo.
       ================================================== */
    --fuente-base: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

    --texto-xs: 0.75rem;      /* 12px - avisos, etiquetas menores */
    --texto-sm: 0.875rem;     /* 14px - texto secundario */
    --texto-base: 1rem;       /* 16px - cuerpo */
    --texto-md: 1.125rem;     /* 18px - cuerpo destacado */
    --texto-lg: 1.25rem;      /* 20px - entradilla */

    --titulo-4: 1.5rem;       /* 24px */
    --titulo-3: 1.75rem;      /* 28px */
    --titulo-2: 2.25rem;      /* 36px */
    --titulo-1: clamp(2rem, 5vw, 3.5rem);   /* el heroe ya era responsivo */

    --peso-ligero: 300;
    --peso-normal: 400;
    --peso-medio: 500;
    --peso-semi: 600;
    --peso-fuerte: 700;

    /* Sin unidad a proposito: asi se multiplican por el tamaño de cada elemento
       en vez de heredarse en absoluto. Habia cinco interlineados en rem y pt que
       no escalaban con su texto. */
    --interlineado-titulo: 1.2;
    --interlineado-medio: 1.4;
    --interlineado-base: 1.6;
    --interlineado-amplio: 1.8;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-base);
    line-height: var(--interlineado-base);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Los controles de formulario NO heredan `font-family` del documento: el
   navegador les impone la suya. Sin esta regla, cada `<button>` o `<input>` que
   no declare la fuente a mano sale en **Arial 13.33px**, y eso se ve.

   Medido en produccion el 2026-09-02, en `tienda.php`: "Proceder al Pago"
   (`.checkout-btn`) salia en Arial 16 junto a botones en Poppins 14; y los
   `+`/`−` del carrito, el aspa de quitar y el contador del navbar, en Arial
   13.33. Son cinco controles de la misma pantalla con la fuente equivocada.

   Va aqui y no en la hoja de la tienda porque el carrito lateral y el navbar
   son componentes compartidos: el mismo defecto estaba en las doce paginas. */
button,
input,
select,
textarea,
optgroup {
    font-family: inherit;
}

/* ==================================================
   NAVBAR RESPONSIVE
   ================================================== */
/* nav.navbar y no .navbar a secas: contacto.css lleva un Bootstrap 4.3.1 completo
   embebido cuyo propio `.navbar { position: relative }` (contacto.css:4744) se carga
   despues y ganaba por orden, dejando la barra de contacto sin fijar. Al ser el
   elemento un <nav>, esta regla gana por especificidad y no depende del orden. */
nav.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
    max-width: 200px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: var(--peso-medio);
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Estilos para iconos de navegacion */
.search-toggle,
.cart-icon {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
}

.search-toggle:hover,
.cart-icon:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.search-toggle svg,
.cart-icon svg {
    transition: var(--transition);
}

/* Capsula, no un numero suelto pegado al icono. Antes era texto plano de 8x16
   que no se leia como contador. */
.cart-icon #cartCount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--white);
    font-size: var(--texto-xs);
    font-weight: var(--peso-fuerte);
    line-height: 1;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ==================================================
   BUSCADOR EXPANDIBLE
   ================================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 20px;
}

.search-input {
    width: 100%;
    padding: 20px 60px 20px 20px;
    font-size: var(--titulo-4);
    border: none;
    border-radius: var(--border-radius);
    outline: none;
    background: var(--white);
    color: var(--text-color);
    box-shadow: var(--shadow-heavy);
}

.search-input::placeholder {
    color: #999;
}

.search-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-color);
    transition: var(--transition);
}

.search-close:hover {
    color: var(--primary-color);
}

.search-results {
    width: 100%;
    max-width: 600px;
    margin: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--light-bg);
}

.search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: var(--peso-semi);
    color: var(--text-color);
    margin-bottom: 5px;
}

.search-result-description {
    color: #666;
    font-size: var(--texto-sm);
    line-height: var(--interlineado-medio);
}

.search-result-type {
    background: var(--primary-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: var(--texto-sm);
    font-weight: var(--peso-medio);
}

.no-results {
    padding: 30px 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* ==================================================
   HERO SECTION RESPONSIVE
   ================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/hero-fishing.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    font-weight: var(--peso-ligero);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* ==================================================
   PRODUCTS SECTION RESPONSIVE
   ================================================== */
.products-section {
    padding: 80px 20px;
    background: var(--light-bg);
}

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

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 60px;
    color: var(--text-color);
    font-weight: var(--peso-ligero);
}

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

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 30px 20px;
}

.product-name {
    font-size: var(--titulo-4);
    font-weight: var(--peso-medio);
    color: var(--text-color);
    margin-bottom: 15px;
}

.ver-mas-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: var(--peso-medio);
    font-size: var(--texto-base);
    display: block;
    margin: 30px auto 0;
}

.ver-mas-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==================================================
   ARTICLE SECTIONS RESPONSIVE
   ================================================== */
.article-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.article-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.article-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    width: 100%;
}

.article-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    font-weight: var(--peso-ligero);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.article-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: var(--interlineado-amplio);
    max-width: 600px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.abulon-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/Abulon.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.oyster-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/Ostion.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ==================================================
   AWARDS SECTION RESPONSIVE
   ================================================== */
.awards-section {
    padding: 80px 20px;
    background: var(--light-bg);
    text-align: center;
}

.award-content {
    max-width: 800px;
    margin: 0 auto;
}

.award-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 30px;
    color: var(--text-color);
    font-weight: var(--peso-normal);
}

.award-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: var(--interlineado-amplio);
    color: #666;
}

/* ==================================================
   GALLERY RESPONSIVE
   ================================================== */
.gallery-section {
    padding: 80px 20px;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 1;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* ==================================================
   FOOTER RESPONSIVE
   ================================================== */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: var(--texto-lg);
    color: var(--white);
}

.footer-section img {
    max-width: 150px;
    height: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.footer-section img:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.footer-section h4 {
    margin: 20px 0 10px 0;
    font-size: var(--texto-md);
    color: var(--white);
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: var(--interlineado-amplio);
    transition: var(--transition);
    /* `ventas@sociedadcooperativaprogreso.com` es un token de 310 px que no
       parte por ningun lado. Las columnas del pie son `1fr`, o sea
       `minmax(auto, 1fr)`, y su minimo es el `min-content` del contenido: por
       debajo de ~332 px de ventana la pista se hacia mas ancha que la pantalla y
       **las doce paginas** salian con desplazamiento horizontal. */
    overflow-wrap: anywhere;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-description {
    font-style: italic;
    margin-top: 15px;
    font-size: var(--texto-sm);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

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

.footer-legal {
    margin-top: 10px;
    font-size: var(--texto-sm);
}

.footer-legal a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--white);
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: #ccc;
    transition: var(--transition);
}

.social-icon:hover svg {
    fill: var(--white);
}

/* Specific social network colors on hover */
.social-icon.instagram:hover {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-icon.facebook:hover {
    background: #1877f2;
}

/* Hero content improvements */
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 15px;
    font-weight: var(--peso-normal);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 700px;
    margin: 0 auto;
}

/* Section descriptions */
.section-description {
    text-align: center;
    font-size: var(--texto-md);
    color: #666;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: var(--interlineado-base);
}

/* Product descriptions */
.product-description {
    font-size: var(--texto-sm);
    color: #666;
    line-height: var(--interlineado-medio);
    margin-top: 10px;
}

/* Sustainability features */
.sustainability-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 20px;
    background: rgba(44, 90, 160, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature:hover {
    background: rgba(44, 90, 160, 0.15);
    transform: translateY(-5px);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: var(--texto-lg);
}

.feature p {
    font-size: var(--texto-sm);
    color: #666;
    line-height: var(--interlineado-medio);
}

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

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

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

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .hero {
        background-attachment: scroll;
    }
    
    .article-section {
        background-attachment: scroll;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Tablets */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-medium);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Buscador en tablets */
    .search-overlay {
        padding-top: 100px;
    }
    
    .search-input {
        font-size: var(--texto-lg);
        padding: 18px 50px 18px 18px;
    }
    
    .search-results {
        margin: 15px;
        max-height: 350px;
    }
    
    .hero {
        min-height: 500px;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: var(--titulo-2);
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: var(--texto-base);
    }
    
    .section-title {
        font-size: var(--titulo-2);
        margin-bottom: 40px;
    }
    
    .article-title {
        font-size: var(--titulo-2);
    }
    
    .article-content {
        padding: 60px 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .awards-section,
    .products-section,
    .gallery-section {
        padding: 60px 15px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .logo {
        height: 40px;
        max-width: 150px;
    }
    
    .hero {
        min-height: 400px;
        margin-top: 70px;
    }
    
    .hero-content h1 {
        font-size: var(--titulo-4);
        line-height: var(--interlineado-medio);
    }
    
    .hero-content p {
        font-size: var(--texto-sm);
    }
    
    .section-title {
        font-size: var(--titulo-4);
        margin-bottom: 30px;
    }
    
    .article-title {
        font-size: var(--titulo-4);
        line-height: var(--interlineado-titulo);
    }
    
    .article-text {
        font-size: var(--texto-sm);
    }
    
    .article-content {
        padding: 40px 15px;
    }
    
    .product-info {
        padding: 20px 15px;
    }
    
    .product-name {
        font-size: var(--texto-lg);
    }
    
    .ver-mas-btn {
        padding: 10px 25px;
        font-size: var(--texto-sm);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .award-title {
        font-size: var(--titulo-4);
    }
    
    .award-description {
        font-size: var(--texto-sm);
    }
    
    .footer {
        padding: 40px 15px 20px;
    }
    
    .footer-section h3 {
        font-size: var(--texto-md);
    }
    
    .footer-section p {
        font-size: var(--texto-sm);
    }
    
    .awards-section,
    .products-section,
    .gallery-section {
        padding: 40px 10px;
    }
    
    /* Buscador en moviles */
    .search-overlay {
        padding-top: 80px;
    }
    
    .search-container {
        margin: 0 10px;
    }
    
    .search-input {
        font-size: var(--texto-md);
        padding: 15px 45px 15px 15px;
    }
    
    .search-results {
        margin: 10px;
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .search-result-image {
        width: 40px;
        height: 40px;
    }
    
    .search-result-title {
        font-size: var(--texto-sm);
    }
    
    .search-result-description {
        font-size: var(--texto-sm);
    }
    
    .search-result-type {
        font-size: var(--texto-xs);
        padding: 1px 6px;
    }
    
    /* Aqui habia dos reglas para `.cart-sidebar` y `.cart-content` que **nunca
       se aplicaron**: viven dentro de este `@media` que abre mas arriba, y las
       reglas genericas de las lineas 1290 y 1312 vienen DESPUES en el archivo
       con la misma especificidad, asi que ganaban siempre. El ancho del panel lo
       resuelve ahora `width: min(400px, 100vw)` sin media query. */

    /* Footer responsive improvements */
    .footer-section img {
        max-width: 120px;
        padding: 12px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .nav-container {
        padding: 0 5px;
    }
    
    .hero-content h1 {
        font-size: var(--texto-lg);
    }
    
    .section-title {
        font-size: var(--texto-lg);
    }
    
    .article-title {
        font-size: var(--texto-lg);
    }
    
    .products-grid {
        gap: 20px;
    }
    
    .gallery-grid {
        gap: 10px;
    }
    
    /* Buscador en dispositivos muy pequeños */
    .search-overlay {
        padding-top: 70px;
    }
    
    .search-container {
        margin: 0 5px;
    }
    
    .search-input {
        font-size: var(--texto-base);
        padding: 12px 40px 12px 12px;
    }
    
    .search-results {
        margin: 5px;
        max-height: 250px;
    }
    
    .search-result-item {
        padding: 10px 12px;
        gap: 8px;
        flex-direction: column;
        text-align: center;
    }
    
    .search-result-image {
        width: 35px;
        height: 35px;
        align-self: center;
    }
    
    .search-result-title {
        font-size: var(--texto-sm);
    }
    
    .search-result-description {
        font-size: var(--texto-xs);
        display: none; /* Ocultar descripcion en pantallas muy pequeñas */
    }
    
    .no-results {
        padding: 20px 15px;
    }
}

/* ==================================================
   CART SIDEBAR
   ================================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    /* `min()` y no 400px a secas: en un telefono de 390 px el panel salia 10 px
       por fuera de la pantalla. La regla movil que lo corregia (`width: 100vw`)
       esta declarada ANTES en el archivo, dentro del `@media (max-width: 480px)`
       que abre en la linea 1045, asi que esta la pisaba con la misma
       especificidad por venir despues. Con `min()` no hace falta la media query. */
    width: min(400px, 100vw);
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.cart-sidebar:not(.hidden) {
    right: 0;
}

.cart-content {
    padding: 80px 20px 20px;
}

/* El borde iba en `--light-bg` (#f8f9fa) sobre el blanco del panel: **1.05:1**,
   o sea invisible. Es el unico separador entre el titulo y los renglones, y
   entre los renglones y el total. `#dae2ec` da 1.31:1 contra el blanco, que para
   una linea divisoria es lo habitual y se ve; no es texto, asi que no le aplica
   el minimo de 4.5:1. */
.cart-content h3 {
    font-size: var(--titulo-4);
    margin-bottom: 20px;
    color: var(--text-color);
    border-bottom: 2px solid #dae2ec;
    padding-bottom: 10px;
}

.cart-total {
    border-top: 2px solid #dae2ec;
    padding-top: 20px;
    margin-top: 20px;
}

.cart-total p {
    font-size: var(--texto-lg);
    font-weight: var(--peso-fuerte);
    margin-bottom: 15px;
}

/* Alineado con los botones de la tienda el 2026-09-02: es el ultimo paso de la
   misma compra, y salia con otro radio (5 contra 8), otro peso (500 contra 600)
   y sin alto minimo, o sea 48 px por padding en vez de los 44 declarados. */
.checkout-btn {
    width: 100%;
    min-height: 44px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: var(--texto-base);
    font-weight: var(--peso-semi);
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

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

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ==================================================
   PERFORMANCE OPTIMIZATIONS
   ================================================== */
.product-image,
.gallery-image {
    will-change: transform;
}

.product-card,
.gallery-item {
    will-change: transform, box-shadow;
}

/* Aqui habia un .hero::before que "precargaba" ../img/hero-fishing.jpg, un archivo que
   no existe en el repo: daba 404 en cada carga de la portada. Ademas era inutil incluso
   si existiera, porque iba a z-index -1, detras del fondo opaco del propio .hero, que
   una regla posterior fija en Home-Banner-Top.jpg. Retirado el 2026-09-01. */


/* ==================================================
   FOCO VISIBLE
   El sitio no definia ninguno, asi que dependia del contorno por defecto del
   navegador — y contacto.css lo mataba con `outline: none !important`. Medido
   antes de esto: 75 paradas de tabulacion sin ninguna pista visual en las 12
   paginas, 28 de ellas solo en contacto.php.

   Se usa :focus-visible y no :focus para que el contorno salga al navegar con
   teclado y no al hacer clic con el raton, que es lo que llevo a que alguien lo
   quitara de raiz.
   ================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    /* !important a proposito, y es de los pocos sitios donde se justifica: hay
       cuatro copias de Bootstrap y dos plantillas en el arbol, y varias apagan
       el contorno con reglas mas especificas (`.modern-form .form-control:focus`,
       los `outline: none` de productosTienda.css). Sin esto, quedaban 20 paradas
       de tabulacion sin ninguna pista. El indicador de foco no deberia poder
       apagarse por accidente al cambiar un estilo cualquiera. */
    outline: 3px solid #F28123 !important;
    outline-offset: 2px !important;
    /* Anillo de dos tonos, añadido el 2026-09-02.
       El naranja solo da **2.64:1 sobre blanco**, por debajo del 3:1 que pide
       WCAG 1.4.11 para un indicador de foco, y sobre el azul de los botones
       baja a 1.74:1. Con un color único no hay salida: el que contrasta con el
       blanco de la tarjeta no contrasta con el azul del botón.
       La sombra pinta un aro oscuro **por fuera** del contorno (el box-shadow
       exterior se dibuja por debajo, así que el naranja se ve encima y solo
       asoma el borde), de modo que siempre hay un límite de alto contraste sea
       cual sea el fondo. Se conserva el naranja de la marca. */
    box-shadow: 0 0 0 6px rgba(23, 35, 58, 0.9) !important;
    border-radius: 2px;
}

/* Sobre el navbar oscuro de los articulos el naranja se ve, pero el blanco se
   ve mejor y no compite con el color de hover */
.navbar .nav-menu a:focus-visible {
    outline-color: #fff;
}

/* Etiquetas para lectores de pantalla.
   Los cinco campos del formulario de contacto solo tenian `placeholder`, que no
   es un nombre accesible: desaparece al escribir y varios lectores no lo
   anuncian. Se conserva el diseño y se añade la etiqueta de verdad, oculta a la
   vista pero no al lector, y visible en cuanto recibe el foco. */
.solo-lectores {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.solo-lectores:focus,
.solo-lectores:focus-within {
    /* Cuando si se ve, tiene que leerse: el color heredado del formulario daba
       3.95 sobre el fondo de la tarjeta, por debajo del minimo */
    color: #2c3e50;
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Enlace de salto: fuera de la vista hasta que recibe el foco */
.enlace-de-salto {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 2100;          /* por encima del navbar (1000) y del carrito (2000) */
    background: #1a2947;
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    font-weight: var(--peso-semi);
    transition: top 0.15s ease-in-out;
}

.enlace-de-salto:focus {
    top: 0;
    color: #fff;
}
