/* =========================================================
   MONTECHICO · PÁGINA CONÓCENOS
   Todo está encapsulado para no afectar al resto de Prestashop
   ========================================================= */
body#cms section.page-content.page-cms-12 {
   padding: unset;
   border: unset;
}

.montechico-about {
    width: 100%;
    color: #414141;
    font-family: var(--body-font-family, "Golos Text", sans-serif);
    font-size: 16px;
    line-height: 1.75;
}


/* ---------- Tipografía ---------- */

.montechico-about h2,
.montechico-about h3 {
    margin-top: 0;
    font-family: var(--title-font-family, "Merriweather", serif);
    color: #121310;
    font-weight: 700;
    line-height: 1.25;
}

.montechico-about h2 {
    margin-bottom: 24px;
    font-size: clamp(28px, 3vw, 40px);
}

.montechico-about h3 {
    margin-bottom: 20px;
    font-size: clamp(23px, 2.4vw, 30px);
}

.montechico-about p {
    margin-top: 0;
    margin-bottom: 18px;
}

.montechico-about a {
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* ---------- Hero ---------- */

.montechico-hero {
    position: relative;
    max-width: none;
    margin: 0;
    padding: 80px 30px;
    overflow: hidden;
    background: var(--primary-color, #253f29);
    text-align: center;
}

/* Detalle decorativo sutil */
.montechico-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -100px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.montechico-hero::after {
    content: "";
    position: absolute;
    bottom: -170px;
    left: -120px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(196, 149, 69, 0.18);
    border-radius: 50%;
}

.montechico-hero__subtitle {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto 32px !important;
    color: #fff;
    font-family: var(--title-font-family, "Merriweather", serif);
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 400;
    line-height: 1.45;
}


/* ---------- Secciones ---------- */

.montechico-section {
    max-width: 1050px;
    margin: 0 auto;
    padding: 64px 20px;
}

.montechico-section p {
    max-width: 900px;
}

/* ---------- Sección destacada Salamanca / Vigo ---------- */

.montechico-section--soft {
    position: relative;
    max-width: none;
    padding-right: max(20px, calc((100% - 1050px) / 2));
    padding-left: max(20px, calc((100% - 1050px) / 2));
    background: var(--primary-color, #253f29);
    color: rgba(255, 255, 255, 0.88);
}

.montechico-section--soft h3 {
    color: #fff;
}

.montechico-section--soft p {
    color: rgba(255, 255, 255, 0.88);
}

.montechico-section--soft p strong {
    color: #fff;
}

/* Las tarjetas Salamanca / Vigo siguen blancas para destacar */
.montechico-section--soft .montechico-origin__point {
    border: 0;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.montechico-section--soft .montechico-origin__line {
    color: var(--secondary-color, #c49545);
}


/* ---------- Botones ---------- */

.montechico-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}


.montechico-actions--center {
    justify-content: center;
}

/* Botón del hero con más contraste */
.montechico-hero .btn-primary {
    position: relative;
    z-index: 1;
    border-color: var(--secondary-color, #c49545);
    background: var(--secondary-color, #c49545);
    color: #121310;
}

.montechico-hero .btn-primary:hover,
.montechico-hero .btn-primary:focus {
    border-color: #fff;
    background: #fff;
    color: var(--primary-color, #253f29);
}

.montechico-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 24px;
    text-decoration: none !important;
}

.montechico-cta:hover {
    transform: translateY(-1px);
}

/*
 * El CTA principal usa .btn.btn-primary del propio tema.
 * Solo definimos aquí la variante secundaria que no existe
 * específicamente para esta página.
 */
.montechico-cta--secondary {
    border: 1px solid var(--primary-color, #253f29);
    background: transparent;
    color: var(--primary-color, #253f29) !important;
}

.montechico-cta--secondary:hover,
.montechico-cta--secondary:focus {
    border-color: var(--primary-color, #253f29);
    background: var(--primary-color, #253f29);
    color: #fff !important;
}


/* ---------- Salamanca → Vigo ---------- */

.montechico-origin {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 25px;
    max-width: 900px;
    margin-top: 38px;
}

.montechico-origin__point {
    position: relative;
    min-height: 150px;
    padding: 28px 28px 25px 58px;
    border: 1px solid rgba(37, 63, 41, 0.16);
    background: #fff;
}

.montechico-origin__marker {
    position: absolute;
    top: 31px;
    left: 27px;
    width: 15px;
    height: 15px;
    border: 4px solid var(--secondary-color, #c49545);
    border-radius: 50%;
    background: #fff;
}

.montechico-origin__label {
    display: block;
    margin-bottom: 4px;
    color: #414141;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.montechico-origin__point strong {
    display: block;
    font-family: var(--title-font-family, "Merriweather", serif);
    color: #121310;
    font-size: 20px;
    line-height: 1.35;
}

.montechico-origin__line {
    min-width: 65px;
    overflow: hidden;
    color: var(--secondary-color, #c49545);
    font-size: 30px;
    text-align: center;
}


/* ---------- De la dehesa a tu mesa ---------- */

.montechico-process {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.montechico-process li {
    position: relative;
    min-height: 135px;
    padding: 26px 26px 26px 62px;
    border: 1px solid rgba(37, 63, 41, 0.14);
    background: #fff;
}

.montechico-process li::before {
    content: "✓";
    position: absolute;
    top: 27px;
    left: 27px;
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color, #253f29);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.montechico-process strong {
    display: block;
    margin-bottom: 5px;
    color: #121310;
    font-size: 17px;
}

.montechico-process span {
    display: block;
}


/* ---------- Galería ---------- */

.montechico-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 1200px;
    margin: 10px auto 70px;
    padding: 0 20px;
}

.montechico-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (max-width: 767px) {
    .montechico-gallery {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .montechico-gallery img {
        aspect-ratio: 16 / 10;
    }
}


/* ---------- Franja de garantías ---------- */

.montechico-benefits {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(37, 63, 41, 0.16);
    border-bottom: 1px solid rgba(37, 63, 41, 0.16);
}

.montechico-benefit {
    position: relative;
    padding: 34px 22px 30px;
    text-align: center;
}

.montechico-benefit + .montechico-benefit {
    border-left: 1px solid rgba(37, 63, 41, 0.16);
}

.montechico-benefit::before {
    content: "✓";
    display: flex;
    width: 31px;
    height: 31px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--primary-color, #253f29);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.montechico-benefit strong {
    display: block;
    margin-bottom: 7px;
    color: #121310;
    font-size: 15px;
    line-height: 1.35;
}

.montechico-benefit span {
    display: block;
    font-size: 14px;
    line-height: 1.5;
}

.montechico-benefit a {
    color: var(--primary-color, #253f29);
    font-weight: 600;
}


/* ---------- CTA final ---------- */

.montechico-final {
    margin-top: 70px;
    padding: 70px 30px;
    background: var(--primary-color, #253f29);
    color: #fff;
    text-align: center;
}

.montechico-final h2 {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
    color: #fff;
}

.montechico-final > p:not(.montechico-microcopy) {
    max-width: 760px;
    margin-right: auto;
    margin-bottom: 25px;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.9);
}

.montechico-final .btn-primary {
    /*
     * Dentro del bloque verde damos contraste al CTA.
     * Se mantiene estructura .btn/.btn-primary del tema.
     */
    border-color: var(--secondary-color, #c49545);
    background: var(--secondary-color, #c49545);
    color: #121310;
}

.montechico-final .btn-primary:hover,
.montechico-final .btn-primary:focus {
    border-color: #fff;
    background: #fff;
    color: var(--primary-color, #253f29);
}

.montechico-final .montechico-cta--secondary {
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff !important;
}

.montechico-final .montechico-cta--secondary:hover,
.montechico-final .montechico-cta--secondary:focus {
    border-color: #fff;
    background: #fff;
    color: var(--primary-color, #253f29) !important;
}

.montechico-microcopy {
    margin: 24px 0 0 !important;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.montechico-microcopy span {
    padding: 0 7px;
    color: var(--secondary-color, #c49545);
}


/* ---------- Tablet ---------- */

@media (max-width: 991px) {

    .montechico-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .montechico-benefit + .montechico-benefit {
        border-left: 0;
    }

    .montechico-benefit:nth-child(even) {
        border-left: 1px solid rgba(37, 63, 41, 0.16);
    }

    .montechico-benefit:nth-child(n + 3) {
        border-top: 1px solid rgba(37, 63, 41, 0.16);
    }
}


/* ---------- Móvil ---------- */

@media (max-width: 767px) {

    .montechico-hero {
            padding: 60px 20px;
        }

    .montechico-section {
        padding: 45px 15px;
    }

    .montechico-section--soft {
            padding-right: 15px;
            padding-left: 15px;
        }

    .montechico-process {
        grid-template-columns: 1fr;
    }

    .montechico-origin {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .montechico-origin__line {
        min-width: 0;
        height: 34px;
        transform: rotate(90deg);
    }

    .montechico-benefits {
        grid-template-columns: 1fr;
        margin-right: 15px;
        margin-left: 15px;
    }

    .montechico-benefit:nth-child(even) {
        border-left: 0;
    }

    .montechico-benefit + .montechico-benefit,
    .montechico-benefit:nth-child(n + 3) {
        border-top: 1px solid rgba(37, 63, 41, 0.16);
    }

    .montechico-final {
        margin-top: 50px;
        padding: 55px 18px;
    }

    .montechico-actions,
    .montechico-actions--center {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }

    .montechico-cta {
        width: 100%;
    }

    .montechico-microcopy span {
        padding: 0 3px;
    }
}