/* ==========================================================================
   EducaLu - Estilos generales
   ========================================================================== */

:root {
    --ink: #25304d;
    --muted: #6e7590;
    --pink: #ff568f;
    --blue: #456ce6;
    --cream: #fffaf3;
    --yellow: #ffcb60;
    --mint: #d8f5e7;
    --line: #eaeaf1;
    --topbar: #324dca;
    --banner: #534dd6;
    --footer: #243252;
    --font-titulos: Fredoka, sans-serif;
    --font-textos: Nunito, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-textos);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

img {
    max-width: 100%;
}

.wrap {
    max-width: 1190px;
    margin: auto;
    padding: 0 24px;
}

/* ---------- Botones ---------- */

.btn {
    border: 0;
    border-radius: 14px;
    padding: 13px 21px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .2s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px #3344aa22;
}

.btn-block {
    width: 100%;
}

.primary {
    background: var(--pink);
    color: white;
}

.blue {
    background: var(--blue);
    color: white;
}

.outline {
    border: 1.5px solid #d7dce9;
    background: white;
    color: var(--ink);
}

.light {
    background: #fff;
    color: var(--ink);
}

/* ---------- Barra superior ---------- */

.top {
    background: var(--topbar);
    color: white;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    padding: 9px;
}

/* ---------- Header / navegación ---------- */

.nav {
    background: white;
    border-bottom: 1px solid #f1edf2;
    position: sticky;
    top: 0;
    z-index: 30;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-titulos);
    font-size: 23px;
    font-weight: 600;
    color: #4557cb;
}

.brand img {
    width: 76px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
}

.links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 800;
    font-size: 14px;
}

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

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cart {
    position: relative;
    background: #f5f6ff;
    border: 0;
    border-radius: 13px;
    padding: 13px 15px;
    font-weight: 900;
}

.count {
    background: var(--pink);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    padding: 2px 6px;
    position: absolute;
    right: -5px;
    top: -6px;
}

.mobile-menu {
    display: none;
}

.mobile-links {
    display: none;
    padding: 12px 22px;
    background: white;
    border-top: 1px solid #eee;
}

.mobile-links.open {
    display: block;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 25%, #ffe1ed 0, transparent 30%),
        linear-gradient(120deg, #fff7eb, #fffaf6 50%, #edf4ff);
    padding: 66px 0 62px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    align-items: center;
    gap: 40px;
}

.eyebrow {
    display: inline-block;
    border-radius: 100px;
    background: #fff0c7;
    color: #8e5c05;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .6px;
}

.hero h1 {
    font-family: var(--font-titulos);
    font-size: clamp(39px, 5vw, 67px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    margin: 21px 0;
}

.hero h1 span {
    color: var(--pink);
}

.hero p {
    font-size: 18px;
    line-height: 1.75;
    color: #666d83;
    max-width: 510px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 26px 0;
}

.hero-note {
    font-size: 13px;
    color: #85899c;
    font-weight: 800;
}

.hero-art {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-art:before {
    content: '';
    position: absolute;
    inset: 16px 3% 0;
    background: #ffdf85;
    border-radius: 46% 54% 43% 57% / 48% 42% 58% 52%;
    transform: rotate(-8deg);
}

.hero-art img {
    position: relative;
    width: min(90%, 430px);
    border-radius: 36px;
    box-shadow: 0 24px 45px #a76b4226;
    transform: rotate(3deg);
}

.float {
    position: absolute;
    z-index: 2;
    background: white;
    box-shadow: 0 12px 30px #3344aa15;
    padding: 12px 17px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 13px;
}

.f1 {
    top: 10px;
    right: -2px;
}

.f2 {
    bottom: 22px;
    left: -15px;
}

/* ---------- Franja de confianza ---------- */

.trust {
    background: white;
    border-bottom: 1px solid #eee;
}

.trust .wrap {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 18px;
    padding-bottom: 18px;
}

.trust span {
    font-size: 13px;
    font-weight: 900;
    color: #6b7188;
}

/* ---------- Secciones ---------- */

.section {
    padding: 76px 0;
}

.section-white {
    background: #fff;
}

.section-head {
    text-align: center;
    margin-bottom: 34px;
}

.section-head h2 {
    font-family: var(--font-titulos);
    font-size: clamp(29px, 3.4vw, 42px);
    margin: 10px 0;
    color: #26324e;
}

.section-head p {
    color: var(--muted);
    margin: 0 auto;
    max-width: 660px;
    line-height: 1.65;
}

.section-head .btn {
    margin-top: 22px;
}

.kicker {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--pink);
    font-weight: 900;
    text-transform: uppercase;
}

/* ---------- Categorías ---------- */

.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cat {
    border-radius: 24px;
    padding: 28px;
    min-height: 194px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
}

.cat h3 {
    font-family: var(--font-titulos);
    font-size: 24px;
    margin: 0;
}

.cat p {
    font-size: 13px;
    max-width: 205px;
    margin: 8px 0;
}

.cat .emoji {
    font-size: 72px;
    position: absolute;
    right: 17px;
    bottom: 10px;
    filter: drop-shadow(0 8px 7px #3332);
}

.cat a {
    font-weight: 900;
    text-decoration: underline;
    font-size: 13px;
}

.cat1 {
    background: #ffdee9;
}

.cat2 {
    background: #dcf1ff;
}

.cat3 {
    background: #e5f4d9;
}

/* ---------- Catálogo ---------- */

.filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.chip {
    border: 1px solid #e4e4ee;
    background: white;
    padding: 11px 19px;
    border-radius: 100px;
    font-weight: 900;
    color: #66708a;
}

.chip.active {
    background: #445fdd;
    color: white;
    border-color: #445fdd;
}

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 23px;
}

.product {
    background: white;
    border: 1px solid #f0edf2;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 28px #34427409;
    display: flex;
    flex-direction: column;
}

.product[hidden] {
    display: none;
}

.product-cover {
    height: 258px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f6ff;
    overflow: hidden;
}

.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    position: absolute;
    top: 13px;
    left: 13px;
    background: white;
    color: #39487d;
    border-radius: 100px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 3px 12px #0001;
}

.product-body {
    padding: 21px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-body h3 {
    font-family: var(--font-titulos);
    font-size: 21px;
    margin: 8px 0;
}

.product-body p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    min-height: 43px;
    margin: 0;
}

.rating {
    font-size: 12px;
    color: #e5a51a;
    font-weight: 900;
}

.rating-note {
    color: #9298aa;
}

.price {
    font-size: 25px;
    font-weight: 900;
    color: #27345c;
}

.price small {
    font-size: 12px;
    font-weight: 700;
    color: #9395a3;
}

.product-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 17px;
    gap: 10px;
}

.product-foot .btn {
    font-size: 12px;
    padding: 11px 14px;
}

/* ---------- Pasos ---------- */

.steps {
    background: #eff6ff;
}

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

.step {
    background: white;
    border-radius: 22px;
    padding: 29px;
    text-align: center;
}

.step-icon {
    font-size: 43px;
}

.step h3 {
    font-family: var(--font-titulos);
    font-size: 22px;
    margin: 14px 0 7px;
}

.step p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Banner ---------- */

.banner {
    background: var(--banner);
    border-radius: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    padding: 42px;
    color: white;
    overflow: hidden;
}

.banner-kicker {
    font-weight: 900;
    color: #ffe28c;
}

.banner h2 {
    font-family: var(--font-titulos);
    font-size: 38px;
    line-height: 1.15;
    margin: 0;
}

.banner p {
    color: #e7e7ff;
    line-height: 1.7;
}

.banner img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 25px;
}

/* ---------- Preguntas frecuentes ---------- */

.faq {
    max-width: 780px;
    margin: auto;
}

details {
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 18px 22px;
    margin-bottom: 12px;
}

summary {
    font-weight: 900;
    cursor: pointer;
}

details p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

/* ---------- Footer ---------- */

footer {
    background: var(--footer);
    color: white;
    padding: 50px 0 25px;
}

footer .footgrid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px;
}

footer p,
footer a {
    font-size: 13px;
    color: #d1d7e8;
    line-height: 1.9;
}

footer a {
    display: block;
}

footer h4 {
    margin-top: 0;
}

.brand-footer {
    color: white;
}

.footend {
    border-top: 1px solid #ffffff24;
    margin-top: 30px;
    padding-top: 22px;
    color: #b7c2dc;
    font-size: 12px;
}

/* ---------- Modales ---------- */

.overlay {
    position: fixed;
    inset: 0;
    background: #1a254c80;
    z-index: 70;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.overlay.open {
    display: flex;
}

.modal {
    background: white;
    border-radius: 24px;
    width: min(95vw, 650px);
    max-height: 92vh;
    overflow: auto;
    padding: 28px;
    box-shadow: 0 20px 80px #14224b44;
}

.modal h2 {
    font-family: var(--font-titulos);
    font-size: 29px;
    margin: 5px 0 8px;
}

.modal p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.x {
    border: 0;
    background: #f1f2f8;
    border-radius: 12px;
    width: 37px;
    height: 37px;
    font-size: 20px;
}

/* ---------- Formularios ---------- */

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 900;
}

.field.full {
    grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
    border: 1px solid #dce0ec;
    border-radius: 12px;
    padding: 13px;
    background: #fff;
    outline: none;
    color: var(--ink);
    width: 100%;
}

.field input:focus,
.field select:focus {
    border-color: #6b74e8;
}

.field-help {
    font-weight: 500;
    color: #8a90a2;
}

/* ---------- Subida de foto ---------- */

.upload {
    position: relative;
}

.upload-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px dashed #f5b8cd;
    border-radius: 16px;
    background: #fff6f9;
    cursor: pointer;
    transition: .2s;
}

.upload-box:hover,
.upload.dragover .upload-box {
    border-color: var(--pink);
    background: #ffeef4;
}

.upload:focus-within .upload-box {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px #ff568f22;
}

.field .upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-thumb {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px #ff568f1f;
    overflow: hidden;
}

.upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upload-text b {
    font-size: 13px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-text small {
    font-weight: 600;
    color: #9a8f9e;
}

.upload-btn {
    flex: none;
    background: var(--pink);
    color: white;
    border-radius: 11px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 900;
}

.upload.has-file .upload-box {
    border-style: solid;
    border-color: #8fd9b6;
    background: #f1fbf6;
}

.upload.has-file .upload-btn {
    background: white;
    color: var(--ink);
    border: 1.5px solid #d7dce9;
    margin-right: 34px;
}

.upload-remove {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #fff1f1;
    color: #d93d69;
    font-size: 12px;
    font-weight: 900;
}

.upload-remove[hidden] {
    display: none;
}

.preview {
    background: #fff2db;
    border-radius: 16px;
    padding: 18px;
    margin: 20px 0;
    font-weight: 800;
    line-height: 1.6;
}

/* ---------- Carrito ---------- */

.cartline {
    display: flex;
    gap: 13px;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 13px 0;
}

.cartline img {
    width: 60px;
    height: 65px;
    object-fit: cover;
    border-radius: 9px;
}

.cartline-info {
    flex: 1;
}

.cartline b {
    display: block;
}

.cartline small {
    color: #8990a1;
}

.cartline .remove {
    border: 0;
    background: #fff1f1;
    color: #d93d69;
    border-radius: 8px;
    padding: 7px;
}

.total {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    font-weight: 900;
    margin: 20px 0;
}

.empty {
    text-align: center;
    padding: 45px 10px;
    color: var(--muted);
}

.smallnote {
    font-size: 12px !important;
    color: #9b7481 !important;
}

.dev {
    background: #fff7e4;
    border: 1px solid #f4d99c;
    padding: 15px;
    border-radius: 13px;
    font-size: 12px;
    color: #85612b;
    line-height: 1.6;
    margin-top: 15px;
}

/* ---------- Toast ---------- */

.toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: #253355;
    color: white;
    padding: 12px 21px;
    border-radius: 14px;
    z-index: 90;
    display: none;
    font-weight: 900;
    font-size: 13px;
}

.toast.show {
    display: block;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .links {
        display: none;
    }

    .mobile-menu {
        display: inline-flex;
    }

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

    .hero {
        padding: 45px 0;
    }

    .hero-art {
        min-height: 300px;
    }

    .hero-art img {
        max-width: 330px;
    }

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

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

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

@media (min-width: 901px) {
    .mobile-links.open {
        display: none;
    }
}

@media (max-width: 600px) {
    .wrap {
        padding: 0 17px;
    }

    .top {
        font-size: 10px;
    }

    .nav-inner {
        min-height: 69px;
    }

    .brand img {
        width: 57px;
        height: 52px;
    }

    .brand {
        font-size: 20px;
    }

    .nav-actions > .btn {
        display: none;
    }

    .nav-actions > .mobile-menu {
        display: inline-flex;
    }

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

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

    .hero-art {
        min-height: 295px;
    }

    .float {
        font-size: 10px;
    }

    .section {
        padding: 51px 0;
    }

    .categories,
    .products,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .cat {
        min-height: 160px;
    }

    .product-cover {
        height: 300px;
    }

    .banner {
        padding: 26px;
    }

    .banner h2 {
        font-size: 30px;
    }

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

    .field.full {
        grid-column: auto;
    }

    .upload-text small {
        display: none;
    }

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

    .modal {
        padding: 20px;
    }
}

/* ---------- Agregados del panel ---------- */

.creator-product {
    background: #f5f6ff;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 800;
    color: var(--ink) !important;
}

.footer-redes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

footer .footer-redes a {
    display: inline;
    text-decoration: underline;
}

.products .empty {
    grid-column: 1 / -1;
}

/* ---------- Logos de la marca ---------- */

.brand .brand-logo {
    width: auto;
    height: 66px;
    border-radius: 0;
    object-fit: contain;
}

.footer-logo {
    display: block;
    width: auto;
    height: 84px;
    margin-bottom: 6px;
}

@media (max-width: 600px) {
    .brand .brand-logo {
        height: 50px;
    }

    .footer-logo {
        height: 70px;
    }
}
