/* ----------------------------
   RESET & BASE
---------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; 
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* ----------------------------
   VARIABLES THEME
---------------------------- */
:root {
    --bg: #ffffff;
    --text: #222;
    --card-bg: #fff;
    --shadow: rgba(0,0,0,0.1);
    --border: #e6e6e6;
    --accent: #d4af37; /* dorado promo */
}

.dark {
    --bg: #111;
    --text: #f2f2f2;
    --card-bg: #1a1a1a;
    --shadow: rgba(255,255,255,0.06);
    --border: #333;
}

/* ----------------------------
   CABECERA & PROMO
---------------------------- */
.promo {
    background: var(--accent);
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: 0.75rem;
    font-size: 1rem;
}

.promo a {
    color: #fff;
    text-decoration: none;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ----------------------------
   THEME SWITCH
---------------------------- */
.theme-switch {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    box-shadow: 0 3px 8px var(--shadow);
    transition: 0.3s;
}

.theme-switch:hover {
    transform: scale(1.05);
}

/* ----------------------------
   PORTADA
---------------------------- */

.portada {
    position: relative;
    width: 100%;
    height: 60vh;       /* la imagen NUNCA será más alta que esto */
    overflow: hidden;   /* recorta lo que se pase */
}

/* Centrado */
.portada-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

/* Imagen que siempre ocupa 100% del ancho */
.portada-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* se recorta cuando se pasa */
    object-position: center;
    display: block;
}


/* ----------------------------
   GALLERY MASONRY
---------------------------- */
.gallery-container {
    width: 95%;
    margin: 2rem auto;
}

.gallery {
    column-count: 4;
    column-gap: 1rem;
}

.gallery img {
    width: 100%;
    display: block;
    margin-bottom: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.gallery img.loaded {
    opacity: 1;
}

.gallery img:hover {
    transform: scale(1.05);
}

.gallery .numero {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 5px;
    z-index: 10;
}

/* Responsive */
@media(max-width: 1024px) {
    .gallery {
        column-count: 3;
    }
}

@media(max-width: 768px) {
    .gallery {
        column-count: 2;
    }
}

/* ----------------------------
   PAGINATION
---------------------------- */
.pagination {
    text-align: center;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    margin: 0 0.2rem;
    border-radius: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 2px 6px var(--shadow);
    transition: 0.3s;
}

.pagination a:hover {
    transform: translateY(-2px);
}

.pagination .active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ----------------------------
   LIGHTBOX
---------------------------- */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 2000;
}

#lightbox img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    cursor: pointer;
}

/* Numeración en lightbox */
#lightbox-num {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* ----------------------------
   WHATSAPP BUTTON
---------------------------- */
.whatsapp {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    width: 56px;
    height: 56px;
}

.whatsapp img {
    width: 56px;
    height: 56px;
    transition: transform 0.3s;
}

.whatsapp:hover img {
    transform: scale(1.1);
}

/* ----------------------------
   FOOTER
---------------------------- */
footer {
    background: #111;
    color: #fff;
    padding: 3rem 1rem;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.redes div{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.redes a{
    width: 30px;
    height: 30px;
}
.redes a img{
    width: 100%;
    height: 100%;
}
.footer-grid .col h3 {
    margin-bottom: 1rem;
}

.footer-grid .col a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    transition: 0.2s;
}

.footer-grid .col a:hover {
    color: var(--accent);
}

footer p, .copy {
    margin-top: 2rem;
    opacity: 0.7;
    font-size: 0.85rem;
}
.mapa iframe{
    border-radius: 6px;
}
.creditos{
    width: 100%;
    margin-top: 30px;
    padding-bottom: 50px;
    font-size: 1.1rem;
    a{
        color: #9955c6;
        white-space: nowrap
    }
}
/* Responsive footer */
@media(max-width:768px){
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ----------------------------
   FORMULARIO
---------------------------- */
form input,
form textarea,
form button {
    width: 100%;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-family: "Inter", Arial, sans-serif;
}

form textarea {
    min-height: 100px;
    resize: vertical;
}

form button {
    background: var(--accent);
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

form button:hover {
    background: #b88f29;
}

/* Mensaje OK */
.ok {
    background: #4caf50;
    color: #fff;
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

/* ----------------------------
   UTILITY
---------------------------- */
.loaded {
    opacity: 1 !important;
}
/* ----------------------------
   BOTÓN DE LIKE (CORAZÓN)
---------------------------- */
/* Corazón general: galería + lightbox */
.like-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.8rem;
    cursor: pointer;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    transition: 0.25s;
    z-index: 20;
}

.like-btn.liked {
    color: #ff2d55;
    -webkit-text-stroke: 2px #ff2d55;
    transform: scale(1.2);
}
/* Solo el corazón del lightbox */
#lb-like.like-btn {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    font-size: 2.4rem !important;
    z-index: 9999 !important;
}



/* ----------------------------
   CARRITO
---------------------------- */
.cart-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    cursor: pointer;
    margin: 1rem;
}
#cart-count {
    font-weight: 700;
    margin-left: 5px;
}

.cart-dropdown {
    position: absolute;
    right: 2rem;
    top: 70px;
    width: 240px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    display: none;
    box-shadow: 0 5px 15px var(--shadow);
    z-index: 3000;
}

.cart-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 250px;
    overflow-y: auto;
}

.cart-dropdown li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.cart-dropdown li button {
    background: none;
    border: none;
    color: red;
    font-size: 1.1rem;
    cursor: pointer;
}

.ws-btn {
    width: 100%;
    padding: 0.6rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    margin-top: 0.8rem;
    cursor: pointer;
}
/* Corrección: cuando el corazón del lightbox está en modo liked */
#lb-like.like-btn.liked {
    color: #ff2d55 !important;
    -webkit-text-stroke: 2px #ff2d55 !important;
}
















