/* ESTILOS GENERALES */
:root {
    --marron: #3b2026;
    --rosa: #d9365b;
    --rosa-claro: #fde8ec;
    --crema: #fffaf8;
    --blanco: #ffffff;
    --verde: #dce9c8;
    --texto: #39252a;
    --sombra: 0 6px 22px rgba(59, 32, 38, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; line-height: 1.7; color: var(--texto); background: var(--crema); }
img, video { display: block; max-width: 100%; }
img { object-fit: cover; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.25; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
section { scroll-margin-top: 80px; }
.seccion { padding: 70px 6%; }
.fondo-rosa { background: var(--rosa-claro); }
.fondo-claro { background: #fff5f5; }
.etiqueta { color: var(--rosa); font-weight: bold; letter-spacing: 2px; font-size: .78rem; }
.titulo-seccion { max-width: 750px; margin: 0 auto 35px; text-align: center; }
.titulo-seccion h2 { color: var(--marron); margin-bottom: 12px; }
.centrado { text-align: center; }
.nota { font-size: .88rem; color: #725c60; }


/* ENCABEZADO */

.encabezado {
    background:
        linear-gradient(
            rgba(59, 32, 38, 0.10),
            rgba(59, 32, 38, 0.18)
        ),
        url("./IMAGE/Dulce Catalina_ Encanto de Pastelería.png")
        center center / cover no-repeat;

    color: #ffffff;
    min-height: 190px;
    padding: 135px 5% 5px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

/* MENÚ DE NAVEGACIÓN */

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 28px;

    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.menu a {
    text-decoration: none;
    color: #fff8ed;
    font-weight: 700;
    font-size: 1.08rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;

    text-shadow: 1px 2px 5px rgba(35, 12, 16, 0.95);

    transition: color 0.2s, border-color 0.2s;
}

.menu a:hover,
.menu a.activo {
    color: #ffd0dc;
    border-bottom-color: #ffd0dc;
}

/* BOTÓN DEL MENÚ MÓVIL */

.menu-toggle {
    display: none;
}

/* ADAPTACIÓN PARA CELULARES */

@media (max-width: 600px) {
    .encabezado {
        min-height: 170px;
        padding: 65px 5% 10px;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        color: #ffffff;
        background: var(--rosa);
        border: none;
        border-radius: 8px;
        padding: 8px 12px;
        cursor: pointer;
    }

    .menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 0;
    }

    .menu.abierto {
        display: flex;
    }

    .menu a {
        width: 100%;
        text-align: center;
        padding: 8px 0;
        font-size: 1rem;
    }
}
  
/* BOTONES */
.grupo-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.boton { display: inline-block; padding: 12px 24px; background: var(--rosa); color: var(--blanco); text-decoration: none; text-align: center; font-weight: bold; border: 2px solid var(--rosa); border-radius: 30px; transition: transform .2s, background .2s; }
.boton:hover { background: #b92749; border-color: #b92749; transform: translateY(-2px); }
.boton-secundario { background: transparent; color: var(--rosa); }
.boton-secundario:hover { color: var(--blanco); }
.boton-whatsapp { background: #168b52; border-color: #168b52; }
.boton-whatsapp:hover { background: #106d40; border-color: #106d40; }

/* INICIO */
.inicio { min-height: 490px; padding: 65px 7%; background: var(--rosa-claro); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 45px; }
.inicio h1 { color: var(--marron); font-size: clamp(2.2rem, 4vw, 3.5rem); margin-bottom: 18px; }
.frase { color: var(--rosa); font-size: 1.25rem; font-style: italic; }
.inicio-imagen img { width: 100%; height: 370px; border-radius: 24px; box-shadow: var(--sombra); }

/* PRODUCTOS */
.rejilla { display: grid; gap: 25px; }
.productos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tarjeta-producto { background: var(--blanco); border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); transition: transform .25s, box-shadow .25s; }
.tarjeta-producto:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(59, 32, 38, .15); }
.tarjeta-producto img { width: 100%; height: 230px; }
.contenido-tarjeta { padding: 22px; }
.contenido-tarjeta h3 { color: var(--marron); margin-bottom: 10px; }
.contenido-tarjeta .boton { margin-top: 5px; }
.precio { font-weight: bold; color: var(--rosa); }
.enlace { display: inline-block; color: var(--rosa); font-weight: bold; text-decoration: none; }
.enlace:hover { text-decoration: underline; }
.seccion > .centrado { margin-top: 32px; }

/* HISTORIA */
.historia { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 45px; }
.historia img { width: 100%; height: 360px; border-radius: 20px; box-shadow: var(--sombra); }
.historia h2 { color: var(--marron); }

/* VIDEO */
.video-contenedor { max-width: 900px; margin: 0 auto; overflow: hidden; border-radius: 20px; background: var(--marron); box-shadow: var(--sombra); }
.video-contenedor video { width: 100%; max-height: 520px; }

/* HORARIO Y PROMOCIÓN */
.dos-columnas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 25px;
}

.panel {
    min-width: 0;
    box-sizing: border-box;
    background: var(--blanco);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--sombra);
}

.panel h3 {
    color: var(--marron);
}


/* Lista de horarios */
.lista-horarios {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lista-horarios li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 13px 0;
    border-bottom: 1px solid #f0dce0;
}

.lista-horarios li:last-child {
    border-bottom: none;
}

.lista-horarios li strong {
    white-space: nowrap;
    font-size: 0.95rem;
}

.lista-horarios li span {
    text-align: right;
    white-space: nowrap;
    font-size: 0.88rem;
}

@media (max-width: 400px) {
    .panel-horarios {
        padding-left: 18px;
        padding-right: 18px;
    }

    .lista-horarios li {
        gap: 5px;
    }

    .lista-horarios li strong {
        font-size: 0.82rem;
    }

    .lista-horarios li span {
        font-size: 0.76rem;
    }
}


/* Imagen de la repostera con calendario y reloj */
.panel-horarios {
    position: relative;
    min-height: 295px;
    padding-bottom: 115px;
    overflow: hidden;
}

.ilustracion-horario {
    position: absolute;
    right: 10px;
    bottom: 5px;
    width: 145px;
    height: 105px;
}

.ilustracion-horario img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Tarjeta de promoción */
.promocion {
    background: var(--verde);
}

/* TABLET Y CELULARES */
@media (max-width: 768px) {
    .dos-columnas {
        grid-template-columns: 1fr;
    }

    .panel-horarios {
        min-height: 280px;
        padding-bottom: 105px;
    }

    .ilustracion-horario {
        width: 125px;
        height: 90px;
    }
}

/* FOTOGRAFÍAS DE CLIENTES */

.foto-cliente {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 15px;
    border: 3px solid var(--rosa-claro);
}

/* OPINIONES */
.opiniones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tarjeta-opinion { background: var(--blanco); border-radius: 18px; padding: 25px; box-shadow: var(--sombra); }
.tarjeta-opinion blockquote { margin: 0 0 15px; }
.estrellas { color: #e7a321; letter-spacing: 3px; margin-bottom: 12px; }

/* MAPA Y CONTACTO */
.mapa { display: block; width: 100%; height: 330px; border: 0; border-radius: 12px; margin-bottom: 15px; }
.panel p { overflow-wrap: anywhere; }

/* ENCABEZADO DEL CATÁLOGO */
.encabezado-postres { padding: 65px 6%; text-align: center; background: var(--rosa-claro); }
.encabezado-postres h1 { color: var(--marron); font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 15px; }
.encabezado-postres p:last-child { max-width: 650px; margin-left: auto; margin-right: auto; }

/* PIE DE PÁGINA */
.pie-pagina { padding: 35px 6%; background: var(--marron); color: var(--blanco); text-align: center; }
.logo-footer { display: inline-block; margin-bottom: 12px; }
.pie-pagina p { margin-bottom: 10px; }
.enlace-footer { display: inline-block; margin-top: 8px; color: #ffbdce; }

/* TABLET */
@media (max-width: 850px) {
    .inicio { grid-template-columns: 1fr; gap: 30px; padding: 45px 6%; }
    .inicio-imagen img { height: 320px; }
    .productos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .historia { grid-template-columns: 1fr; }
    .opiniones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .menu { gap: 8px 15px; }
}

/* CELULARES */
@media (max-width: 600px) {
    .encabezado { flex-direction: row; justify-content: space-between; flex-wrap: wrap; padding: 14px 5%; }
    .logo { font-size: 1.3rem; }
    .menu-toggle { display: block; }
    .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
    .menu.abierto { display: flex; }
    .menu a { padding: 10px 4px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .seccion { padding: 48px 5%; }
    .inicio { padding: 42px 5%; }
    .inicio h1 { font-size: 2.2rem; }
    .inicio-imagen img, .historia img { height: 260px; }
    .productos, .opiniones, .dos-columnas { grid-template-columns: 1fr; }
    .tarjeta-producto img { height: 240px; }
    .lista-horarios li { flex-direction: column; gap: 3px; }
    .lista-horarios span { text-align: left; }
    .grupo-botones { flex-direction: column; }
    .grupo-botones .boton { width: 100%; }
    .panel { padding: 22px; }
    .mapa { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
