/* Colores base */
:root {
    --rosa: #f4bddf;
    --rosa-fucsia: #ef4da6;
    --rojo: #c40000;
    --crema: #ffeecc;
    --azul: #9fd6ff;
    --azul-oscuro: #0089dd;
    --verde: #b4dbaf;
    --amarillo: #ffd87d;
    --naranja: #ff8000;
}

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

html {
    scroll-behavior: smooth;
}

/* Reseteo suave */
body {
    margin: 0;
    font-family: "logic-monoscript", mono;
    font-weight: 500;
    font-style: normal;
    background-color: white;
}

/* tipografía especial para botones y texto */
.font-secondary {
    font-family: 'roboto', sans-serif;
}

.logo {
    width: 12%;
}

.logo img {
    width: 100%;
}

/* NAV */
.cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 25px;
    background: white;
    border-bottom: 1px var(--rosa);
}

nav ul {
    display: flex;
    gap: 5%;
}

nav ul li {
    list-style-type: none;
    padding: 1em 0.5em;
}

nav ul li a {
    display: inline-block; /* 🔑 IMPORTANTE */
    text-decoration: none;
    color: var(--rosa-fucsia);
    font-size: 1.2rem;

    transition: 
        transform 0.2s ease,
        color 0.2s ease;
}

nav ul li a:hover {
    color: var(--rojo);
    transform: scale(1.15);
}

.cart-icon a {
    display: inline-block;   /* 🔑 CLAVE */
    color: var(--rosa);
    text-decoration: none;
    font-size: 2rem;
    transition: 
        transform 0.3s ease,
        color 0.3s ease;
}

.cart-icon a:hover {
    color: var(--rosa-fucsia);
    transform: scale(1.3);
}

/* HERO */
.hero {
    display: flex;
    width: 100%;
    padding: 60px;
    gap: 30px;
    background: var(--crema);
    flex-wrap: wrap;
}

.hero-img {
    width: 50%;
}

.hero-img img {
    width: 100%;
    height: auto;
    background: #fdfdfd;
    border-radius: 15px;
}

.hero-text {
    max-width: 450px;
}

.hero-text h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--rojo);
}

.hero-text h3 {
    font-size: 1.3rem;
    margin-top: 18px;
    color: var(--naranja);
}

.hero-buttons .btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 10px 10px 0;
    border-radius: 20px;
    border-color: black;
    background: var(--rosa);
    font-family: 'roboto', sans-serif;
    text-decoration: none;
    color: black;
    transition: 
        transform 0.2s ease,
}

.hero-buttons .btn:hover {
    size: 30%;
    color: var(--crema);
    background-color: var(--naranja);
    transform: scale(1.2);
}

.btn.blue {
    background: var(--azul);
}

.btn.blue:hover {
    size: 30%;
    color: var(--crema);
    font-family: 'roboto', sans-serif;
    background-color: var(--azul-oscuro);
}

/* CLAIM */
.claim {
    position: relative;
    width: 100%;
    background: var(--crema);
    text-align: center;
    padding: 60px 20px;
}

.claim h1 {
    font-size: 8rem;
    color: var(--rosa-fucsia);
}

.claim p {
    font-size: 3rem;
    padding: 0.2em 2em;
    font-family: "Bitcount Prop Single", system-ui;
    color: var(--rosa-fucsia);
    text-align: justify;
}

#star-six {
    position: absolute;
    top: 0%;
    left: 80%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid var(--verde);
    position: relative;
}

#star-six:after {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-top: 100px solid var(--verde);
    position: absolute;
    content: "";
    top: 30px;
    left: -50px;
}


/* Caja de Información */
.info {
    width: 100%;
    display: flex;
    background-color: var(--rosa);
    justify-content: center;
    color: white;
    padding: 5% 2%;
}

.info > div {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    background-color: var(--rojo);
    width: 90%;
}

.info > div > div {
    display: flex;
    flex-direction: column;
    padding: 0.5em 2em;
}

.info > div > div p {
    text-align: left;
}

.info > div > div h2 {
    font-family: "Bitcount Prop Single", system-ui;
    font-size: 4rem;
    margin-top: 40px;
    margin-right: 20px;
    color: var(--rosa);
}

.info > div > img {
    width: 50%;
}

.info-box h2 {
    font-family: 'Press Start 2P', cursive;
    /* Tipografía para el título */
    font-size: 2rem;
    /* Tamaño del título */
    margin-bottom: 10px;
    /* Espacio debajo del título */
}

.info-box p {
    font-family: 'Roboto', sans-serif;
    /* Tipografía para el texto */
    font-size: 1.2rem;
    /* Tamaño del texto */
    line-height: 1.6;
    /* Altura de línea para mejor legibilidad */
}

/*CARRUSEL*/

.carousel-container {
    width: 100%;
    margin: 0 auto;
    background-color: var(--rosa);
    padding: 2% 2%;
}

/* CONTENEDOR SCROLLABLE */
.carousel-viewport {
    overflow-x: auto;
    /* aquí está la clave: scroll horizontal */
    overflow-y: hidden;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
}

/* Opcional: ocultar barra de scroll */
.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-viewport {
    scrollbar-width: none;
    /* Firefox */
}

.carousel-viewport.is-grabbing {
    cursor: grabbing;
}

/* Tira de tarjetas */
.carousel-track {
    display: flex;
    gap: 1.2rem;
    padding-bottom: 0.5rem;
}

/*
  Cada card ocupa 1/3,5 del ancho visible:
  3 tarjetas completas + 1 cortada (sugerencia de continuidad).
*/
.carousel-card {
    flex: 0 0 calc(100% / 4);
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 0.9rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    /* evita selección de texto al arrastrar */
}

.carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* Imagen de la tarjeta */

.carousel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Contenido de la tarjeta */

.card-content {
    padding: 1rem 1.1rem 1.2rem;
}

.card-content h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Máx 3 líneas visuales (line-clamp) */
.card-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.9rem;
    overflow: hidden;
}

/* Botón visual (span) */

.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background-color: var(--rosa);
    color: var(--rosa-fucsia);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
    text-decoration: none;
    /* importante al ser <a> */
    cursor: pointer;
}

.carousel-card .card-button:hover {
    background-color: var(--rosa-fucsia);
    color: var(--rosa);
    border-color: var(--rosa);
    transform: translateY(-1px);
}