
/* ==========================================
   COMBOS EKSEL - ESTILOS GENERALES
========================================== */

:root {
    --azul: #073b83;
    --azul-oscuro: #052b60;
    --azul-claro: #edf4ff;
    --rojo: #e52b39;
    --texto: #202b3c;
    --gris: #64748b;
    --fondo: #f6f8fc;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--fondo);
    color: var(--texto);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.contenedor {
    width: 92%;
    max-width: 1240px;
    margin: auto;
}

/* ==========================================
   BARRA DE ANUNCIO
========================================== */

.barra-anuncio {
    background: var(--rojo);
    color: white;
    text-align: center;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ==========================================
   ENCABEZADO PROFESIONAL
========================================== */

.encabezado {
    background: linear-gradient(
        120deg,
        var(--azul-oscuro),
        var(--azul)
    );
    color: white;
    padding: 22px 0;
    box-shadow: 0 4px 18px rgba(5, 43, 96, 0.14);
}

.header-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* LOGO */

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -0.7px;
    line-height: 1.15;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo span {
    color: #ffcf35;
}

/* BUSCADOR */

.buscador {
    display: flex;
    flex: 1;
    width: 100%;
    max-width: 510px;
    min-width: 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.buscador input {
    width: 100%;
    min-width: 0;
    padding: 14px 17px;
    border: none;
    border-radius: 0;
    background: white;
    color: var(--texto);
    outline: none;
}

.buscador input::placeholder {
    color: #8993a4;
}

.buscador:focus-within {
    outline: 3px solid rgba(255, 207, 53, 0.45);
}

.buscador button {
    flex-shrink: 0;
    background: var(--rojo);
    border: none;
    color: white;
    padding: 0 23px;
    font-weight: bold;
    transition: background 0.2s ease;
}

.buscador button:hover {
    background: #c91e2c;
}

/* ACCIONES DE USUARIO */

.header-acciones {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    font-size: 14px;
}

.enlace-cuenta,
.enlace-carrito {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9px;
    color: white;
    font-weight: bold;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.enlace-cuenta:hover,
.enlace-carrito:hover {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
}

.enlace-carrito {
    background: rgba(255, 255, 255, 0.08);
}

#contador-carrito {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 3px 6px;
    background: var(--rojo);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

/* ==========================================
   NAVEGACIÓN
========================================== */

.navegacion {
    background: var(--azul-oscuro);
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-contenido {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 0;
}

.nav-contenido a {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.nav-contenido a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffcf35;
}

/* ==========================================
   HERO PRINCIPAL
========================================== */

.hero {
    background: linear-gradient(
        115deg,
        #073b83,
        #0879d4
    );
    color: white;
    overflow: hidden;
}

.hero-contenido {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    min-height: 410px;
    gap: 40px;
    padding: 60px 0;
}

.etiqueta {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #ffdc64;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #ffdb58;
}

.hero p {
    font-size: 17px;
    max-width: 540px;
    margin-bottom: 30px;
}

.boton-rojo {
    display: inline-block;
    background: var(--rojo);
    color: white;
    padding: 14px 25px;
    border-radius: 7px;
    font-weight: bold;
    transition: background 0.2s ease;
}

.boton-rojo:hover {
    background: #c91e2c;
}

.hero-decoracion {
    display: flex;
    justify-content: center;
}

.circulo {
    width: 280px;
    height: 280px;
    background: #ffffff22;
    border: 2px solid #ffffff55;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 90px;
}

.circulo span {
    font-size: 22px;
    font-weight: bold;
}

/* ==========================================
   BENEFICIOS
========================================== */

.beneficios {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 25px 0;
    font-size: 14px;
    text-align: center;
}

/* ==========================================
   SECCIONES
========================================== */

.seccion {
    padding: 60px 0;
}

.titulo-seccion {
    margin-bottom: 28px;
}

.subtitulo {
    color: var(--rojo);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.titulo-seccion h2 {
    color: var(--azul);
    font-size: 29px;
    margin-top: 5px;
}

/* ==========================================
   CATEGORÍAS
========================================== */

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.categoria {
    background: white;
    border-radius: 12px;
    padding: 35px 15px;
    text-align: center;
    box-shadow: 0 4px 15px #0000000a;
    transition: transform 0.2s ease;
}

.categoria:hover {
    transform: translateY(-5px);
}

.categoria span {
    font-size: 45px;
}

.categoria h3 {
    margin-top: 12px;
    font-size: 18px;
}

.categoria-imagen {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 12px;
}

/* ==========================================
   PRODUCTOS
========================================== */

.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.producto-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 18px #0000000d;
    transition: transform 0.2s ease;
}

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

.producto-imagen {
    position: relative;
}

.producto-imagen img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.producto-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--rojo);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
}

.producto-info {
    padding: 20px;
}

.producto-categoria {
    color: var(--gris);
    font-size: 12px;
    margin-bottom: 7px;
}

.producto-info h3 {
    font-size: 17px;
    margin-bottom: 12px;
}

.producto-precio {
    font-size: 23px;
    font-weight: bold;
    color: var(--rojo);
    margin-bottom: 18px;
}

.boton-carrito {
    width: 100%;
    background: var(--azul);
    color: white;
    padding: 13px;
    border: none;
    border-radius: 7px;
    font-weight: bold;
    transition: background 0.2s ease;
}

.boton-carrito:hover {
    background: #0059b5;
}

/* PRODUCTOS SIN IMAGEN */

.sin-imagen {
    height: 210px;
    background: #eaf1fb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 55px;
    color: #073b83;
}

.sin-imagen span {
    font-size: 13px;
}

/* PRECIOS */

.precio-anterior {
    color: #8993a4;
    text-decoration: line-through;
    font-size: 13px;
    margin-bottom: 10px;
}

/* INVENTARIO */

.stock-disponible {
    color: #16803c;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 12px;
}

.stock-agotado {
    color: #dc2626;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 12px;
}

.boton-carrito:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* ==========================================
   BANNER INFERIOR
========================================== */

.banner-secundario {
    background: var(--azul);
    color: white;
    text-align: center;
    padding: 65px 20px;
}

.banner-secundario h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.banner-secundario p {
    margin-bottom: 25px;
}

/* ==========================================
   FOOTER
========================================== */

footer {
    background: #041e43;
    color: white;
    padding-top: 50px;
}

.footer-contenido {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 45px;
}

footer h3,
footer h4 {
    margin-bottom: 15px;
}

footer p {
    color: #c8d4e5;
    font-size: 14px;
    margin-bottom: 8px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #ffffff20;
    padding: 20px;
    font-size: 12px;
    color: #c8d4e5;
}

/* ==========================================
   CUENTAS DE CLIENTES
========================================== */

.auth-contenedor {
    max-width: 520px;
    margin: 0 auto;
    background: white;
    padding: 38px;
    border-radius: 14px;
    box-shadow: 0 5px 25px #00000012;
}

.auth-contenedor h1 {
    color: #073b83;
    font-size: 28px;
    margin-bottom: 12px;
}

.auth-descripcion {
    color: #64748b;
    margin-bottom: 28px;
}

.auth-formulario {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.campo-formulario label {
    display: block;
    font-weight: bold;
    margin-bottom: 7px;
    font-size: 14px;
}

.campo-formulario input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d4dce8;
    border-radius: 7px;
    outline: none;
}

.campo-formulario input:focus {
    border-color: #073b83;
}

.campo-formulario small {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 6px;
}

.campo-formulario ul {
    padding-left: 18px;
}

.boton-auth {
    background: #073b83;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 7px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.boton-auth:hover {
    background: #0056b3;
}

.auth-enlace {
    text-align: center;
    margin-top: 24px;
}

.auth-enlace a {
    color: #073b83;
    font-weight: bold;
}

.error-formulario {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
}

.datos-cuenta {
    background: #edf4ff;
    border-radius: 9px;
    padding: 22px;
    margin: 25px 0;
}

.datos-cuenta p {
    margin-bottom: 12px;
}

.form-cerrar-sesion {
    margin-top: 20px;
}

/* ==========================================
   DISEÑO RESPONSIVE - TABLETS
========================================== */

@media (max-width: 1100px) {

    .header-contenido {
        gap: 15px;
    }

    .logo {
        font-size: 23px;
    }

    .header-acciones {
        gap: 8px;
        font-size: 13px;
    }

    .enlace-cuenta,
    .enlace-carrito {
        padding: 9px 10px;
    }
}

@media (max-width: 900px) {

    .encabezado {
        padding: 18px 0;
    }

    .header-contenido {
        flex-wrap: wrap;
        row-gap: 16px;
    }

    .buscador {
        order: 3;
        max-width: none;
        flex-basis: 100%;
    }

    .header-acciones {
        margin-left: auto;
    }

    .hero-contenido {
        grid-template-columns: 1fr;
    }

    .hero-decoracion {
        display: none;
    }

    .productos-grid,
    .categorias-grid,
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   DISEÑO RESPONSIVE - CELULARES
========================================== */

@media (max-width: 550px) {

    .contenedor {
        width: 94%;
    }

    .barra-anuncio {
        padding: 9px 12px;
        font-size: 12px;
    }

    .encabezado {
        padding: 15px 0;
    }

    .header-contenido {
        gap: 12px;
    }

    .logo {
        font-size: 21px;
        letter-spacing: -0.5px;
    }

    .header-acciones {
        gap: 6px;
        font-size: 12px;
    }

    .enlace-cuenta,
    .enlace-carrito {
        min-height: 38px;
        padding: 7px 8px;
        gap: 4px;
        border-radius: 7px;
    }

    #contador-carrito {
        min-width: 21px;
        height: 21px;
        font-size: 11px;
    }

    .buscador {
        border-radius: 8px;
    }

    .buscador input {
        padding: 12px;
        font-size: 14px;
    }

    .buscador button {
        padding: 0 15px;
        font-size: 13px;
    }

    .nav-contenido {
        gap: 4px;
        padding: 8px 0;
        font-size: 13px;
    }

    .nav-contenido a {
        padding: 8px 10px;
        font-size: 12px;
    }

    .hero-contenido {
        min-height: 330px;
        padding: 45px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 15px;
    }

    .productos-grid {
        grid-template-columns: 1fr;
    }

    .footer-contenido {
        grid-template-columns: 1fr;
    }

    .auth-contenedor {
        padding: 24px 18px;
    }
}

/* ==========================================
   CELULARES MUY PEQUEÑOS
========================================== */

@media (max-width: 380px) {

    .header-contenido {
        justify-content: center;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    .header-acciones {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .buscador {
        margin-top: 2px;
    }
}
