/* ==================================================================== */
/*                      ESTILOS GLOBALES Y RESET                      */
/* ==================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Winky Rough", sans-serif;
}

html {
    background-color: rgba(15, 114, 184, 0.695);
    backdrop-filter: blur(20px);
}

body {
    padding-top: 110px;
}

/* ==================================================================== */
/*                         FONDO ANIMADO                              */
/* ==================================================================== */
#animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.line {
    position: absolute;
    height: 2px;
    animation-name: moveLeft;
    animation-timing-function: linear;
    animation-iteration-count: 1;
}

@keyframes moveLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-150vw);
    }
}

/* ==================================================================== */
/*                        HEADER Y NAVEGACIÓN                         */
/* ==================================================================== */
.barra-superior {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primario);
    z-index: 1000;
    padding: 20px 0;
    height: auto;
    min-height: 120px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    background-color: rgba(93, 145, 182, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.barra-superior::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    background-size: 200% auto;
    animation: shine 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shine {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.segunda-barra {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 20px;
}

.logo {
    display: block;
    height: 80px;
    margin-right: auto;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px var(--color-blanco));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.2em;
}

.nav-menu li a {
    color: var(--color-blanco);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5em 0.25em;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 0%;
    height: 2px;
    background-color: var(--color-acento);
    transition: width 0.3s ease-in-out;
}

.nav-menu li a:hover {
    color: var(--color-acento);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.boton-nav {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.barra-nav {
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: var(--color-blanco);
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
    left: 6px;
}

.barra-1 {
    top: 8px;
}

.barra-2 {
    top: 18px;
}

.barra-3 {
    top: 28px;
}

.boton-nav.active .barra-1 {
    top: 18px;
    transform: rotate(45deg);
}

.boton-nav.active .barra-2 {
    opacity: 0;
}

.leaflet-control {
    z-index: -10;
}

.boton-nav.active .barra-3 {
    top: 18px;
    transform: rotate(-45deg);
}

.mobile-menu {
    display: block;
    position: absolute;
    top: 65px;
    right: 30px;
    width: 250px;
    background-color: rgba(93, 145, 182, 1);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    padding: 15px 0;
    z-index: 1000;
    transform: scale(0.95) translateY(-10px);
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out, visibility 0.2s;
}

.mobile-menu.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li a {
    display: block;
    color: var(--color-blanco);
    text-decoration: none;
    font-size: 16px;
    padding: 12px 25px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-acento);
}

.navegacion-tienda {
    display: flex;
    align-items: center;
    gap: 25px;
}

.carrito {
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.carrito:hover {
    transform: scale(1.15);
}

.nav-icono img {
    width: 35px;
    height: 35px;
}

.carrito {
    animation-delay: 2.5s;
    -webkit-tap-highlight-color: transparent;
    margin-bottom: 7px;
}

.contador-carrito {
    position: relative;
    margin-top: -41px;
    margin-left: 3px;
    background-color: var(--color-acento);
    color: var(--color-blanco);
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}



.busqueda {
    display: flex;
    align-items: center;
    background: var(--color-fondo-claro);
    border-radius: 50px;
    border: none;
    padding: 5px 10px 5px 20px;
    width: 80%;
    height: 45px;
    transition: width 0.4s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.busqueda:hover,
.busqueda:focus-within {
    background-color: var(--color-blanco);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.entrada {
    background: transparent;
    border: none;
    width: 100%;
    padding-right: 10px;
    outline: none;
    font-size: 15px;
}

.busqueda img {
    width: 28px;
    height: 28px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.busqueda:hover img,
.busqueda:focus-within img {
    opacity: 1;
}

/* ==================================================================== */
/*                      SECCIÓN DE CATEGORÍAS                         */
/* ==================================================================== */
.categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto 5%;
    justify-content: center;
    margin-bottom: 0;
}

.category-card {
    background: rgba(255, 255, 255, 0.283);
    border: 1px solid var(--color-borde);
    border-radius: 8px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    aspect-ratio: 3 / 4;
    flex-basis: calc(12.5% - 20px);
    max-width: calc(12.5% - 20px);
    min-width: 120px;
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.283);
    z-index: 10;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.4);
}

.category-image {
    width: 100%;
    height: 65%;
    padding: 15px;
    object-fit: contain;
    display: block;
}

.category-info {
    padding: 0 15px 15px 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-title {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: bold;
    color: var(--color-texto-principal);
    margin: 0 0 5px 0;
}

.category-count {
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    color: var(--color-primario-oscuro);
    margin: 0;
}

/* ==================================================================== */
/*                     SECCIÓN "SOBRE NOSOTROS"                       */
/* ==================================================================== */
.about-section {
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    color: var(--color-blanco);
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../imagenes/g1034.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.about-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-semitransparente);
    z-index: -1;
    backdrop-filter: blur(10px);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text-content,
.image-collage-container {
    flex: 1;
}

.trusted-by {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-acento);
}

.about-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
}

.highlight-text {
    color: var(--color-acento);
}

.about-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.benefit-item {
    color: yellow;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.benefit-item .fa-check-circle {
    color: var(--color-acento);
}

.cta-area {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* estilos de botones */
.pushable-link {
    position: relative;
    background: transparent;
    padding: 0;
    border: none;
    /* Los enlaces no tienen borde por defecto, pero lo aseguramos */
    cursor: pointer;
    outline-offset: 4px;
    transition: filter 250ms;
    user-select: none;
    touch-action: manipulation;
    text-decoration: none;
    /* ¡MUY IMPORTANTE! Quita el subrayado del enlace */

    /* Añadimos display: inline-block para que se comporte como un bloque */
    display: inline-block;
    -webkit-tap-highlight-color: transparent;
}

.pushable-link .shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: hsl(0deg 0% 0% / 0.25);
    will-change: transform;
    transform: translateY(2px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

.pushable-link .edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(to left,
            hsl(340deg 100% 16%) 0%,
            hsl(340deg 100% 32%) 8%,
            hsl(340deg 100% 32%) 92%,
            hsl(340deg 100% 16%) 100%);
}

.pushable-link .front {
    display: block;
    position: relative;
    padding: 12px 27px;
    border-radius: 12px;
    font-size: 1.1rem;
    color: white;
    /* Aseguramos que el color del texto sea blanco */
    background: hsl(345deg 100% 47%);
    will-change: transform;
    transform: translateY(-4px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

.pushable-link:hover {
    filter: brightness(110%);
    /* Aseguramos que el color del texto no cambie al hacer hover */
    color: white;
}

.pushable-link:hover .front {
    transform: translateY(-6px);
    transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

.pushable-link:active .front {
    transform: translateY(-2px);
    transition: transform 34ms;
}

.pushable-link:hover .shadow {
    transform: translateY(4px);
    transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

.pushable-link:active .shadow {
    transform: translateY(1px);
    transition: transform 34ms;
}

/* Opcional: para quitar el outline azul que aparece al hacer clic en un enlace */
.pushable-link:focus,
.pushable-link:focus:not(:focus-visible) {
    outline: none;
}


/* estilos del boton para el info */
.maritimo .pushable-link .edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(to left,
            hsl(196, 91%, 43%) 0%,
            hsl(207, 79%, 29%) 8%,
            hsl(207, 81%, 28%) 92%,
            hsl(196, 88%, 39%) 100%);
}

.maritimo .pushable-link .front {
    background: hsl(196, 90%, 35%);
}



.shop-now-btn:hover {
    background-color: var(--color-acento);
}

.contact-phone-link {
    color: var(--color-blanco);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-collage-container {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.collage-img {
    position: absolute;
    border: 5px solid var(--color-acento);
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width: 60%;
}

.collage-img:hover {
    transform: scale(1.05) rotate(0deg) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.img-1 {
    top: 0;
    left: 0;
    z-index: 1;
    transform: rotate(-4deg);
}

.img-2 {
    top: 25%;
    left: 20%;
    z-index: 2;
    transform: rotate(2deg);
    width: 65%;
}

.img-3 {
    top: 50%;
    left: 45%;
    z-index: 3;
    transform: rotate(-3deg);
}

/* ==================================================================== */
/*                 SECCIÓN DE OFERTAS PROMOCIONALES                   */
/* ==================================================================== */
.promo-section {
    padding: 40px 20px;
}

.promo-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

.promo-card {
    border-radius: 12px;
    overflow: hidden;
    padding: 30px;
    display: flex;
    position: relative;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.6);
}

.bg-blue {
    background-color: var(--color-primario);
    color: var(--color-blanco);
}

.bg-yellow {
    background-color: var(--color-borde);
    color: var(--color-texto-principal);
}

.card-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    align-items: center;
}

.card-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    padding: 0px;
    overflow: hidden;
    min-height: 250px;
}

.mapa {
    width: 100%;
    height: 100%;
    min-height: 250px;
    border: none;
}

.card-3 {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    flex-direction: column;
}

.card-4 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.card-5 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.promo-text {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-subtitle {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
    color: var(--color-acento);
}

.promo-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.card-5 .promo-text {
    margin-right: 20px;
    width: 300px;
}

.card-5 .promo-image-container {
    width: 200px;
    margin-top: auto;
    margin-bottom: auto;
}

.card-5 .promo-title {
    color: var(--color-blanco);
    font-weight: lighter;
}

.card-4 .promo-title {
    color: var(--color-blanco);
    font-weight: lighter;
}

.card-4 .promo-image-container {
    width: 50px;
    height: 60px;
}

.promo-btn {
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    background-color: var(--color-acento);
    color: var(--color-blanco);
}

.bg-blue .promo-btn {
    background-color: var(--color-acento);
    color: var(--color-blanco);
}

.bg-yellow .promo-btn {
    background-color: #424242;
    color: var(--color-blanco);
}

.promo-image-container {
    flex: 1;
}

.promo-image-container img,
.promo-image-container-full img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.promo-image-container-full {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
}

/* ==================================================================== */
/*                 SECCIÓN DE PRODUCTOS (GENERAL)                     */
/* ==================================================================== */
.seccion-productos {
    width: 100%;
    
    margin: 30px auto;
    padding: 0 20px;
}

.titulo-seccion {
    font-size: 1.8rem;
    font-weight: 700;
    color: black;
    padding-bottom: 10px;
    margin-bottom: 30px;
    border-bottom: 3px solid black;
    text-align: left;
}

.contenedor-tarjetas {
    display: grid;
    gap: 3%;
    grid-template-columns: repeat(5, 1fr);
}

.tarjeta-producto {
    background-color: var(--color-blanco);
    border-radius: 12px;
    overflow: hidden;
    /* ¡CAMBIO 1! La tarjeta ahora es un contenedor flex en columna. */
    display: flex;
    flex-direction: column;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E0E0E0;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.tarjeta-producto:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.5);
}

.imagen-producto-contenedor {
    padding: 20px;
    background-color: #f7f7f7;
}

.imagen-producto-contenedor img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    -webkit-tap-highlight-color: transparent;
}

.info-producto {
    padding: 20px;
    text-align: left;
    border-top: 1px solid #E0E0E0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
}

.nombre-producto {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-decoration: none;
    color: var(--color-primario-claro);
}

.categoria-producto {
    font-size: 0.8rem;
    color: var(--color-texto-secundario);
    margin-bottom: 15px;
    text-decoration: none;
}

.separador-tarjeta {
    border: 0;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    margin: 0 0 15px 0;
}

.precio-producto {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #EAEAEA;
    text-decoration: none;
}

.etiqueta-precio {
    font-size: 0.9rem;
    color: var(--color-primario);
    text-decoration: none;
}

.valor-precio {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primario);
    justify-content: space-between;
    align-items: baseline;
    text-decoration: none;
}

.precio-original {
    text-decoration: line-through;
    color: #999;
    font-weight: normal;
    font-size: 0.9rem;
    margin-right: 8px;
    text-decoration: none;
}



/* ==================================================================== */
/*             SECCIÓN DE DESCUENTOS CON TEMPORIZADOR                 */
/* ==================================================================== */
.seccion-descuentos {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    margin-top: 0px;
}

.contenedor-descuentos {
    display: grid;
    gap: 30px;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: start;
}

.banner-promo {
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    color: var(--color-blanco);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-shadow: 1px 15px 15px rgba(0, 0, 0, 0.648);
    background-color: var(--color-primario);
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 30%), radial-gradient(circle at 80% 70%, rgba(149, 11, 11, 0.36) 0%, transparent 40%);
    background-size: 300px 300px;
}

.contenido-banner {
    z-index: 300;
    align-items: center;
}

.subtitulo-promo {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-acento);
    margin-bottom: 8px;
    z-index: 100;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10%;
}



.titulo-promo {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    animation: palpitar 1.5s infinite;
    text-align: center;
}


@keyframes palpitar {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.precio-promo {
    font-size: 1.1rem;
    font-weight: 500;
}


/* estilo animado de tarjet a*/
.card {
    padding: 40px 30px;
    height: 100%;
    height: 254px;
    background: var(--color-primario-oscuro);
    position: relative;
    place-content: center;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card h2 {
    z-index: 1;
    color: white;
    font-size: 2em;
}

.card::before {
    content: '';
    position: absolute;
    width: 30%;
    height: 160%;
    background-image: linear-gradient(180deg, var(--color-primario-claro), var(--color-acento));
    height: 130%;
    animation: rotBGimg 3s linear infinite;
    transition: all 0.2s linear;
}

@keyframes rotBGimg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.card::after {
    content: '';
    position: absolute;
    
    inset: 5px;
    border-radius: 8px;

    background-color: var(--color-primario); /* Color base principal */
    background-image:
        /* Luz blanca desde arriba a la izquierda */
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.406) 0%, transparent 40%),
        /* Luz de acento desde abajo a la derecha */
        radial-gradient(circle at bottom right, rgba(237, 29, 29, 0.41) 0%, transparent 40%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.fondo-ondas-suaves {
    background-color: #f4f7f6; /* Un color de fondo claro base */
    background-image:
        /* Onda superior */
        radial-gradient(ellipse at 50% 0%, rgba(53, 85, 158, 0.1) 0%, transparent 70%),
        /* Onda inferior */
        radial-gradient(ellipse at 50% 100%, rgba(53, 85, 158, 0.15) 0%, transparent 70%);
    background-repeat: no-repeat;
    background-size: 150% 150px; /* Controla qué tan anchas y altas son las ondas */
    background-position: center top, center bottom;
}




.valor-promo-precio {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-acento);
    margin-top: 5px;
}

.columna-derecha-descuentos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.columna-derecha-descuentos .titulo-seccion{
    font-size: 1.2rem; 
    margin-bottom: 0px;
}

.barra-temporizador {
    background-color: var(--color-acento);
    color: var(--color-blanco);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.6);
}

.segmento-tiempo {
    display: flex;
    flex-direction: column;
}

.numero-tiempo {
    font-size: 2rem;
    font-weight: 700;
}

.etiqueta-tiempo {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.seccion-descuentos .contenedor-tarjetas {
    grid-template-columns: repeat(3, 1fr);
}

/* ==================================================================== */
/*        ENCABEZADO PARA SECCIONES CON ENLACE               */
/* ==================================================================== */
.encabezado-seccion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.encabezado-seccion .titulo-seccion {
    font-size: 1.8rem;
    font-weight: 700;
    color: black;
    padding-bottom: 10px;
    margin-bottom: 0;
    border-bottom: 3px solid black;
    text-align: left;
}

.enlace-ver-mas {
    color: var(--color-primario);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--color-primario);
    padding-bottom: 3px;
    transition: color 0.3s, border-color 0.3s;
}

.enlace-ver-mas:hover {
    color: var(--color-acento);
    border-color: var(--color-acento);
}

/* ==================================================================== */
/*                   SECCIÓN BANNER DE COLECCIÓN                      */
/* ==================================================================== */
.seccion-banner-coleccion {
    width: 100%;
    background-color: var(--color-primario-claro);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.23), rgba(255, 255, 255, 0.23) 1px, transparent 1px, transparent 20px);
    padding: 40px 20px;
    margin: 60px 0;
}

.contenedor-banner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 30px;
}

.banner-imagenes {
    flex: 1;
    max-width: 450px;
}

.banner-imagenes img {
    max-width: 100%;
    height: auto;
}

.banner-contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-blanco);
}

.banner-subtitulo-pequeno {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-acento);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.banner-titulo-principal {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-subtitulo-grande {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-acento);
    margin-bottom: 30px;
}

.banner-boton {
    background-color: var(--color-acento);
    color: var(--color-blanco);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-boton:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* ==================================================================== */
/*                   SECCIÓN DE TESTIMONIOS (VERSIÓN CARRUSEL)        */
/* ==================================================================== */
.seccion-testimonios {
    position: relative;
    padding: 80px 2%;
    background-color: rgba(255, 255, 255, 0.572);
    overflow: hidden;
    text-align: center;
    backdrop-filter: blur(20px);
}

.seccion-testimonios::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image: repeating-radial-gradient(circle at 50% 150%, rgba(255, 255, 255, 0.4) 0, rgba(255, 255, 255, 0.4) 2px, transparent 2px, transparent 40px);
    z-index: 0;
}

.contenedor-testimonios {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    overflow-x: auto;
    padding: 0 20px 20px 20px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.contenedor-testimonios::-webkit-scrollbar {
    display: none;
}

.tarjeta-testimonio {
    background: rgba(255, 255, 255, 0.615);
    flex-shrink: 0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    width: 100%;
}

@media (min-width: 600px) {
    .tarjeta-testimonio {
        width: calc(50% - 15px);
    }

    .contenedor-testimonios {
        gap: 30px;
    }
}

@media (min-width: 992px) {
    .contenedor-testimonios {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: hidden;
        scroll-snap-type: none;
        padding: 0;
    }

    .tarjeta-testimonio {
        width: auto;
    }
}

.puntuacion-estrellas {
    color: var(--color-acento);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.titulo-testimonio {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primario);
    margin-bottom: 15px;
}

.texto-testimonio {
    font-size: 1rem;
    color: var(--color-texto-principal);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 30px;
}

.autor-testimonio {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.foto-autor {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--color-borde);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nombre-autor {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-primario);
    margin-bottom: 4px;
}

.rol-autor {
    font-size: 0.9rem;
    color: var(--color-primario);
}

.paginacion-testimonios {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.punto-paginacion {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.punto-paginacion.activo,
.punto-paginacion:hover {
    background-color: #333;
}

/* --- Nuevos Estilos para la Sección de Testimonios Dinámica --- */
.seccion-testimonios {
    /* La sección principal solo establece el fondo y el padding */
    position: relative;
    padding: 80px 20px;
    /* Aumentamos el padding para dar espacio */
    background-color: rgba(255, 255, 255, 0.572);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.testimonios-wrapper {
    /* Este es nuestro nuevo controlador de layout */
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Usamos grid para un control perfecto */
    grid-template-columns: 1fr 2fr;
    /* El formulario ocupa 1/3 y los testimonios 2/3 */
    gap: 40px;
    align-items: flex-start;
}

.formulario-testimonio-contenedor {
    background: rgba(93, 145, 182, 0.85);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);

    /* ¡LA SOLUCIÓN AL PROBLEMA DE NO PODER ESCRIBIR! */
    position: relative;
    z-index: 2;
    margin-right: -2%;
    margin-left: -2%;
}

/* Hacemos que la grilla se convierta en una sola columna en pantallas más pequeñas */
@media (max-width: 992px) {
    .testimonios-wrapper {
        grid-template-columns: 1fr;
    }
}

.titulo-formulario {
    font-size: 1.8rem;
    color: var(--color-primario-oscuro);
    margin-bottom: 10px;
}

.formulario-testimonio-contenedor p {
    margin-bottom: 20px;
    color: white;
}

.form-grupo-testimonio {
    margin-bottom: 15px;
    align-items: center;
}

.form-grupo-testimonio label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: white;
}

.form-grupo-testimonio input,
.form-grupo-testimonio textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: sans-serif;
    /* Usamos una fuente más legible para formularios */
}


/* ==================================================================== */
/*          SISTEMA DE CALIFICACIÓN POR ESTRELLAS (MEJORADO)          */
/* ==================================================================== */

/* Contenedor del grupo de calificación */
.calificacion-grupo {
    display: flex;
    flex-direction: column;
    align-items: center; /* ¡NUEVO! Centra los elementos hijos (label y estrellas) */
    gap: 10px; /* Espacio entre el texto "Tu Calificación" y las estrellas */
}

/* Contenedor principal de las estrellas */
.rating {
    display: flex;
    flex-direction: row-reverse; /* Mantenemos la dirección inversa, es clave para el efecto CSS */
    justify-content: center; /* ¡CAMBIO! Centra las estrellas horizontalmente */
    width: 100%; /* Ocupa todo el ancho para un centrado correcto */
}

/* Ocultamos los botones de radio originales */
.rating > input {
    display: none;
}

/* Estilo de cada estrella (la etiqueta <label>) */
.rating > label {
    position: relative;
    width: 1.1em;
    font-size: 2.5rem; /* Un poco más grandes para que sean más fáciles de tocar */
    color: #ccc; /* ¡CAMBIO! Color por defecto: gris (apagadas) */
    cursor: pointer;
    transition: color 0.2s ease-in-out; /* Transición suave de color */
}

/* EFECTO HOVER: Pinta de amarillo la estrella sobre la que está el ratón Y todas las anteriores */
.rating > label:hover,
.rating > label:hover ~ label {
    color: #FFD700; /* Color amarillo al pasar el ratón */
}

/* EFECTO SELECCIÓN: Mantiene en amarillo las estrellas seleccionadas */
.rating > input:checked ~ label {
    color: #FFD700; /* Color amarillo para las estrellas marcadas */
}

/* Mensaje de error de validación (lo usaremos con JavaScript) */
.rating-error {
    color: var(--color-acento); /* Rojo, usando tus variables de tema */
    font-weight: bold;
    font-size: 0.9rem;
    height: 1.2em; /* Damos una altura fija para que no mueva el layout al aparecer */
    text-align: center;
    visibility: hidden; /* Oculto por defecto */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rating-error.visible {
    visibility: visible;
    opacity: 1;
}

.mensaje-testimonio{
    margin-top: 5%;
    color: white;
}

/* ==================================================================== */
/*                      PIE DE PÁGINA (FOOTER) - REDISEÑADO             */
/* ==================================================================== */
.pie-de-pagina {
    font-size: 0.95rem;
    margin-top: 60px;
    background-color: var(--color-primario-claro);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-principal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.footer-titulo {
    color: var(--color-blanco);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-texto {
    line-height: 1.7;
    margin-bottom: 25px;
    color: #e0e0e0;
}

.footer-redes-sociales {
    display: flex;
    gap: 15px;
}

.icono-social {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-acento);
    color: var(--color-primario);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.icono-social:hover {
    transform: scale(1.1) translateY(-2px);
    background-color: var(--color-blanco);
    box-shadow: 0 0 15px 0 var(--color-acento);
}

.footer-lista-enlaces {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-lista-enlaces a {
    color: #cdd3d6;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-lista-enlaces a::before {
    content: '»';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: left 0.3s ease, opacity 0.3s ease;
    color: var(--color-acento);
}

.footer-lista-enlaces a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-lista-enlaces a:hover::before {
    left: -5px;
    opacity: 1;
}

.footer-formulario {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-blanco);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.footer-input::placeholder {
    color: #a0a7ac;
}

.footer-input:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.3);
    border-color: var(--color-acento);
}

.footer-boton {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    background-color: var(--color-acento);
    color: var(--color-blanco);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-boton:hover {
    background-color: #d83c4c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-barra-inferior {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.contenido-barra-inferior {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-logo {
    height: 80px;
    opacity: 0.8;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #a0a7ac;
}

@media (min-width: 600px) {
    .footer-principal {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media (min-width: 992px) {
    .footer-principal {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }

    .contenido-barra-inferior {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ====================================================================== */
/*                     ANIMACIONES SUTILES                              */
/* ====================================================================== */
.nav-menu li a,
.shop-now-btn,
.promo-btn,
.banner-boton {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.collage-img {
    animation: float 6s ease-in-out infinite;
}

.collage-img.img-1 {
    animation-delay: 0s;
}

.collage-img.img-2 {
    animation-delay: 1s;
}

.collage-img.img-3 {
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }

    50% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

/* --- NUEVOS ESTILOS PARA LA PROMOCIÓN DE ENVÍO --- */
.promo-envio-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--color-primario);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.titulo-promo-envio {
    font-size: 2.5rem;
    color: var(--color-blanco);
    font-weight: 700;
    margin-bottom: 20px;
}

.promo-envio-container .barra-temporizador {
    max-width: 500px;
    margin: 0 auto 40px auto;
}

.tarifas-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.tarifa-promo-card {
    background: rgb(255, 255, 255);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.tarifa-promo-card i {
    font-size: 3rem;
    color: var(--color-acento);
    margin-bottom: 15px;
}

.tarifa-promo-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.precio-antiguo {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1rem;
    margin-bottom: 5px;
}

.precio-nuevo {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-acento);
    margin-bottom: 25px;
}

.precio-nuevo span {
    font-size: 1rem;
    font-weight: normal;
    opacity: 0.8;
}

.promo-btn-envio {
    display: inline-block;
    background-color: var(--color-acento);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
}

.promo-btn-envio:hover {
    transform: scale(1.05);
}

/* --- Media Query para hacer responsiva la promo de envío --- */
@media (max-width: 768px) {
    .tarifas-promo-grid {
        grid-template-columns: 1fr;
        /* Apila las tarjetas en pantallas pequeñas */
    }

    .titulo-promo-envio {
        font-size: 2rem;
    }
}

/* --- NUEVOS ESTILOS PARA LA TARJETA DE PROMOCIÓN DE ENVÍO --- */
/*
  Este grid se mostrará en la columna derecha cuando la promoción
  sea de tipo 'envio'.
*/
.tarifas-promo-grid {
    display: grid;
    /* Dos columnas para las dos tarjetas de tarifas */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.tarifa-promo-card {
    background: var(--color-blanco);
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarifa-promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.tarifa-promo-card i {
    font-size: 2.5rem;
    /* Usamos el color de acento de tu tema */
    color: var(--color-acento);
    margin-bottom: 15px;
    /* Sombra para darle profundidad al icono */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tarifa-promo-card h3 {
    font-size: 1.5rem;
    color: var(--color-primario);
    margin-bottom: 15px;
}

.tarifa-promo-card .precio-antiguo {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.tarifa-promo-card .precio-nuevo {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-acento);
    line-height: 1;
}

.tarifa-promo-card .precio-nuevo span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--color-texto-secundario);
    opacity: 0.8;
}

/* --- Media Query para hacer responsivas las tarjetas de tarifas --- */
@media (max-width: 768px) {

    /* La estructura principal de la sección de descuentos ya se adapta.
       Ahora adaptamos el contenido de la columna derecha. */
    .seccion-descuentos .contenedor-descuentos {
        grid-template-columns: 1fr;
        /* Apila el banner y la columna derecha */
    }

    .tarifas-promo-grid {
        /* Mantenemos dos columnas si hay espacio, se ve mejor */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tarifas-promo-grid {
        /* En pantallas muy pequeñas, apilamos las tarjetas de tarifas */
        grid-template-columns: 1fr;
    }
}