/* ============================================================
   SECTIONS CSS - Landing Mediafy v2
   Consolidado: caso-exito + metodo + servicios + blog + 
                testimonios + contacto + sobre-mi + faqs
   Lazy-loaded styles para secciones below-the-fold
   ============================================================ */

/* ============================================================
   CASOS ÉXITO – Galería paginada (4/2/1) con autoplay
   Scope: #casos-exito
   ============================================================ */

#casos-exito .casos-carousel {
    position: relative;
    overflow: hidden;
}
#casos-exito{
    --casos-gap: 24px;     /* separación entre cards */
    --casos-edge: 16px;    /* “aire” a izquierda/derecha para que no recorte */
}
#casos-exito .casos-grid {
    display: flex;
    flex-wrap: nowrap;     /* MUY IMPORTANTE */
    gap: var(--casos-gap);
    padding: 0 var(--casos-edge); /* esto evita el corte lateral */
    will-change: transform;
}


/* Tarjeta (mismo look que tus service-card wrappers) */
#casos-exito .caso-card {
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.4);
    overflow: hidden;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#casos-exito .caso-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.13);
    border-color: #26734d;
}

/* Zona media 4:3 */
#casos-exito .caso-media {
    aspect-ratio: 480 / 600;
    width: 100%;
    overflow: hidden;
    background: #f9f9f6; /* por si tarda en cargar */
}

/* Asegurar que cualquier wrapper de WPBakery ocupe bien */
#casos-exito .caso-media .wpb_single_image,
#casos-exito .caso-media figure,
#casos-exito .caso-media .vc_figure,
#casos-exito .caso-media .vc_single_image-wrapper {
    width: 100%;
    height: 100%;
    margin: 0;
}

#casos-exito .caso-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Franja inferior ~40px */
#casos-exito .caso-strip {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background: #ffffff;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

/* Texto “Antes / Después” según tus specs */
#casos-exito .caso-tag {
    font-size: 12px;
    color: #26734d;
    text-align: left;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 1.68px;
    text-transform: uppercase;
}

/* Ocultación por páginas */
#casos-exito .caso-card[hidden] {
    display: none !important;
}

/* Dots */
#casos-exito .casos-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
}

#casos-exito .casos-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(148, 163, 184, 0.25);
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

#casos-exito .casos-dot:hover {
    transform: translateY(-1px);
    border-color: #26734d;
}

#casos-exito .casos-dot.is-active {
    background: #26734d;
    border-color: #26734d;
}

/* Accesibilidad: foco visible */
#casos-exito .casos-dot:focus-visible {
    outline: 2px solid rgba(59, 127, 124, 0.5);
    outline-offset: 3px;
}
/* anchos responsivos */
@media (min-width: 1025px){
    #casos-exito .caso-card{ flex: 0 0 calc((100% - 3 * var(--casos-gap)) / 4); }
}
@media (min-width: 768px) and (max-width: 1024px){
    #casos-exito .caso-card{ flex: 0 0 calc((100% - 1 * var(--casos-gap)) / 2); }
}
@media (max-width: 767px){
    #casos-exito .caso-card{ flex: 0 0 100%; }
}/* ============================================================
   #metodo — TARJETAS + PASOS
   Extraído desde main.css
   ============================================================ */

/* step-number (ANTES era global) */
#metodo .step-number{
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background-color: #3b7f7c;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

/* 1) La columna .service-card solo actúa como contenedor */
#metodo .service-card{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: block !important;
}

/* 2) Estilo de tarjeta en el wpb_wrapper (contenedor exterior) */
#metodo .service-card > .vc_column-inner > .wpb_wrapper{
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    padding: 1.1rem 1.1rem 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

/* 2b) Wrapper interior en columna */
#metodo .service-card > .vc_column-inner > .wpb_wrapper > .wpb_wrapper-inner{
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Hover */
#metodo .service-card > .vc_column-inner > .wpb_wrapper:hover{
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.13);
    border-color: #3b7f7c;
}

/* 3) Tipografía dentro */
#metodo .service-card h3{
    font-size: 1.02rem;
    margin-bottom: 0.35rem;
    color: #111827;
}
#metodo .service-card p{
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.6rem;
}
#metodo .service-link{
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #2f6562;
    font-weight: 600;
}

/* 4) Igualar alturas en filas internas */
#metodo .vc_row.vc_inner{
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 32px;
}
#metodo .vc_row.vc_inner:last-of-type{
    margin-bottom: 0;
}

/* Columna interior a toda altura */
#metodo .service-card > .vc_column-inner{
    height: 100%;
}

/* 5) Empujar el último bloque hacia abajo (si lo usas) */
#metodo .service-card .wpb_wrapper-inner > .wpb_text_column:last-of-type{
    margin-top: auto;
}
#metodo .service-card .wpb_wrapper-inner > .wpb_text_column:last-of-type p{
    margin-bottom: 0;
}

/* 6) Móvil */
@media (max-width: 767px){
    #metodo .service-card > .vc_column-inner > .wpb_wrapper{
        margin-bottom: 1rem;
    }
}

/* NUEVO MÉTODO */
/* Contenedor general */
.como-funciona{
    display:flex;
    flex-direction:column;
    gap:28px;
}

/* Cada paso */
.paso{
    display:flex;
    align-items:flex-start;
    gap:18px;
}

/* NÚMERO (lo importante) */
.paso-num{
    font-size:72px; /* tamaño grande */
    transform: scale(1.3, 2);
    line-height:2;
    font-weight:800;
    color:#3ba273;         /* verde (cámbialo por tu verde exacto) */
    min-width:60px;        /* asegura columna del número */
    text-align:left;
}

/* Contenido */
.paso-contenido h3{
    margin:0 0 8px 0;
    padding-left: 20px;
    font-size:32px !important;
    font-weight:700;
}

.paso-contenido p{
    margin:0;
    padding-left: 20px;
    font-size:17px;
    line-height:1.5;
    color:#374151;
}

/* Botón tipo pastilla */
.paso-btn{
    display:inline-block;
    margin-top:12px;
    background:#3ba273;
    color:#fff;
    padding:10px 16px;
    border-radius:999px;
    font-weight:700;
    text-decoration:none;
    font-size:13px;
}

.paso-btn:hover{
    opacity:0.9;
}

/* Responsive: que no se rompa en móvil */
@media (max-width: 767px){
    .paso-num{ font-size:56px; min-width:50px; }
    .paso-contenido h3{
        font-size:25.6px !important;
        padding-left: 0px;}
    .paso-contenido p{
        padding-left: 0px;
    }
}
@media (max-width: 767px){

    /* Cada paso: apilar y controlar el orden */
    #metodo .metodo-step{
        display: flex;
        flex-wrap: wrap;
    }

    /* Forzamos ancho completo para que sea 1 columna real */
    #metodo .metodo-step .metodo-img,
    #metodo .metodo-step .metodo-text{
        width: 100% !important;
    }

    /* Orden: imagen primero, texto después */
    #metodo .metodo-step .metodo-img{ order: 2; }
    #metodo .metodo-step .metodo-text{ order: 1; }

    /* Ajustes de aire */
    #metodo .metodo-step .metodo-img{ margin-bottom: 16px; }
    #metodo .metodo-step .metodo-text{ margin-bottom: 40px; }
}
/* ============================================================
   SERVICIOS — .service-card
   ============================================================ */

#servicios .service-card{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: block !important;
}

#servicios .service-card > .vc_column-inner > .wpb_wrapper{
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    padding: 1.1rem 1.1rem 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#servicios .service-card > .vc_column-inner > .wpb_wrapper > .wpb_wrapper-inner{
    display: flex;
    flex-direction: column;
    height: 100%;
}

#servicios .service-card > .vc_column-inner > .wpb_wrapper:hover{
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.13);
    border-color: #3b7f7c;
}

#servicios .service-card h3{
    font-size: 1.02rem;
    margin-bottom: 0.35rem;
    color: #111827;
}
#servicios .service-card p{
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.6rem;
}
#servicios .service-link{
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #2f6562;
    font-weight: 600;
}

#servicios .vc_row.vc_inner{
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 32px;
}
#servicios .vc_row.vc_inner:last-of-type{ margin-bottom: 0; }

#servicios .service-card > .vc_column-inner{ height: 100%; }

#servicios .service-card .wpb_wrapper-inner > .wpb_text_column:last-of-type{
    margin-top: auto;
}
#servicios .service-card .wpb_wrapper-inner > .wpb_text_column:last-of-type p{
    margin-bottom: 0;
}

@media (max-width: 767px){
    #servicios .service-card > .vc_column-inner > .wpb_wrapper{ margin-bottom: 1rem; }
}

/* Si en servicios usas imagen dentro de la card (lo tienes en main) */
#servicios .wpb_single_image .vc_single_image-wrapper{
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 1rem;
}
/* ============================================================
   SERVICIOS — Destacados / recomendación
   ============================================================ */

#servicios .service-card.is-featured > .vc_column-inner > .wpb_wrapper{
    border-color: rgba(59, 127, 124, 0.85);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    position: relative;
}

/* Sutil “halo” */
#servicios .service-card.is-featured > .vc_column-inner > .wpb_wrapper::after{
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    background: radial-gradient(circle at top left, rgba(59, 127, 124, 0.18), rgba(245, 196, 81, 0.12), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* Badge “RECOMENDADO” */
#servicios .service-card.is-featured > .vc_column-inner > .wpb_wrapper::before{
    content: "RECOMENDADO";
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 8px 10px;
    border-radius: 999px;

    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;

    color: #1f5c3a;
    background: #fff0cb; /* de tu paleta */
    border: 1px solid rgba(245, 196, 81, 0.65);
}

/* Asegura que el contenido quede por encima del halo */
#servicios .service-card.is-featured > .vc_column-inner > .wpb_wrapper > .wpb_wrapper-inner{
    position: relative;
    z-index: 1;
}

/* Si quieres que “suban” un poco para atraer la mirada */
@media (min-width: 1025px){
    #servicios .service-card.is-featured{
        transform: translateY(-6px);
    }
}

/* Si quieres diferenciar la recomendación principal */
#servicios .service-card.is-featured.is-featured--primary > .vc_column-inner > .wpb_wrapper::before{
    content: "NUESTRA RECOMENDACIÓN";
}
/* ============================================================
   BLOG DESTACADOS – FORZAR FILA EN 3 COLUMNAS
   ============================================================ */

#blog-destacados .wpb_wrapper .vc_row{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

#blog-destacados .wpb_wrapper .vc_row > .vc_column_container{
    flex: 1 1 calc(33.333% - 2rem);
    max-width: calc(33.333% - 2rem);
    display: flex;
}

@media (max-width: 1024px){
    #blog-destacados .wpb_wrapper .vc_row > .vc_column_container{
        flex: 1 1 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }
}

@media (max-width: 767px){
    #blog-destacados .wpb_wrapper .vc_row > .vc_column_container{
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ============================================================
   TARJETA BLOG
   ============================================================ */

#blog-destacados .wpb_wrapper .vc_row > .vc_column_container > .vc_column-inner{
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#blog-destacados .wpb_wrapper .vc_row > .vc_column_container > .vc_column-inner:hover{
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    border-color: #3b7f7c;
}

/* ============================================================
   IMAGEN SUPERIOR
   ============================================================ */

#blog-destacados .wpb_wrapper .vc_row .wpb_single_image{
    margin: 0;
}

#blog-destacados .wpb_wrapper .vc_row .wpb_single_image .vc_single_image-wrapper{
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

#blog-destacados .wpb_wrapper .vc_row .wpb_single_image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   CONTENIDO INTERIOR
   ============================================================ */

#blog-destacados .wpb_wrapper .vc_row > .vc_column_container > .vc_column-inner > .wpb_wrapper{
    padding: 1.2rem 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ============================================================
   CATEGORÍA
   ============================================================ */

#blog-destacados .blog-category{
    font-size: 0.75rem;
    font-weight: 600;
    color: #3b7f7c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

/* ============================================================
   TÍTULO
   ============================================================ */

#blog-destacados h3{
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.6rem;
}

/* ============================================================
   EXTRACTO
   ============================================================ */

#blog-destacados p{
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

/* ============================================================
   BOTÓN LEER MÁS
   ============================================================ */

#blog-destacados .blog-read-more{
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2f6562;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

#blog-destacados .blog-read-more:hover{
    text-decoration: underline;
}
/* ============================================================
   TESTIMONIOS — tarjetas + highlight
   ============================================================ */

#testimonios .testimonial-highlight{
    border-left: 4px solid var(--color-secondary);
    padding-left: 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #111827;
}

#testimonios .service-card{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: block !important;
}

#testimonios .service-card > .vc_column-inner > .wpb_wrapper{
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    padding: 1.1rem 1.1rem 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#testimonios .service-card > .vc_column-inner > .wpb_wrapper > .wpb_wrapper-inner{
    display: flex;
    flex-direction: column;
    height: 100%;
}

#testimonios .service-card > .vc_column-inner > .wpb_wrapper:hover{
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.13);
    border-color: #3b7f7c;
}

#testimonios .service-card h3{
    font-size: 1.02rem;
    margin-bottom: 0.35rem;
    color: #111827;
}
#testimonios .service-card p{
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.6rem;
}
#testimonios .service-link{
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #2f6562;
    font-weight: 600;
}

#testimonios .vc_row.vc_inner{
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 32px;
}
#testimonios .vc_row.vc_inner:last-of-type{ margin-bottom: 0; }

#testimonios .service-card > .vc_column-inner{ height: 100%; }

#testimonios .service-card .wpb_wrapper-inner > .wpb_text_column:last-of-type{
    margin-top: auto;
}
#testimonios .service-card .wpb_wrapper-inner > .wpb_text_column:last-of-type p{
    margin-bottom: 0;
}

@media (max-width: 767px){
    #testimonios .service-card > .vc_column-inner > .wpb_wrapper{ margin-bottom: 1rem; }
}
/* ============================================================
   CONTACTO
   ============================================================ */

#contacto{
    background: radial-gradient(circle at top, #e0f4f3 0, #ffffff 40%, #fef4e8 95%);
}

/* La columna .cta-box solo como contenedor, sin estilos de tarjeta */
#contacto .cta-box{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* El estilo de la tarjeta va en el wrapper interior */
#contacto .cta-box > .vc_column-inner > .wpb_wrapper{
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.5);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* Alinear contenido */
#contacto .cta-box > .vc_column-inner > .wpb_wrapper > .wpb_wrapper-inner{
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Centrar bloque con max-width inline */
#contacto .cta-box .wpb_text_column div[style*="max-width: 34rem"]{
    margin: 0 auto;
}
/* ============================================================
   SOBRE MÍ
   ============================================================ */

#sobre-mi{
    /* (vacío por ahora) */
}

/* OJO: .foto_principal img se queda en main porque es común */
/* ============================================================
   FAQS
   ============================================================ */

#FAQS{
    /* (vacío por ahora) */
}
