
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --cream: #F8F4EC;
    --pink: #FF8FB7;
    --fuchsia: #E83C91;
    --purple: #43334C;
    --white: #FFFFFF;

    --text: #43334C;
    --muted: #786D7D;
    --border: #E9DFE5;
    --surface: #FFFDFC;

    --font-heading: 'Bitter', Georgia, serif;
    --font-body: 'DM Sans', Arial, sans-serif;

    --container: 1160px;
    --radius: 18px;
    --shadow: 0 8px 28px rgba(67, 51, 76, 0.08);
}

/* Configuración general */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

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

a {
    color: var(--fuchsia);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--purple);
}

h1, h2, h3, h4 {
    color: var(--purple);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.1rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

h3 {
    font-size: 1.25rem;
}

/* Contenedores */

.container {
    width: min(var(--container), calc(100% - 36px));
    margin: 0 auto;
}

.section {
    padding: 64px 0;
}

.section-title {
    max-width: 680px;
    margin: 0 auto 35px;
    text-align: center;
}

.section-title p {
    color: var(--muted);
}

/* Encabezado */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 244, 236, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--purple);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.brand img {
    max-width: 140px;
    max-height: 54px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--purple);
    font-weight: 600;
}

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

/* Portada */

.hero {
    padding: 90px 0;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 143, 183, 0.25),
            transparent 28%
        );
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero p {
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-image {
    width: 100%;
    max-height: 420px;
    border-radius: var(--radius);
    object-fit: cover;
}

/* Botones */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 10px 20px;
    border: 2px solid var(--fuchsia);
    border-radius: 999px;
    background: var(--fuchsia);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--purple);
    border-color: var(--purple);
}

/* Tarjetas de productos */

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(67, 51, 76, 0.13);
}

.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eee5e9;
}

.card-body {
    padding: 19px;
}

.card h3 {
    margin-bottom: 6px;
}

.card p {
    color: var(--muted);
}

.price {
    display: block;
    margin: 10px 0;
    color: var(--fuchsia);
    font-size: 1.2rem;
    font-weight: 700;
}

.tag {
    display: inline-block;
    margin-bottom: 9px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 143, 183, 0.23);
    font-size: 0.78rem;
    font-weight: 700;
}

/* Detalle de producto */

.detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    padding: 45px 0 70px;
}

.detail-image {
    width: 100%;
    max-height: 600px;
    border-radius: var(--radius);
    object-fit: cover;
}

.detail-copy {
    padding-top: 10px;
}

.muted {
    color: var(--muted);
}

/* Formularios y selectores */

.field {
    display: grid;
    gap: 7px;
    margin: 18px 0;
}

label {
    font-weight: 700;
}

select,
input {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--purple);
    font: inherit;
}

select:focus,
input:focus {
    outline: 2px solid rgba(232, 60, 145, 0.25);
    border-color: var(--fuchsia);
}

.notice {
    padding: 14px 16px;
    background: rgba(255, 143, 183, 0.17);
    border-left: 4px solid var(--fuchsia);
    border-radius: 8px;
}

/* Navegación secundaria */

.breadcrumb {
    padding-top: 20px;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Pie de página */

.footer {
    margin-top: 30px;
    padding: 34px 0;
    background: var(--purple);
    color: var(--cream);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    margin: 0;
    color: rgba(248, 244, 236, 0.8);
}

.footer a {
    color: var(--pink);
}

/* Diseño adaptable */

@media (max-width: 850px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-inner,
    .detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .nav {
        gap: 10px 16px;
    }

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

    .section {
        padding: 45px 0;
    }

    .btn {
        width: 100%;
    }
}
