/* Estilos base */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* altura aproximada de #barra */
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: #f4ece0;
    background-color: #241a12;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Outfit", sans-serif;
    margin: 0;
    color: #f4ece0;
    line-height: 1.2;
}

/* Ensuring hidden elements are truly hidden */
[hidden] {
    display: none !important;
}

/* Botones */
.btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-oro {
    background-color: #c9a24a; /* dorado fuerte */
    color: #241a12;
}

.btn-oro:hover {
    background-color: #b5833d;
}

.btn-borde {
    background-color: transparent;
    color: #f4ece0;
    border: 2px solid #d8c078;
}

.btn-borde:hover {
    background-color: #d8c078;
    color: #241a12;
}

.btn-grande {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn.chico {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
}

/* Para textos chicos que no sean botones */
.chico:not(.btn) {
    font-size: 0.85rem;
    color: #cbbba4; /* texto secundario */
}

/* Barra superior */
#barra {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #241a12;
    color: #f4ece0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-family: "Outfit", sans-serif;
}

#barra h1 {
    margin: 0;
    font-size: 1.4rem;
}

/* Portada */
#portada {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #f4ece0;
    text-align: center;
    padding: 4rem 1rem;
}

#portada .filtro-oscuro {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: none;
}

#portada > * {
    position: relative;
    z-index: 1;
}

#portada h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

#portada p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

#portada > div > span {
    font-weight: 600;
}

/* Datos */
#datos {
    padding: 2rem 1rem;
}

#datos h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.grilla-4-tarjetas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.grilla-4-tarjetas > div {
    background-color: #2f2317;
    padding: 1rem;
    border-radius: 0.3rem;
}

.grilla-4-tarjetas > div strong {
    color: #d8c078;
}

/* Fotos grid */
#grilla-fotos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

#grilla-fotos img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.3rem;
    object-fit: cover;
}

/* Instalación */
#instalar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background-color: #2f2317;
    color: #f4ece0;
    text-align: center;
}

#instalar img {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

#instalar h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

#instalar p {
    margin: 0 0 1rem 0;
}

#instalar button {
    margin-top: 0.5rem;
}

/* Aviso instalar */
.aviso-instalar {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2f2317;
    color: #f4ece0;
    padding: 1rem 1.5rem;
    border-radius: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2000;
}

.aviso-instalar img {
    width: 40px;
    height: auto;
}

.aviso-instalar p {
    margin: 0;
    font-weight: 600;
}

.aviso-instalar .aviso-cerrar {
    background: transparent;
    color: #cbbba4;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Pie de página */
#pie {
    background-color: #241a12;
    color: #cbbba4;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
}

#pie p {
    margin: 0.3rem 0;
}

/* Visor de fotos */
.visor {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.visor.abierto {
    display: flex;
}

.visor img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 0.3rem;
}

.visor-pie {
    color: #f4ece0;
    margin-top: 1rem;
    text-align: center;
}

/* Media Queries */
@media (min-width: 600px) {
    .grilla-4-tarjetas {
        grid-template-columns: repeat(2, 1fr);
    }
    #grilla-fotos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .grilla-4-tarjetas {
        grid-template-columns: repeat(4, 1fr);
    }
    #grilla-fotos {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Imagenes max-width */
img {
    max-width: 100%;
    display: block;
}

/* =========================================================================
   Arreglos de la revision a mano (27/09/2026).
   Lo de arriba lo escribio el agente; aca van las cosas que quedaron mal:
   los enlaces salian azules del navegador sobre fondo oscuro, el titulo de la
   portada quedaba debajo de la barra, las secciones de fotos y ubicacion no
   tenian margen, y el visor ponia la foto y el pie uno al lado del otro.
   ========================================================================= */

/* 1. Enlaces: dorado de la paleta, no el azul del navegador */
a {
    color: #d8c078;
    text-decoration: none;
}

a:hover {
    color: #f4ece0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#datos a,
#ubicacion a,
#pie a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 2. Portada: que respire y que el titulo no quede debajo de la barra */
#portada {
    min-height: min(76vh, 620px);
    padding: calc(60px + 3.5rem) 1.2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

#portada .filtro-oscuro {
    background: linear-gradient(180deg, rgba(20,13,8,0.72) 0%, rgba(20,13,8,0.45) 45%, rgba(20,13,8,0.86) 100%);
}

#portada h2 {
    font-size: clamp(1.9rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-shadow: 0 3px 18px rgba(0,0,0,0.6);
}

#portada p {
    color: #f4ece0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

#portada > div > span {
    color: #d8c078;
}

#portada .btn-grande {
    margin-top: 1.1rem;
}

/* 3. Secciones: mismo margen lateral en todas */
#fotos,
#ubicacion {
    padding: 2.6rem 1.2rem;
}

#fotos h3,
#ubicacion h3 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

#ubicacion p {
    color: #cbbba4;
    margin: 0 0 1rem;
}

#datos {
    padding: 2.6rem 1.2rem;
}

/* 4. Visor: la foto arriba y el pie abajo, con la X arriba a la derecha */
.visor {
    flex-direction: column;
    padding: 1.2rem;
    gap: 0.6rem;
}

.visor img {
    max-width: min(1100px, 94vw);
    max-height: 78vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.visor-cerrar {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(244,236,224,0.35);
    background: rgba(0,0,0,0.45);
    color: #f4ece0;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.visor-cerrar:hover {
    background: #d8c078;
    color: #241a12;
}

/* 5. Aviso de instalacion: que no se desborde en celular */
.aviso-instalar {
    max-width: min(620px, 94vw);
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    box-shadow: 0 18px 40px -18px rgba(0,0,0,0.8);
}

.aviso-instalar p {
    flex: 1 1 100%;
    order: -1;
    font-size: 0.95rem;
    line-height: 1.35;
}

.aviso-instalar img {
    border-radius: 10px;
}

@media (min-width: 560px) {
    .aviso-instalar p {
        flex: 1 1 auto;
        order: 0;
        text-align: left;
    }
}

/* 6. Galeria: que las fotos queden prolijas y con aire */
#grilla-fotos {
    gap: 0.7rem;
}

#grilla-fotos .foto {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 0.4rem;
    overflow: hidden;
    line-height: 0;
}

#grilla-fotos img {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

#grilla-fotos .foto:hover img {
    transform: scale(1.04);
}


