/* =========================================================
   PÁGINA: MÉTODOS
   Napo & Lola
   ========================================================= */

/* =========================================================
   HERO
   ========================================================= */

.metodos-hero {
    background-image: url("../images/hero/hero_metodos.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* =========================================================
   INTRO — TRANSICIÓN
   ========================================================= */

.metodos-intro {
    background: var(--marfil);
    color: var(--cafe);
}

.metodos-intro__header {
    min-height: min(620px, 72vh);
    padding-top: clamp(80px, 10vw, 130px);
    padding-bottom: clamp(40px, 5vw, 60px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.metodos-intro__eyebrow {
    margin-bottom: 16px;
    font-family: var(--fuente-texto);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--verde-olivo);
}

.metodos-intro__title {
    font-family: var(--fuente-titulos);
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 500;
    line-height: 1;
}

.metodos-intro__floritura {
    width: clamp(130px, 17vw, 210px);
    height: 34px;
    margin: 25px auto 23px;
}

.metodos-intro__text {
    max-width: 620px;
    font-size: clamp(14px, 1.35vw, 16px);
    line-height: 1.9;
    font-weight: 300;
}


/* =========================================================
   SECCIÓN GALERÍA + PANEL
   ========================================================= */

.metodos-seccion {
    position: relative;
    background: var(--marfil);
    color: var(--cafe);

    padding-top: clamp(30px, 4vw, 50px);
    padding-bottom: clamp(40px, 4vw, 90px);
}

.metodos-seccion__header {
    max-width: 700px;
    margin-bottom: 55px;
}

.metodos-bloque__numero {
    margin-bottom: 12px;
    font-family: var(--fuente-texto);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--beige);
}

.metodos-bloque__eyebrow {
    margin-bottom: 17px;
    font-family: var(--fuente-texto);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--verde-olivo);
}

.metodos-bloque__title {
    max-width: 620px;
    margin-bottom: 24px;
    font-family: var(--fuente-titulos);
    font-size: clamp(38px, 4.5vw, 60px);
    font-weight: 500;
    line-height: 1.08;
}

.metodos-seccion__intro {
    max-width: 620px;
    font-size: 15px;
    line-height: 1.95;
    font-weight: 300;
}


/* =========================================================
   GALERÍA DE MÉTODOS
   ========================================================= */

.metodos-galeria-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.metodos-galeria {
    display: flex;
    gap: clamp(14px, 2vw, 20px);
    padding-inline: clamp(20px, 5vw, 40px);
    width: max-content;
}

.metodo {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    flex: 0 0 auto;
    width: 140px;

    scroll-snap-align: start;
}

.metodo__imagen {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 3px;
    overflow: hidden;

    border: 2px solid transparent;

    transition:
        border-color var(--transicion),
        box-shadow var(--transicion),
        transform var(--transicion);
}

.metodo__imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.metodo__imagen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(81, 56, 44, 0);
    transition: background var(--transicion);
    pointer-events: none;
}

.metodo:hover .metodo__imagen::after {
    background: rgba(81, 56, 44, 0.24);
}

.metodo:hover .metodo__imagen img {
    transform: scale(1.04);
}

.metodo__nombre {
    font-family: var(--fuente-texto);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cafe);
    text-align: center;
    line-height: 1.4;
    transition: color var(--transicion);
}

.metodo.is-active .metodo__imagen {
    border-color: var(--verde-olivo);
    box-shadow: 0 10px 22px rgba(152, 159, 117, 0.42);
}

.metodo.is-active .metodo__nombre {
    color: var(--verde-olivo);
}


/* =========================================================
   PANEL DE DETALLE
   ========================================================= */

.metodos-panel {
    width: 100%;
    overflow: hidden;
    margin-top: clamp(22.5px, 3vw, 37.5px);
    padding-block: 40px;   /* ← espacio para la sombra arriba y abajo */
}

.metodos-panel__inner {
    width: min(calc(100% - 40px), var(--ancho-contenido));
    margin-inline: auto;
}

/* =========================================================
   TARJETA DE DETALLE — Imagen izquierda + texto derecha
   ========================================================= */


.metodo-detalle {
    display: none;

    grid-template-columns: 61.8% 38.2%;

    border-radius: 3px;
    overflow: hidden;

    border: 1px solid rgba(81, 56, 44, 0.10);

    box-shadow:
        0 4px 12px rgba(81, 56, 44, 0.08),
        0 16px 40px rgba(81, 56, 44, 0.12);

    background: rgba(250, 249, 247, 0.72);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);

    color: var(--cafe);
}


.metodo-detalle.is-active {
    display: grid;
    animation: metodoSlideIn 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes metodoSlideIn {
    from {
        opacity: 0;
        transform: translateX(100vw);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Imagen — columna izquierda */
.metodo-detalle__imagen {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 460px;
    padding: clamp(20px, 3vw, 40px);
}


.metodo-detalle__imagen img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;

    object-fit: contain;
}



/* Texto — columna derecha */
.metodo-detalle__texto {
    padding: clamp(40px, 5vw, 70px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;

    color: var(--cafe);
}



.metodo-detalle__texto h3 {
    font-family: var(--fuente-titulos);
    font-size: clamp(28px, 2.6vw, 38px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--cafe);
}

.metodo-detalle__texto p {
    max-width: 720px;
    font-family: var(--fuente-texto);
    font-size: 14px;
    line-height: 1.9;
    font-weight: 300;
    color: var(--cafe);
    margin: 0;
}

.metodo-detalle__texto strong {
    font-weight: 600;
    color: var(--cafe);
}

/* Indentación de lista dentro del texto */
.lista-metodo {
    padding-left: 25px;
	font-size: 14px;
}

/* =========================================================
   BOTÓN — VOLVER AL INICIO
   ========================================================= */

.metodos-volver {
    padding: 0 0 clamp(90px, 11vw, 145px);
    text-align: center;
}

.metodos-volver__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 28px;

    border-radius: var(--radio-suave);

    background-color: var(--verde-olivo);
    color: var(--marfil);

    font-family: var(--fuente-texto);
    font-size: 12px;
    font-weight: 300;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        background-color var(--transicion),
        transform var(--transicion);
}

.metodos-volver__button:hover {
    background-color: var(--cafe);
    transform: translateY(-2px);
}


/* =========================================================
   CIERRE + NOTA AL PIE DE LOS MÉTODOS
   ========================================================= */

.metodos-nota {
    margin-top: clamp(55px, 7vw, 85px);
    padding-top: clamp(35px, 4vw, 55px);

    border-top: 1px solid var(--verde-olivo);
}

/* Bloque de cierre — texto grande en verde olivo */
.metodos-cierre {
    max-width: 780px;
    margin-inline: auto;
    margin-bottom: clamp(40px, 5vw, 60px);
    text-align: center;
}

.metodos-cierre__titulo {
    margin: 0 0 clamp(16px, 2vw, 22px) 0;

    font-family: var(--fuente-titulos);
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 500;
    line-height: 1.2;

    color: var(--verde-olivo);
}

.metodos-cierre__texto {
    margin: 0 0 clamp(16px, 2vw, 22px) 0;

    font-family: var(--fuente-texto);
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 300;
    line-height: 1.75;

    color: var(--verde-olivo);
}

.metodos-cierre__cta {
    margin: 0;

    font-family: var(--fuente-texto);
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 600;
    line-height: 1.75;

    color: var(--verde-olivo);
}

/* =========================================================
   IMAGEN DE CIERRE
   ========================================================= */

.metodos-cierre__imagen {
    display: flex;
    justify-content: center;

    margin: clamp(35px, 4vw, 55px) 0 clamp(45px, 5vw, 70px);
    padding: 0;
}

.metodos-cierre__imagen img {
    display: block;

    width: auto;
    max-width: min(100%, 420px);
    height: auto;
    max-height: 320px;

    object-fit: contain;
}


/* Aviso legal — NOTA */
.metodos-nota__aviso {
    max-width: 720px;
    margin: 0 0 clamp(10px, 2vw, 28px);

    font-family: var(--fuente-texto);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.9;
    font-style: italic;

    color: rgba(81, 56, 44, 0.72);
}

.metodos-nota__label {
    font-weight: 600;
    font-style: normal;
    color: #C0392B;
}




/* =========================================================
   DESKTOP — GALERÍA EN UNA FILA DE 7
   ========================================================= */

@media (min-width: 769px) {

    .metodos-galeria-wrap {
        overflow: visible;
        scroll-snap-type: none;
    }

    .metodos-galeria {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: clamp(15px, 2vw, 25px);

        width: min(calc(100% - 40px), var(--ancho-contenido));
        margin-inline: auto;

        padding-inline: 0;
    }

    .metodo {
        width: auto;
    }

    .metodo__nombre {
        font-size: 10px;
        letter-spacing: 0.12em;
    }
}


/* =========================================================
   TABLET / MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    .metodo-detalle {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .metodo-detalle__imagen {
        min-height: 280px;
        padding: 30px;
    }

    .metodo-detalle__texto {
        padding: 32px 26px;
    }

    .metodo-detalle__texto h3 {
        font-size: 26px;
    }

    .metodo-detalle__texto p {
        font-size: 14px;
        line-height: 1.8;
    }
}