/* ----------------------------
   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: clamp(350px, 40vh, 600px);
    overflow: hidden;
}

.portada img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portada:hover img {
    transform: scale(1.05);
}

.portada-texto {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.portada-texto h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
}

.portada-texto p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

/* ----------------------------
   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;
}








