/* =========================================================
   LAYOUT GENERAL
   ========================================================= */

.pagina {
    width: var(--main-width);
    margin: 0 auto;
    padding: 0rem 0 5rem;
}



/* MED SUN */
/* body {
    background:
        radial-gradient(
            circle at -10% -10%,
            rgba(255, 190, 80, 0.85) 0%,
            rgba(255, 220, 140, 0.55) 16%,
            rgba(255, 240, 210, 0.20) 34%,
            transparent 55%
        ),
        var(--bg-main);
} */

/* LOW SUN */
body {
    background:
        radial-gradient(
            circle at -10% -10%,
            rgba(255, 190, 80, 0.85) 0%,
            rgba(255, 220, 140, 0.55) 12%,
            rgba(255, 240, 210, 0.20) 25%,
            transparent 40%
        ),
        var(--bg-main);
}


/* =========================================================
   HERO — Portada con imagen de fondo
   ========================================================= */

.portada {
    min-height: 420px;
    border-radius: var(--small-radius);
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-end;
    color: rgb(255, 245, 245);
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
    /* background: url("../images/casilla/house_forest.jpg") center / cover no-repeat; */

    background: url("../images/main_page_sunny.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    overflow: hidden;
}

.portada::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background: rgba(0, 0, 0, .20); */
}

.portada-cuerpo {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.portada-titulo {
    color: var(--primary-soft);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-bottom: 1rem;
}

.portada-texto {
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    max-width: 50ch;
}


.acciones {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}


/* =========================================================
   SOBRE NOSOTROS — Bloque de texto centrado
   ========================================================= */

.sobre {
    margin-bottom: 5rem;
    text-align: center;
}

.sobre-cuerpo {
    max-width: 720px;
    margin: 0 auto;
}

.sobre-cuerpo h2 {
    margin-bottom: 1rem;
}


/* =========================================================
   SECCIONES IMAGEN + TEXTO (tienda y casa rural)
   ========================================================= */

.seccion-imagen {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.seccion-imagen-foto {
    border-radius: var(--small-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.seccion-imagen-foto img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    border-radius: var(--small-radius);

}

.seccion-imagen-texto h2 {
    margin-bottom: .75rem;
}

.seccion-imagen-texto p {
    margin-bottom: 1.5rem;
}

/* Ficha de datos dentro de la sección tienda */
.ficha-mini {
    background: var(--bg);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.dato {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: .95rem;
}

.dato:last-child {
    border-bottom: none;
}

/* Lista de ventajas casa rural */
.lista-ventajas {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .seccion-imagen {
        grid-template-columns: 1fr 1fr;
    }

    /* Invertir orden visual en desktop para la sección casa rural */
    .seccion-imagen--invertida .seccion-imagen-foto {
        order: 2;
    }

    .seccion-imagen--invertida .seccion-imagen-texto {
        order: 1;
    }
}


/* =========================================================
   MAPA — Localización con iframe embebido
   ========================================================= */

.map-section {
    margin-bottom: 2rem;
}

.map-header {
    margin-bottom: 1.5rem;
}

.map-header h2 {
    margin-bottom: .5rem;
}

.map-section iframe {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
}


/* =========================================================
   UTILIDADES LOCALES
   ========================================================= */

.etiqueta {
    display: inline-block;
    margin-bottom: .6rem;
    color: var(--green);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.texto-secundario {
    color: var(--text-muted);
}

.texto-pequeno {
    font-size: .9rem;
}


/* =========================================================
   CARRUSEL — Sección casa rural
   ========================================================= */
   
.carrusel {
    border-radius: var(--small-radius);
    overflow: hidden;
    position: relative;
    height: 380px;
}

.carrusel-pista {
    position: relative;
    height: 100%;
}

.carrusel-pista img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--small-radius);

    opacity: 0;
    transform: translateX(-100%);
    transition: transform .8s ease, opacity .8s ease;

}

.carrusel-pista img.activo {
    opacity: 1;
    transform: translateX(0);
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,.75);
    border: none;
    border-radius: 999px;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.carrusel-btn:hover { background: white; }

.carrusel-btn--prev { left:  .75rem; }
.carrusel-btn--next { right: .75rem; }