/* ARCHIVO: css/inicio.css
   FUNCIÓN: reproduce la propuesta visual aprobada de La Merced de Chupas.
   ÍNDICE: 01 Portada | 02 Texto | 03 Carrusel | 04 Accesos | 05 Comunidad | 06 Celular.
   La cabecera y el pie compartidos están en base.css; el movimiento en animaciones.css. */

/* 01. PORTADA: paisaje original, capa esmeralda y curvas del territorio. */
.pagina-inicio {
    background: #fffcf7;
}
.portada-inicio {
    position: relative;
    isolation: isolate;
    overflow: clip;
    color: #fff;
    background: #005950;
}
.portada-inicio::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, #003f43fa 0%, #004c49ed 27%, #005a5480 58%, #00606720 100%),
        linear-gradient(0deg, #005648cf, transparent 60%),
        url('../imagenes/tradiciones-y-paisaje.jpg') center 46% / cover;
}
.portada-inicio::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('../imagenes/curvas-territorio.svg') center / cover;
    opacity: .65;
    pointer-events: none;
}
.luz-portada {
    position: absolute;
    inset: auto auto -90px -50px;
    width: 380px;
    height: 160px;
    background: #2cc071;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .3;
    pointer-events: none;
}
.inicio-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    align-items: center;
    min-height: 475px;
    padding: 30px 0 32px;
}

/* 02. TEXTO: título blanco y dorado, lema y botones con relieve. */
.inicio-texto {
    position: relative;
    z-index: 6;
    padding-right: 22px;
}
.inicio-insignia {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffce08;
    font-size: clamp(10px, 1vw, 14px);
    letter-spacing: 1.9px;
    font-weight: 750;
    line-height: 1.5;
    margin: 0 0 14px;
}
.inicio-insignia span {
    height: 3px;
    width: 45px;
    background: #ffce08;
    border-radius: 50%;
    transform: rotate(3deg);
}
.inicio-texto h1 {
    font-size: clamp(62px, 6.1vw, 94px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -3.8px;
    color: white;
    margin: 0 0 24px;
    text-shadow: 0 5px 8px #003d4530;
}
.inicio-texto h1 span {
    display: inline-block;
    position: relative;
    color: #fde932;
}
.inicio-texto h1 span::after {
    content: '';
    position: absolute;
    left: 1%;
    right: 4%;
    bottom: -10px;
    height: 7px;
    background: #ffcd0b;
    border-radius: 50%;
    transform: rotate(-2deg);
}
.inicio-lema {
    font-size: clamp(24px, 2.1vw, 32px);
    font-style: italic;
    font-weight: 650;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 9px;
}
.inicio-descripcion {
    font-size: clamp(14px, 1.25vw, 18px);
    line-height: 1.45;
    color: #f2fcf9;
    margin: 0 0 26px;
}
.inicio-acciones {
    gap: 16px;
    flex-wrap: nowrap;
}
.inicio-acciones .btn {
    font-size: clamp(12px, 1.13vw, 17px);
    min-height: 52px;
    padding: 0 21px;
    white-space: nowrap;
    border-radius: 10px;
    font-weight: 750;
}
.inicio-acciones .icono {
    width: 22px;
    height: 22px;
}
.boton-dorado {
    color: #002f3b;
    background: linear-gradient(120deg, #ffda25, #ffc107);
    box-shadow: 0 4px 0 #bb8f00, 0 12px 24px #002f383f;
    border: 1px solid #ffdc38;
}
.boton-dorado:hover, .boton-dorado:focus {
    background: #ffe051;
}
.boton-cristal {
    background: #00474038;
    border: 2px solid #fff;
    color: white;
    box-shadow: 0 3px 0 #003e3d60, 0 10px 18px #002f3820;
    backdrop-filter: blur(8px);
}
.boton-cristal:hover, .boton-cristal:focus {
    background: #ffffff23;
}
.boton-cristal .icono {
    width: 27px;
    height: 27px;
}

/* 03. CARRUSEL MATERIALIZE: capas con perspectiva y controles reales. */
.escenario-fotos {
    position: relative;
    perspective: 1200px;
    min-width: 0;
    padding: 0 24% 0 7%;
}
.pagina-inicio .postal-principal {
    --giro-z: -3deg;
    position: relative;
    z-index: 3;
    border: 7px solid white;
    border-radius: 24px;
    background: white;
    box-shadow: 0 5px 0 #d3ded8, 0 20px 30px #002c4b65;
}
.postal-principal .carousel {
    height: clamp(320px, 25.8vw, 397px) !important;
    border-radius: 17px 17px 10px 10px;
}
.postal-principal .diapositiva {
    height: 100%;
    min-height: 0;
    background: #d3e7d4;
    overflow: hidden;
}
.diapositiva > a {
    display: block;
    height: 100%;
}
.diapositiva img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}
.diapositiva img[src$='gente-del-campo.jpg'] {
    object-position: center 29%;
}
.diapositiva img[src$='tradiciones-y-paisaje.jpg'] {
    object-position: center bottom;
}
.velo-foto {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 65%, #002e3b9c);
    pointer-events: none;
}
.postal-paisaje {
    position: absolute;
    right: -1%;
    top: 9%;
    width: 49%;
    height: 80%;
    border: 7px solid #fff;
    border-radius: 18px;
    box-shadow: 0 15px 30px #002b4660;
    transform: rotate(8deg);
    overflow: hidden;
}
.postal-paisaje img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}
.leyenda-portada {
    position: absolute;
    left: 20px;
    right: 16px;
    bottom: 62px;
    z-index: 4;
    pointer-events: none;
}
.leyenda-portada a {
    color: white;
    pointer-events: auto;
}
.leyenda-portada h2 {
    font-size: clamp(19px, 1.7vw, 27px);
    line-height: 1.2;
    letter-spacing: -.6px;
    font-weight: 750;
    margin: 0;
    text-shadow: 0 2px 8px #002f3b55;
}
.solo-lectores {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.controles-carrusel {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 9px 4px;
    color: #005b47;
}
#contador-carrusel {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 9px;
}
.controles-carrusel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d5e5e2;
    background: white;
    box-shadow: 0 2px 0 #dbe6e3;
    color: #00624c;
    padding: 5px;
    flex-shrink: 0;
}
.controles-carrusel button:hover {
    background: #e3f4ec;
}
.controles-carrusel .icono {
    width: 20px;
    height: 20px;
}
#pausar-carrusel {
    background: #ddf0e8;
}
.puntos-carrusel {
    display: flex;
    flex: 1;
    margin-right: 20px;
    gap: 0;
}
.puntos-carrusel button {
    position: relative;
    flex: 1;
    width: auto;
    height: 28px;
    min-width: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
.puntos-carrusel button::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    top: 11px;
    background: #e1e5e5;
}
.puntos-carrusel button:first-child::before {
    border-radius: 8px 0 0 8px;
}
.puntos-carrusel button:last-child::before {
    border-radius: 0 8px 8px 0;
}
.puntos-carrusel button.elegido::before {
    background: #008461;
    border-radius: 8px;
}
.puntos-carrusel button:hover {
    background: #eff8f2;
}
.pagina-inicio .etiqueta-flotante {
    position: absolute;
    z-index: 7;
    left: 0;
    top: -4px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 17px;
    background: white;
    border-radius: 15px;
    color: #073c4b;
    box-shadow: 0 10px 18px #00303830;
}
.etiqueta-flotante strong {
    font-size: 17px;
    line-height: 1.1;
    font-weight: 750;
}
.etiqueta-flotante .icono {
    width: 32px;
    height: 32px;
    color: #ffca08;
    fill: #ffca08;
    stroke: #ffca08;
}

/* 04. ACCESOS: cuatro botones elevados, con los colores de la propuesta. */
.franja-accesos {
    background: #fcf8ef;
    padding: 19px 0;
    border-bottom: 1px solid #f4f0e6;
}
.accesos-inicio {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.acceso-inicio {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    min-height: 60px;
    border-radius: 11px;
    color: white;
    box-shadow: 0 4px 0 #003e4920, 0 8px 14px #003e491c;
    border: 1px solid #ffffff25;
}
.acceso-inicio > .icono:first-child {
    width: 35px;
    height: 35px;
}
.acceso-inicio > .icono:last-child {
    width: 22px;
    height: 22px;
    margin-left: auto;
}
.acceso-inicio span {
    font-size: clamp(13px, 1.2vw, 18px);
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}
.acceso-verde {
    background: linear-gradient(130deg, #008266, #005144);
}
.acceso-dorado {
    background: linear-gradient(130deg, #ffdb22, #ffc20a);
    color: #073740;
}
.acceso-dorado .icono:first-child {
    color: #bd4327;
}
.acceso-azul {
    background: linear-gradient(130deg, #006781, #004957);
}
.acceso-campo {
    background: linear-gradient(130deg, #3e9038, #176036);
}

/* 05. COMUNIDAD: sección editorial corta con dos vistas de la fotografía. */
.resumen-inicio {
    background: #fffdf8;
    padding: 28px 0;
}
.resumen-grid {
    display: grid;
    grid-template-columns: 1.2fr .9fr 1fr;
    align-items: stretch;
    gap: 24px;
}
.resumen-texto {
    padding: 0 15px 0 5px;
}
.raya-dorada {
    display: block;
    width: 57px;
    height: 5px;
    background: #ffbc08;
    border-radius: 8px;
    margin: 0 0 11px;
}
.resumen-texto h2 {
    color: #043d48;
    font-size: clamp(28px, 2.8vw, 42px);
    line-height: 1.02;
    letter-spacing: -1.6px;
    font-weight: 800;
    margin: 0 0 10px;
}
.resumen-texto p {
    font-size: clamp(13px, 1.15vw, 17px);
    line-height: 1.45;
    color: #343d3e;
    margin: 0 0 8px;
}
.enlace-raices {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 750;
    color: #005b46;
    border-bottom: 2px solid #e9b722;
    padding-bottom: 2px;
}
.enlace-raices .icono {
    width: 18px;
    height: 18px;
}
.resumen-foto {
    display: block;
    position: relative;
    overflow: hidden;
    height: 190px;
    align-self: center;
    border-radius: 15px;
    box-shadow: 0 5px 12px #003e4914;
}
.resumen-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.paisaje-detalle img {
    object-position: center 40%;
}
.cultura-detalle img {
    object-position: center bottom;
}

/* 06. CELULAR Y TABLETA: misma identidad, sin recortes ni desbordamientos. */
@media (min-width: 1440px) {
    .inicio-grid {
        min-height: 475px;
        padding-top: 24px;
        padding-bottom: 24px;
    }
}
@media (max-width: 1200px) {
    .inicio-grid {
        min-height: 465px;
        grid-template-columns: 46% 54%;
    }
    .inicio-texto h1 {
        font-size: 70px;
    }
    .inicio-insignia {
        font-size: 10px;
        letter-spacing: 1.3px;
        gap: 10px;
    }
    .inicio-insignia span {
        width: 25px;
    }
    .inicio-acciones {
        gap: 10px;
    }
    .inicio-acciones .btn {
        font-size: 12px;
        padding: 0 13px;
        gap: 9px;
    }
    .escenario-fotos {
        padding-left: 6%;
        padding-right: 18%;
    }
    .controles-carrusel {
        gap: 6px;
        padding-left: 4px;
        padding-right: 4px;
    }
    .puntos-carrusel {
        margin-right: 8px;
    }
    .etiqueta-flotante strong {
        font-size: 15px;
    }
    .accesos-inicio {
        gap: 16px;
    }
    .acceso-inicio {
        padding: 13px 15px;
        gap: 10px;
    }
    .acceso-inicio > .icono:first-child {
        width: 28px;
        height: 28px;
    }
    .resumen-grid {
        gap: 18px;
    }
    .resumen-texto p br {
        display: none;
    }
}
@media (max-width: 992px) {
    .inicio-grid {
        grid-template-columns: 1fr 1fr;
        min-height: 450px;
    }
    .inicio-texto h1 {
        font-size: 58px;
        letter-spacing: -2.8px;
    }
    .inicio-insignia {
        font-size: 9px;
    }
    .inicio-insignia span {
        display: none;
    }
    .inicio-acciones {
        flex-wrap: wrap;
    }
    .inicio-acciones .btn {
        min-height: 44px;
    }
    .escenario-fotos {
        padding-left: 3%;
        padding-right: 11%;
    }
    .postal-paisaje {
        right: -7%;
    }
    .postal-principal .carousel {
        height: 330px !important;
    }
    .controles-carrusel button {
        width: 28px;
        height: 28px;
    }
    .puntos-carrusel button {
        width: auto;
        min-width: 8px;
    }
    #contador-carrusel {
        font-size: 10px;
        margin-right: 3px;
    }
    .leyenda-portada {
        left: 14px;
    }
    .accesos-inicio {
        grid-template-columns: repeat(2, 1fr);
    }
    .acceso-inicio span {
        font-size: 16px;
    }
    .resumen-grid {
        grid-template-columns: 1fr 1fr;
    }
    .resumen-texto {
        grid-column: 1 / -1;
    }
    .resumen-texto h2 br {
        display: none;
    }
    .resumen-foto {
        height: 220px;
    }
}
@media (max-width: 680px) {
    .inicio-grid {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-top: 35px;
        padding-bottom: 40px;
    }
    .inicio-texto {
        padding-right: 0;
    }
    .inicio-texto h1 {
        font-size: clamp(53px, 12vw, 76px);
        letter-spacing: -2.8px;
    }
    .inicio-insignia {
        font-size: 10px;
        letter-spacing: 1.4px;
        margin-bottom: 17px;
    }
    .inicio-lema {
        font-size: 25px;
    }
    .inicio-descripcion {
        font-size: 14px;
        margin-bottom: 23px;
    }
    .inicio-descripcion br {
        display: none;
    }
    .inicio-acciones {
        gap: 12px;
    }
    .inicio-acciones .btn {
        padding: 0 13px;
        font-size: 12px;
        min-height: 48px;
    }
    .inicio-acciones .icono {
        width: 18px;
        height: 18px;
    }
    .escenario-fotos {
        width: 100%;
        max-width: 500px;
        padding: 0 14% 0 2%;
        margin: auto;
    }
    .postal-principal .carousel {
        height: 355px !important;
    }
    .postal-paisaje {
        right: 0;
        height: 83%;
        width: 48%;
    }
    .pagina-inicio .etiqueta-flotante {
        top: -18px;
        left: -3px;
        padding: 10px 14px;
        gap: 9px;
    }
    .etiqueta-flotante strong {
        font-size: 14px;
    }
    .etiqueta-flotante .icono {
        width: 27px;
        height: 27px;
    }
    .controles-carrusel {
        gap: 7px;
    }
    .leyenda-portada h2 {
        font-size: 21px;
    }
    .accesos-inicio {
        gap: 12px;
    }
    .acceso-inicio {
        min-height: 66px;
        gap: 8px;
        padding: 12px;
    }
    .acceso-inicio span {
        font-size: 13px;
        white-space: normal;
    }
    .acceso-inicio > .icono:first-child {
        width: 25px;
        height: 25px;
    }
    .acceso-inicio > .icono:last-child {
        display: none;
    }
    .resumen-inicio {
        padding: 26px 0;
    }
    .resumen-grid {
        gap: 15px;
    }
    .resumen-texto {
        padding: 0;
    }
    .resumen-texto h2 {
        font-size: 32px;
        letter-spacing: -1.2px;
    }
    .resumen-texto p {
        font-size: 14px;
    }
    .resumen-foto {
        height: 155px;
        border-radius: 12px;
    }
    .enlace-raices {
        font-size: 14px;
    }
}
@media (max-width: 360px) {
    .inicio-texto h1 {
        font-size: 49px;
    }
    .inicio-acciones .btn {
        font-size: 11px;
    }
    .controles-carrusel {
        gap: 5px;
    }
    .puntos-carrusel {
        margin-right: 3px;
    }
}
