/* Reseteo universal: elimina margenes y rellenos por defecto
   del navegador y aplica box-sizing border-box a todo. */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* html: define 16px como base para que 1rem = 16px.
   Esta es la unica declaracion en px permitida, ya que
   no es una medida de maquetacion sino la raiz de la
   escala rem. */
html {
    font-size: 16px;
}


body {
    font-family: 'Roboto', 'Arial', sans-serif;
    background-color: #F0F4FA;
    color: #1A1A2E;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Tamaños base de titulos */
h1 { font-size: 2rem;   font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif; }
h2 { font-size: 1.6rem; font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif; }
h3 { font-size: 1.2rem; font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif; }
h4 { font-size: 1rem;   font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif; }
p  { font-size: 0.95rem; line-height: 1.75; }

a {
    color: #1A3A6B;
    text-decoration: none;
}
a:hover {
    color: #E8B84B;
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}




.cabecera {
    background-color: #0A1628;
    color: #ffffff;
    padding: 1.2rem 3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.25rem solid #E8B84B;
}

.cabecera-logo h1 {
    color: #ffffff;
    font-size: 2rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

/* dorado en la "I" del nombre EI Sport */
.cabecera-logo h1 span {
    color: #E8B84B;
}

.cabecera-logo p {
    color: #8BA8C8;
    font-size: 0.82rem;
    margin-top: 0.2rem;
    letter-spacing: 0.04rem;
}


.cabecera-badge {
    background-color: #E8B84B;
    color: #0A1628;
    font-size: 0.78rem;
    font-weight: bold;
    padding: 0.4rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06rem;
    font-family: 'Oswald', Arial, sans-serif;
}



.menu-nav {
    background-color: #0F2340;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
}

/* Cada enlace del menu ocupa su propio bloque clickeable */
.menu-nav a {
    color: #C8D8EC;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.07rem;
    padding: 0.85rem 1.4rem;
    display: block;
    border-bottom: 0.2rem solid transparent;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover del enlace: fondo mas oscuro y borde dorado */
.menu-nav a:hover {
    background-color: #0A1628;
    color: #ffffff;
    border-bottom: 0.2rem solid #E8B84B;
    text-decoration: none;
}

/* Clase .activo: resalta la pagina actual en el menu.*/
.menu-nav a.activo {
    background-color: #E8B84B;
    color: #0A1628;
    font-weight: bold;
    border-bottom: 0.2rem solid #0A1628;
}


/* Linea dorada delgada debajo del menu.*/

.franja {
    height: 0.25rem;
    background-color: #E8B84B;
}



.contenedor {
    max-width: 70rem;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 2rem 3.5rem;
    flex: 1;
}



.hero {
    background-color: #0A1628;
    color: #ffffff;
    text-align: center;
    padding: 4.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 0.25rem solid #E8B84B;
}

.hero h2 {
    color: #ffffff;
    font-size: 2.4rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    margin-bottom: 0.8rem;
}

/* Palabra destacada en el hero */
.hero h2 span {
    color: #E8B84B;
}

.hero p {
    color: #A8C0D8;
    font-size: 1.05rem;
    max-width: 38rem;
    margin-bottom: 0.5rem;
}

/* Boton de llamada a la accion dentro del hero */
.hero .boton-hero {
    display: inline-block;
    margin-top: 1.5rem;
    background-color: #E8B84B;
    color: #0A1628;
    padding: 0.85rem 2.2rem;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.07rem;
    font-weight: bold;
    text-decoration: none;
    border: 0.15rem solid #E8B84B;
    transition: background-color 0.25s ease;
}

.hero .boton-hero:hover {
    background-color: #ffffff;
    color: #0A1628;
    text-decoration: none;
}



.titulo-seccion {
    border-left: 0.35rem solid #E8B84B;
    padding-left: 0.9rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.titulo-seccion h2,
.titulo-seccion h3 {
    color: #0A1628;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.titulo-seccion p {
    color: #4A5A7A;
    font-size: 0.92rem;
    margin-top: 0.3rem;
}


/* Bloques de contenido con borde superior de color.*/

.tarjeta {
    background-color: #ffffff;
    border: 0.06rem solid #D0DCF0;
    border-top: 0.25rem solid #1A3A6B;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tarjeta h3 {
    color: #0A1628;
    margin-bottom: 0.6rem;
}

.tarjeta p {
    color: #3A4A5E;
    font-size: 0.93rem;
}



.fila-tarjetas {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.fila-tarjetas .tarjeta {
    flex: 1 1 18rem;
    margin-bottom: 0;
}


/* Bloque especial con fondo azul marino para destacar
   los productos en descuento.*/

.ofertas {
    background-color: #0A1628;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
}

.ofertas .titulo-seccion h2 {
    color: #E8B84B;
}

.ofertas .titulo-seccion p {
    color: #8BA8C8;
}

/* Fila de tarjetas de oferta */
.ofertas-fila {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Cada tarjeta de oferta: fondo azul mas claro con borde dorado */
.oferta-card {
    background-color: #0F2340;
    border: 0.06rem solid #2A4A7B;
    border-top: 0.3rem solid #E8B84B;
    padding: 1.5rem;
    flex: 1 1 18rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.oferta-card h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.oferta-card p {
    color: #8BA8C8;
    font-size: 0.88rem;
    flex: 1;
    margin-bottom: 0.8rem;
}

/* Precios dentro de la tarjeta de oferta */
.oferta-precios {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

/* Precio anterior tachado */
.precio-antes {
    color: #5A7A9A;
    font-size: 0.88rem;
    text-decoration: line-through;
}

/* Precio con descuento en dorado y mas grande */
.precio-oferta {
    color: #E8B84B;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
}

/* Badge de porcentaje de descuento */
.descuento-badge {
    background-color: #E8B84B;
    color: #0A1628;
    font-size: 0.78rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    font-family: 'Oswald', Arial, sans-serif;
}


/* Bloque con fondo gris claro para reseñas de clientes.*/

.testimonios {
    background-color: #E8EEF8;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
}

.testimonios .titulo-seccion h2 {
    color: #0A1628;
}

/* Fila de tarjetas de testimonio */
.testimonios-fila {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Cada testimonio: fondo blanco con borde izquierdo dorado */
.testimonio-card {
    background-color: #ffffff;
    border: 0.06rem solid #C8D8EC;
    border-left: 0.3rem solid #E8B84B;
    padding: 1.5rem;
    flex: 1 1 18rem;
    display: flex;
    flex-direction: column;
}


.testimonio-card .resena {
    color: #3A4A5E;
    font-style: italic;
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Nombre y datos del cliente */
.testimonio-autor {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    border-top: 0.06rem solid #D0DCF0;
    padding-top: 0.8rem;
}

.testimonio-autor .iniciales {
    background-color: #1A3A6B;
    color: #ffffff;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonio-autor .datos p {
    font-size: 0.85rem;
    color: #1A1A2E;
    margin: 0;
}

.testimonio-autor .datos .ciudad {
    color: #5A7A9A;
    font-size: 0.78rem;
}

/* Estrellas de puntuacion */
.estrellas {
    color: #E8B84B;
    font-size: 1rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.1rem;
}




.estadisticas {
    background-color: #1A3A6B;
    padding: 2rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    flex: 1 1 10rem;
}

.stat-numero {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 2.5rem;
    color: #E8B84B;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    color: #A8C0D8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.07rem;
}



.grid-productos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.producto-card {
    background-color: #ffffff;
    border: 0.06rem solid #D0DCF0;
    border-top: 0.2rem solid #0A1628;
    padding: 1.2rem 1.2rem 1.5rem;
    flex: 1 1 17rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Numero de dorsal decorativo en la esquina */
.producto-card::before {
    content: attr(data-dorsal);
    position: absolute;
    top: -0.8rem;
    right: -0.3rem;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 4rem;
    font-weight: bold;
    color: #F0F4FA;
    z-index: 0;
    line-height: 1;
}

.producto-card > * {
    position: relative;
    z-index: 1;
}

/* Imagen del producto con altura fija en rem */
.producto-card img {
    width: 100%;
    height: 11rem;
    object-fit: contain;
    background-color: #F8FAFF;
    border: 0.06rem solid #D0DCF0;
    margin-bottom: 0.9rem;
    transition: transform 0.3s ease;
}

.producto-card h4 {
    color: #0A1628;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.producto-meta {
    font-size: 0.7rem;
    color: #6A7A9A;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    border-bottom: 0.06rem solid #D0DCF0;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.producto-desc {
    font-size: 0.86rem;
    color: #3A4A5E;
    line-height: 1.55;
    margin-bottom: 0.5rem;
    flex: 1;
}

.producto-detalle {
    font-size: 0.8rem;
    color: #5A6A8A;
    margin-bottom: 0.2rem;
}

/* Badge de precio en dorado */
.producto-precio {
    margin-top: 0.8rem;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: #0A1628;
    background-color: #FDF3D8;
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border: 0.06rem solid #E8B84B;
}

/* Hover de tarjeta de producto */
.producto-card:hover {
    transform: translateY(-0.4rem) scale(1.02);
    border-color: #E8B84B;
    box-shadow: 0 0.9rem 1.6rem rgba(10, 22, 40, 0.18);
}

.producto-card:hover img {
    transform: scale(1.06);
}



.galeria {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.galeria-item {
    flex: 1 1 16rem;
    background-color: #ffffff;
    border: 0.06rem solid #D0DCF0;
    border-top: 0.2rem solid #1A3A6B;
    padding: 0.6rem;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.galeria-item img {
    width: 100%;
    height: 12rem;
    object-fit: contain;
    background-color: #F8FAFF;
}

.galeria-item p {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #4A5A7A;
    font-family: 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
}

.galeria-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(10, 22, 40, 0.15);
    transform: translateY(-0.25rem);
}



.tabla-contenedor {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

th, td {
    border: 0.06rem solid #C8D8EC;
    padding: 0.7rem 0.85rem;
    text-align: left;
}

th {
    background-color: #0A1628;
    color: #ffffff;
    font-family: 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.05rem;
}

tr:nth-child(even) {
    background-color: #F0F4FA;
}


/* 16. FORMULARIOS */

.form-contenedor {
    background-color: #ffffff;
    border: 0.06rem solid #D0DCF0;
    border-top: 0.25rem solid #0A1628;
    padding: 2rem;
}

.form-contenedor label {
    display: block;
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    color: #0A1628;
    font-size: 0.9rem;
}

.form-contenedor input[type="text"],
.form-contenedor input[type="email"],
.form-contenedor input[type="tel"],
.form-contenedor input[type="date"],
.form-contenedor select,
.form-contenedor textarea {
    width: 100%;
    padding: 0.6rem;
    border: 0.06rem solid #B0C4DC;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.92rem;
    background-color: #F8FAFF;
}

.form-contenedor input:focus,
.form-contenedor select:focus,
.form-contenedor textarea:focus {
    border-color: #E8B84B;
    background-color: #ffffff;
    outline: none;
}

.form-contenedor input[type="submit"] {
    margin-top: 1.5rem;
    background-color: #1A3A6B;
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.8rem;
    font-family: 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.form-contenedor input[type="submit"]:hover {
    background-color: #E8B84B;
    color: #0A1628;
}

.fila-radio label {
    display: inline-block;
    font-weight: normal;
    margin-right: 1.2rem;
    margin-top: 0.4rem;
    color: #1A1A2E;
}

.nota-legal {
    background-color: #FDF3D8;
    border: 0.06rem solid #E8B84B;
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
    margin-bottom: 1.4rem;
}



.fila-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.fila-info .col-texto {
    flex: 1 1 25rem;
}

.fila-info .col-texto p {
    margin-bottom: 0.8rem;
}

.fila-info .col-imagen {
    flex: 1 1 16rem;
}

.fila-info .col-imagen img {
    width: 100%;
    border: 0.06rem solid #D0DCF0;
}



.boton {
    display: inline-block;
    background-color: #E8B84B;
    color: #0A1628;
    padding: 0.8rem 1.8rem;
    font-family: 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    border: 0.06rem solid #E8B84B;
    text-decoration: none;
    transition: background-color 0.25s ease;
}

.boton:hover {
    background-color: #0A1628;
    color: #E8B84B;
    text-decoration: none;
}

.centrado {
    text-align: center;
    margin-top: 1.5rem;
}


/* 19. PIE DE PAGINA (div.pie) */

.pie {
    background-color: #0A1628;
    color: #8BA8C8;
    padding: 1.5rem 3rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 0.25rem solid #E8B84B;
}

.pie p {
    font-size: 0.85rem;
    margin: 0;
}

.pie a {
    color: #E8B84B;
    font-size: 0.85rem;
}

.pie a:hover {
    color: #ffffff;
    text-decoration: underline;
}


.separador {
    border: none;
    border-top: 0.06rem solid #C8D8EC;
    margin: 2rem 0;
}


.precio-tag {
    background-color: #FDF3D8;
    color: #0A1628;
    font-weight: bold;
    padding: 0.25rem 0.6rem;
    border: 0.06rem solid #E8B84B;
    font-size: 0.88rem;
}
