
/* =========================================================
   MUNDOPEKE WEB - ARCHIVO DE ESTILOS PRINCIPAL
   ---------------------------------------------------------
   Todo el diseño de la web está aquí: colores, tamaños,
   márgenes, etc. Las secciones están comentadas para que
   puedas localizarlas fácilmente.
   ========================================================= */

/* ------------------------
   VARIABLES DE COLOR
   ------------------------ */
:root {
    /* TEMA BASE (Tema 1) - Azul bebé y coral suave
       Nota: El logo sigue siendo rojo, pero el diseño general
       usa colores más suaves y menos "rojo" en fondos. */
    --color-bg: #f7fbff;          /* Fondo general muy claro */
    --color-bg-alt: #ffffff;      /* Fondo alternativo blanco */
    --color-bg-highlight: #e7f2ff;/* Fondo para secciones destacadas (azul bebé) */
    --color-bg-accent: #fef3f3;   /* Fondo para secciones con acento coral suave */

    --color-primary: #2f74ff;     /* Azul principal */
    --color-primary-dark: #1f4fb3;/* Azul más oscuro para hovers */
    --color-secondary: #0e2b4d;   /* Azul marino para títulos */
    --color-accent: #ffb8a1;      /* Coral/melocotón suave para detalles */

    --color-text: #1e2430;        /* Texto principal */
    --color-text-soft: #40485a;   /* Texto secundario */
    --color-text-muted: #6b7280;  /* Texto aclaratorio */

    --color-border-soft: #d7e1f0; /* Bordes suaves */

    --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.08);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --max-width: 1160px;
}

/* TEMA 1: Azul bebé (por defecto) */
body.theme-1 {
    --color-bg: #f7fbff;
    --color-bg-alt: #ffffff;
    --color-bg-highlight: #e7f2ff;
    --color-bg-accent: #fef3f3;

    --color-primary: #2f74ff;
    --color-primary-dark: #1f4fb3;
    --color-secondary: #0e2b4d;
    --color-accent: #ffb8a1;

    --color-text: #1e2430;
    --color-text-soft: #40485a;
    --color-text-muted: #6b7280;

    --color-border-soft: #d7e1f0;
}

/* TEMA 2: Turquesa y lila */
body.theme-2 {
    --color-bg: #f7fffd;
    --color-bg-alt: #ffffff;
    --color-bg-highlight: #e4fbf5;
    --color-bg-accent: #f3ecff;

    --color-primary: #00a3a3;
    --color-primary-dark: #007777;
    --color-secondary: #392f76;
    --color-accent: #f3b4ff;

    --color-text: #162127;
    --color-text-soft: #384353;
    --color-text-muted: #656c7a;

    --color-border-soft: #d3f1ea;
}

/* TEMA 3: Verde menta y melocotón */
body.theme-3 {
    --color-bg: #f6fff9;
    --color-bg-alt: #ffffff;
    --color-bg-highlight: #e2ffe9;
    --color-bg-accent: #fff3e6;

    --color-primary: #16a34a;
    --color-primary-dark: #15803d;
    --color-secondary: #065f46;
    --color-accent: #ffb58a;

    --color-text: #10231a;
    --color-text-soft: #325047;
    --color-text-muted: #647067;

    --color-border-soft: #cfeedd;
}

/* ------------------------
   RESETEO BÁSICO
   ------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    /* Tipografía infantil/redondeada similar al estilo del logo */
    font-family: "Comic Sans MS", "Comic Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

a:hover {
    text-decoration: underline;
}

/* ------------------------
   CONTENEDORES GENERALES
   ------------------------ */
.section {
    padding: 4rem 1.5rem;
}

.section--highlight {
    background-color: var(--color-bg-highlight);
}

.section--accent {
    background-color: var(--color-bg-accent);
}

.section--contact {
    background-color: var(--color-bg-alt);
}

.section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section__inner--split {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.section__header {
    max-width: 700px;
    margin-bottom: 2rem;
}

.section__header h2 {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    color: var(--color-secondary);
}

.section__header p {
    margin: 0;
    color: var(--color-text-soft);
}

/* ------------------------
   CABECERA Y MENÚ
   ------------------------ */


.header__top {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: grid;
    grid-template-columns: 1.6fr 1.2fr auto auto;
    align-items: center;
    gap: 1rem;
}

.header__brand {
    display: flex;
    flex-direction: column;
}

.header__logo-img {
    max-height: 70px;
    width: auto;
    display: block;
    margin-bottom: 0.1rem;
}

.header__subtitle {
    font-size: 0.8rem;
    color: #ffe7ec;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.header__info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.85rem;
    color: #ffdde5;
    text-align: right;
}

.header__phone {
    font-weight: 700;
}

.header__cta {
    text-align: right;
}

.header__burger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background-color: rgba(255, 255, 255, 0.7);
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.header__burger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #07355c;
    border-radius: 999px;
    margin: 2px 0;
}

/* Menú de navegación principal */
.nav {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.nav__list {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.35rem 1.5rem 0.7rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #ffffff;
}

.nav__list a {
    font-weight: 600;
}

/* ------------------------
   BOTONES
   ------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease;
    box-shadow: var(--shadow-soft);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
}

.btn--secondary {
    background-color: var(--color-secondary);
    color: #ffffff;
}

.btn--outline {
    background-color: #ffffff;
    color: var(--color-primary);
    border: 2px solid rgba(255, 45, 55, 0.4);
}

.btn--whatsapp {
    background-color: #25d366;
    color: #ffffff;
}

/* ------------------------
   HERO / PORTADA
   ------------------------ */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 2.5rem;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-highlight) 40%, var(--color-bg-accent) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.hero__content h1 {
    font-size: 2.4rem;
    margin: 0 0 1rem;
    color: var(--color-secondary);
    text-shadow: none;
}

.hero__content p {
    margin: 0 0 1.4rem;
    color: var(--color-text-soft);
}

.hero__note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Hero con burbujas de color (puedes sustituirlo por fotos más adelante) */
.hero__image {
    position: relative;
    width: 100%;
}

.hero__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* ------------------------
   TARJETAS / CARDS
   ------------------------ */
.cards {
    display: grid;
    gap: 1.5rem;
}

.cards--novedades {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--color-secondary);
}

.card p {
    margin: 0 0 0.9rem;
    color: var(--color-text-soft);
}

.card__list {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0 0 1rem;
    color: var(--color-text-soft);
}

.card__link {
    font-weight: 600;
    color: var(--color-primary-dark);
}

/* ------------------------
   GRID DE CATEGORÍAS
   ------------------------ */
.grid--categorias {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.categoria {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--color-border-soft);
    box-shadow: var(--shadow-soft);
}

.categoria h3 {
    margin: 0 0 0.5rem;
    color: var(--color-primary);
}

/* ------------------------
   LISTAS CON CHECK
   ------------------------ */
.list {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--color-text-soft);
}

.list--check {
    list-style: none;
    padding-left: 0;
}

.list--check li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.4rem;
}

.list--check li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 0.8rem;
    color: var(--color-primary);
}

/* ------------------------
   CAJAS GENERALES (BOX)
   ------------------------ */
.box {
    border-radius: var(--radius-md);
    padding: 1.5rem;
    background-color: #ffffff;
    border: 1px solid var(--color-border-soft);
}

.box--info {
    background-color: #fff7df;
    border-color: #ffe0a6;
}

.box--shadow {
    box-shadow: var(--shadow-soft);
}

.box__note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.box__link {
    display: inline-block;
    margin-top: 0.7rem;
    font-weight: 600;
    color: var(--color-secondary);
}

/* ------------------------
   GRID CÓMO COMPRAR
   ------------------------ */
.grid--comprar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* ------------------------
   BLOQUE ENVÍOS / PAGOS
   ------------------------ */
.shipping {
    border-radius: var(--radius-md);
    padding: 1.5rem 1.5rem 1.3rem;
    background-color: #ffffff;
    border: 1px dashed var(--color-border-soft);
}

.shipping h3 {
    margin-top: 0;
    color: var(--color-secondary);
}

.shipping__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.shipping__item h4 {
    margin-top: 0;
}

/* ------------------------
   REDES SOCIALES
   ------------------------ */
.social {
    margin-top: 1.8rem;
}

.social__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.social__link {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
}

/* ------------------------
   OPINIONES
   ------------------------ */
.opiniones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.opinion {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--color-border-soft);
    box-shadow: var(--shadow-soft);
}

.opinion__text {
    margin: 0 0 1rem;
    color: var(--color-text-soft);
}

.opinion__author {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ------------------------
   CONTACTO
   ------------------------ */
.contact-data p {
    margin-top: 0;
    margin-bottom: 0.7rem;
    color: var(--color-text-soft);
}

.contact-data__note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.contact-form {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border-soft);
}

.contact-form h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.contact-form label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.55rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid #d8cfe5;
    margin-bottom: 0.7rem;
    font-family: inherit;
    font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(7, 53, 92, 0.3);
    border-color: var(--color-secondary);
}

.contact-form__legal {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0;
    margin-bottom: 0.8rem;
}

/* ------------------------
   FOOTER
   ------------------------ */
.footer {
    background-color: #021324;
    color: #f9f9ff;
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: 2rem;
}

.footer__top {
    max-width: var(--max-width);
    margin: 0 auto 1.5rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem;
}

.footer__col h3,
.footer__col h4 {
    margin-top: 0;
}

.footer__col p {
    color: #cfd3e6;
}

.footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__col li {
    margin-bottom: 0.4rem;
}

.footer__social li a {
    color: #ffffff;
    font-size: 0.9rem;
}

.footer__bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #cfd3e6;
}

.footer__legal a {
    color: #cfd3e6;
}

/* ------------------------
   RESPONSIVE
   ------------------------ */
@media (max-width: 900px) {
    .header__top {
        grid-template-columns: 1.5fr 1.3fr auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "brand info burger"
            "cta   cta  cta";
    }

    .header__brand {
        grid-area: brand;
    }

    .header__info {
        grid-area: info;
        align-items: flex-end;
        text-align: right;
    }

    .header__cta {
        grid-area: cta;
        text-align: left;
    }

    .header__burger {
        display: inline-flex;
        grid-area: burger;
        justify-self: flex-end;
    }

    .nav__list {
        padding-top: 0.2rem;
    }

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

    .hero__image {
        order: -1;
    }

    .cards--novedades {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

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

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

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

@media (max-width: 640px) {
    .header__top {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand burger"
            "info  info"
            "cta   cta";
        row-gap: 0.4rem;
    }

    .header__info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .nav {
        display: none;
    }

    .nav.nav--open {
        display: block;
        background-color: rgba(7, 53, 92, 0.9);
        backdrop-filter: blur(6px);
    }

    .nav__list {
        flex-direction: column;
        gap: 0.6rem;
        padding-bottom: 0.9rem;
    }

    .hero__content h1 {
        font-size: 2rem;
    }

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

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

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

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


/* Imagen principal del hero con bebé Mundopeke */
.hero__image img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}


/* Galería de detalles del bebé (manos, pies, etc.) en Novedades */
.baby-gallery {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.baby-gallery__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background-color: #ffffff;
}

.baby-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Selector de temas de color (3 estilos) */
.header__themes {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: flex-end;
}

.theme-dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.2);
}

.theme-dot--1 {
    background: radial-gradient(circle at 30% 30%, #ffb8a1 0, #2f74ff 60%, #0e2b4d 100%);
}

.theme-dot--2 {
    background: radial-gradient(circle at 30% 30%, #f3b4ff 0, #00a3a3 60%, #392f76 100%);
}

.theme-dot--3 {
    background: radial-gradient(circle at 30% 30%, #ffb58a 0, #16a34a 60%, #065f46 100%);
}

.theme-dot:focus {
    outline: 2px solid rgba(15, 23, 42, 0.5);
}


.header {
    /* Cabecera normal, NO fija al hacer scroll */
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-bg-highlight) 40%, var(--color-bg-accent) 100%);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    margin-bottom: 1rem;
}

