/* 
================================================================
    YUMEE STUDIO - UNIFIED STYLES
    Diseño original preservado. Código organizado y limpio.
================================================================
*/

/* --- 1. VARIABLES & DESIGN TOKENS --- */
:root {
    --accentcolor: #848340;
    --darkercolor: #4b561f;
    --bg-main: #e4e1d6;
    --font-primary: 'Poppins', 'Helvetica', sans-serif;

    /* Escala tipográfica */
    --fs-h1: 3rem;
    --fs-h2: 2rem;
    --fs-h3: 1.5rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;

    /* Pesos de fuente */
    --fw-bold: 700;
    --fw-semibold: 600;
    --fw-normal: 400;
}

/* --- 2. BASE STYLES --- */
* {
    box-sizing: border-box;
    transition: 0.5s;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    background-image:
        linear-gradient(var(--accentcolor) 1px, transparent 1px),
        linear-gradient(to right, var(--accentcolor) 1px, var(--bg-main) 1px);
    background-size: 20px 20px;
}

::selection {
    background-color: var(--accentcolor);
}

a {
    color: var(--darkercolor);
    font-weight: bold;
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--accentcolor);
    background-color: var(--darkercolor);
}

.clean-link:hover,
.clean-link:focus {
    background-color: transparent !important;
    color: var(--accentcolor) !important;
}

u {
    text-decoration: wavy underline 1px var(--accentcolor);
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.2;
}

h1 {
    font-size: var(--fs-h1);
    font-weight: var(--fw-bold);
    color: var(--accentcolor);
    text-align: center;
    margin-top: 100px;
    margin-bottom: 2rem;
    width: 100%;
}

h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    color: var(--accentcolor);
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.title-decorated {
    color: white !important;
    background-color: var(--accentcolor);
    width: fit-content;
    padding: 8px 15px;
    text-align: center;
    margin: 0 auto 1.5rem auto;
    display: block;
}

aside h2 {
    font-size: clamp(1.1rem, 2vw, 0.5rem);
    width: 100%;
    box-sizing: border-box;
    /* Sidebar titles keep the decorated look */
    color: white;
    background-color: var(--accentcolor);
    padding: 5px 10px;
    text-align: left;
}

h3 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    color: var(--darkercolor);
    margin-bottom: 1rem;
}

button {
    padding: 14px 16px;
    border: 2px solid black;
    font-size: 13pt;
    background-color: white;
    font-weight: bold;
    box-shadow: 5px 5px var(--accentcolor);
    cursor: pointer;
    transition: 0.1s;
}

button:active {
    box-shadow: none;
}

/* --- 3. LAYOUT STRUCTURE --- */
#container {
    max-width: 1100px;
    margin: 0 auto;
}

.flex {
    display: flex;
    align-items: flex-start;
}

aside {
    background-color: white;
    width: 200px;
    padding: 20px;
    font-size: smaller;
    position: sticky;
    top: 10px;
    align-self: flex-start;
}

main {
    flex: 1;
    padding-top: 1px;
}

.contenido {
    background-color: white;
    flex: 1;
    padding: 10px;
    order: 2;
}

/* --- 4. NAVIGATION --- */
.topnav {
    background-color: black;
    padding: 0 45px 0 15px;
    width: 100%;
    height: 75px;
    color: white;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topnav-header {
    display: flex;
    align-items: center;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 15px;
    box-shadow: none;
}
.hamburger-menu:active {
    box-shadow: none;
    transform: scale(0.95);
}

#logo {
    padding: 15px;
    font-weight: bold;
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
}

.topnav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: fit-content;
}

.topnav li {
    float: left;
}

.topnav a {
    display: inline-block;
    font-weight: 400;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.topnav li a:hover,
.topnav .dropdown:hover .dropbtn {
    background-color: var(--darkercolor);
    color: white;
}

.dropdown {
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    width: 175px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.dropdown-content a {
    color: black !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: var(--accentcolor);
    color: black !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- 5. COMPONENTS --- */

/* Hero Section */
.numberone {
    background-image: url("../images/fondos/yumeefondoprov.png");
    background-position: center;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 80pt;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.numberone b {
    font-size: 40px;
}

/* Sections & Flexboxes */
.bigflex {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    line-height: 1;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 60px;
    margin: auto;
}

.text {
    width: 80%;
    line-height: 1.5;
}

.pic {
    width: 450px;
    height: 450px;
    border-radius: 100%;
    border: 10px solid var(--accentcolor);
    overflow: hidden;
    text-align: center;
}

.pic img {
    height: 100%;
}

.loose {
    max-width: 60%;
    margin: auto;
    text-align: center;
}

/* Cards Section */
.cards {
    align-items: center;
    background-color: var(--accentcolor);
    color: var(--darkercolor);
}

.card {
    width: 20%;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 1px 5px;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    min-width: 200px;
    text-align: center;
    border-radius: 20px;
    padding: 10px;
    max-height: 500px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--darkercolor) var(--accentcolor);
}

.card:hover {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 2px 15px;
    transform: scale(1.1);
}

.card p {
    margin: 10px auto 0;
    line-height: 1.1;
}

.card img {
    border-radius: 100%;
    height: 150px;
    border: 1px solid;
}

/* Custom Buttons */
.button-contact {
    align-items: center;
    background-color: white;
    border: 2px solid olive;
    border-radius: 8px;
    box-sizing: border-box;
    color: black;
    cursor: pointer;
    display: flex;
    font-size: 16.5px;
    height: 42px;
    justify-content: center;
    line-height: 24px;
    max-width: 30%;
    padding: 0 25px;
    position: relative;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
}

.button-contact:after {
    background-color: olive;
    border-radius: 8px;
    content: "";
    display: block;
    height: 42px;
    left: 0;
    width: 100%;
    position: absolute;
    top: 1px;
    transform: translate(8px, 8px);
    transition: transform .2s ease-out;
    z-index: -1;
}

.button-contact:hover:after {
    transform: translate(0, 0);
}

.button-contact span {
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.button-contact span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    right: -20px;
    transition: 0.5s;
}

.button-contact:hover span {
    padding-right: 25px;
}

.button-contact:hover span:after {
    opacity: 1;
    right: 0;
}

/* Slideshow */
.slideshow-container {
    max-width: 600px;
    position: relative;
    margin: 20px auto 0;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -80px;
    color: black;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.texto {
    color: #000000;
    font-size: 15px;
    padding-top: 20px;
    width: 100%;
    text-align: center;
}

.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
    background-color: #717171;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Gallery */
.img-gallery {
    width: 80%;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.img-gallery img {
    width: 100%;
    height: 35vh;
    object-fit: cover;
    cursor: pointer;
    transition: 1s;
}

.img-gallery img:hover {
    opacity: 0.7;
}

.ful-img {
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.ful-img span {
    position: absolute;
    top: 5%;
    right: 5%;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.ful-img img {
    width: 90%;
    max-width: 600px;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Footer */
.footer {
    background-color: black;
    padding: 22px 5px 5px;
    width: 100%;
    height: 85px;
    color: white;
    font-size: 10pt;
    text-align: center;
}

/* Back to Top Button */
.up {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    position: fixed;
    bottom: 5px;
    right: 5px;
    background-color: var(--darkercolor);
    opacity: 0.7;
    text-align: center;
    color: white;
    font-size: 35px;
    z-index: 100;
}

.up a {
    text-decoration: none;
    color: white;
}

.up:hover {
    opacity: 1;
}

/* --- 6. MEDIA QUERIES --- */
@media only screen and (max-width: 810px) {
    .topnav {
        font-size: 14pt;
        padding: 0;
        height: auto;
        flex-direction: column;
        gap: 0;
    }

    .topnav-header {
        width: 100%;
        justify-content: space-between;
        padding: 10px 15px;
        box-sizing: border-box;
    }

    .hamburger-menu {
        display: block;
    }

    .topnav ul.nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #111;
    }

    .topnav ul.nav-links.open {
        display: flex;
    }

    .topnav li {
        width: 100%;
        text-align: center;
        border-top: 1px solid #333;
        float: none;
    }

    .topnav a {
        display: block;
        padding: 15px;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #222;
    }

    .dropdown-content a {
        color: white !important;
        padding: 12px;
    }

    .text {
        width: 90%;
    }

    .numberone {
        font-size: 60px;
    }

    .pic {
        width: 80vw;
        height: 80vw;
        max-width: 350px;
        max-height: 350px;
    }

    .bigflex {
        gap: 30px;
    }
}

@media only screen and (max-width: 768px) {
    .button-contact {
        padding: 0 25px;
    }
}

@media only screen and (max-width: 700px) {
    .flex {
        flex-direction: column;
    }

    aside {
        width: 100%;
        position: relative;
        top: 0;
        order: 2;
        margin-top: 30px;
        margin-right: 0 !important;
    }

    main {
        order: 1;
        width: 100%;
    }
}

@media only screen and (max-width: 300px) {

    .prev,
    .next,
    .text {
        font-size: 11px;
    }
}

/* --- 6b. ANCHOR SCROLL SPACING --- */
/* Permite que los enlaces internos (#services-illustrations, #contact, etc)
   no queden tapados por el navbar fijo */
.box,
.contact-info,
.catalog-section,
.faq-page-content>h1 {
    scroll-margin-top: 100px;
}

/* Estilos específicos para secciones de servicios */
#services-store,
#services-illustrations,
#services-design,
#contact {
    scroll-margin-top: 120px;
}

/* --- 7. CATALOG STYLES --- */
.catalog-section {
    padding: 20px;
}

.catalog-category {
    margin-bottom: 60px;
}

.catalog-category h2 {
    margin-bottom: 30px;
    color: white;
}

.product-grid {
    display: grid;
    gap: 30px;
}

.product-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.product-grid.grid-5 {
    grid-template-columns: repeat(3, 1fr);
}

/* Revertido a 3 según petición */

/* Responsividad para las cuadrículas */
@media (max-width: 1100px) {

    .product-grid.grid-3,
    .product-grid.grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .product-grid.grid-3,
    .product-grid.grid-5 {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: white;
    border: 2px solid var(--accentcolor);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card.discontinued {
    opacity: 0.7;
    filter: grayscale(0.5);
}

.product-image-placeholder {
    height: 280px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.product-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    text-align: left;
    margin-bottom: 10px;
    color: var(--darkercolor);
}

.product-info p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.extra-info {
    font-style: italic;
    color: #666;
}

.tags {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.tag.original {
    background: #e3f2fd;
    color: #1976d2;
}

.tag.new {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag.discontinued {
    background: #ffebee;
    color: #c62828;
}

.service-banner {
    display: flex;
    align-items: center;
    background: var(--accentcolor);
    color: white;
    margin-bottom: 20px;
    min-height: 250px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.service-banner:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-banner.clean-link:hover {
    color: white !important; /* Keep text white on banner hover */
}

.service-text {
    flex: 1;
    padding: 40px;
}

.service-image {
    flex: 1;
    height: 300px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .service-banner {
        flex-direction: column;
    }
    .service-image {
        width: 100%;
        height: 200px;
    }
}

/* --- 8. FAQ STYLES --- */
.faq-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.faq-item {
    background-color: var(--darkercolor);
    color: white !important;
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s;
}

.faq-item:hover {
    transform: scale(1.01);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: var(--fw-bold);
    margin-bottom: 5px;
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

@media (max-width: 850px) {
    .faq-container {
        grid-template-columns: 1fr;
    }
}

/* --- 9. CATALOG FILTERS (DESKTOP & MOBILE) --- */
.desktop-only-filters {
    display: block;
}

.catalog-filters-mobile {
    display: none;
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-group li {
    margin-bottom: 8px;
}

.filter-group a {
    text-decoration: none;
    color: var(--darkercolor);
    transition: 0.2s;
}

.filter-group a.active {
    background: var(--accentcolor);
    color: white !important;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Estilos específicos para el toggle "sandwich" en mobile */
@media only screen and (max-width: 700px) {
    .desktop-only-filters {
        display: none !important;
    }

    .catalog-filters-mobile {
        display: block;
        position: relative;
    }

    .filter-toggle-btn {
        background: white;
        color: var(--accentcolor);
        border: 2px solid var(--accentcolor);
        padding: 10px 20px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        justify-content: center;
        border-radius: 8px;
        box-shadow: 4px 4px 0px var(--accentcolor);
    }

    .filter-toggle-btn:active {
        box-shadow: none;
        transform: translate(2px, 2px);
    }

    /* Overlay de filtros */
    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.8);
        z-index: 2000;
        display: none;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(5px);
    }

    .filter-overlay.open {
        display: flex;
    }

    .filter-overlay-content {
        background: white;
        width: 85%;
        max-width: 400px;
        max-height: 80vh;
        padding: 30px;
        border-radius: 12px;
        position: relative;
        overflow-y: auto;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    }

    .close-filters {
        position: absolute;
        top: 10px;
        right: 15px;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: #999;
        box-shadow: none;
    }

    .filter-overlay .filter-group {
        text-align: left;
    }

    .filter-overlay .filter-group ul {
        display: block; /* Volver a vertical */
    }

    .filter-overlay .filter-group li {
        margin-bottom: 12px;
    }

    .filter-overlay .filter-group a {
        font-size: 1.1rem;
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }

    .filter-overlay .filter-group a.active {
        background: var(--accentcolor);
        color: white !important;
        padding: 8px 15px;
        border-bottom: none;
    }
}