/* Componentes SEO: CTA WhatsApp, selector de zonas, enlaces relacionados, contenido largo */

/* ─── CTA WhatsApp ────────────────────────────────────────────────────── */
.cta-wsp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #d9e6c8;
    border-left: 5px solid #25d366;
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    margin: 2rem auto;
    max-width: 860px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.cta-wsp-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 0.25rem;
}

.cta-wsp-info {
    font-size: 0.95rem;
    color: var(--ni-info-color);
    line-height: 1.6;
}

.cta-wsp-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.cta-wsp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    padding: 0.8rem 1.4rem;
    border-radius: 200px;
    white-space: nowrap;
    transition: background var(--time), box-shadow var(--time);
}

.cta-wsp-btn:hover {
    background: #1ebe5a;
    box-shadow: 0 0 18px rgba(37, 211, 102, 0.45);
    color: #fff;
}

.cta-wsp-tel {
    font-size: 0.88rem;
    color: #4d7b19;
    padding-left: 0.4rem;
}

.icono-wsp {
    flex-shrink: 0;
}

.wsp-btn-box a .icono-wsp {
    margin-right: 8px;
}

.wsp-btn-box a .circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff1313d7;
    display: inline-block;
    margin-left: 8px;
}

.header-tel {
    display: none;
    color: #4d7b19;
    margin-right: 0.5rem;
}

@media (max-width: 900px) {
    .header-tel {
        display: inline-flex;
        align-items: center;
    }
}


/* ─── Zonas (selector) ────────────────────────────────────────────────── */
.zonas-section {
    padding: 4.5rem 2rem;
}

.zonas-container {
    max-width: 1100px;
    margin: 0 auto;
}

.zonas-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--title-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.zonas-title .colored,
.relacionados-title .colored,
.landing-h2 .colored,
.landing-h1 .colored {
    color: #76B942;
}

.zonas-intro {
    color: var(--ni-info-color);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 760px;
}

.zonas-sub {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4d7b19;
    margin: 1.5rem 0 0.7rem;
}

.zonas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.zonas-list li a {
    display: inline-block;
    background: #fff;
    border: 1px solid #d9e6c8;
    color: var(--title-color);
    padding: 0.45rem 0.9rem;
    border-radius: 200px;
    font-size: 0.92rem;
    transition: all var(--time);
}

.zonas-list li a:hover,
.zonas-list li a.zonas-more {
    background: #4d7b19;
    border-color: #4d7b19;
    color: #fff;
}

.zonas-list-compact li a {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
}


/* ─── Enlaces relacionados ────────────────────────────────────────────── */
.relacionados-section {
    padding: 4rem 2rem;
    background: #f0f5e8;
}

.relacionados-container {
    max-width: 1100px;
    margin: 0 auto;
}

.relacionados-title {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    color: var(--title-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.relacionados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.relacionados-grupo-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4d7b19;
    margin-bottom: 0.6rem;
}

.relacionados-list li {
    margin-bottom: 0.35rem;
}

.relacionados-list li a {
    color: var(--title-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.relacionados-list li a:hover {
    color: #4d7b19;
    text-decoration: underline;
}


/* ─── Contenido largo (secciones genéricas, guías) ────────────────────── */
.landing-content-section {
    padding: 4rem 2rem;
}

.landing-content-section.alt {
    background: #eef2e8;
}

.landing-content-container {
    max-width: 820px;
    margin: 0 auto;
}

.landing-h1 {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    color: var(--title-color);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.landing-h1-sub {
    font-size: 1.1rem;
    color: var(--info-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.landing-h2 {
    font-size: clamp(1.45rem, 2.6vw, 1.95rem);
    color: var(--title-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.landing-h3 {
    font-size: 1.1rem;
    color: var(--title-color);
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.landing-p {
    font-size: 1.03rem;
    line-height: 1.85;
    color: var(--ni-info-color);
    margin-bottom: 1rem;
}

.landing-p a,
.landing-list a,
.landing-tabla a {
    color: #4d7b19;
    text-decoration: underline;
}

.landing-list {
    margin: 0.5rem 0 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.landing-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    line-height: 1.65;
    color: var(--ni-info-color);
    font-size: 0.98rem;
}

.landing-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: #76B942;
    border-radius: 50%;
    margin-top: 0.5rem;
}

.landing-list.numerada {
    counter-reset: paso;
}

.landing-list.numerada li::before {
    counter-increment: paso;
    content: counter(paso);
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
}

.landing-tabla-wrap {
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
}

.landing-tabla {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.93rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.landing-tabla th,
.landing-tabla td {
    text-align: left;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #e6ecdd;
    vertical-align: top;
    line-height: 1.5;
    color: var(--ni-info-color);
}

.landing-tabla th {
    background: #4d7b19;
    color: #fff;
    font-weight: 600;
}

.landing-tabla tr:last-child td {
    border-bottom: 0;
}

.landing-destacado {
    background: #f0f5e8;
    border-left: 4px solid #76B942;
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin: 1.25rem 0;
    line-height: 1.7;
    color: var(--info-color);
}

.landing-indice {
    background: #fff;
    border: 1px solid #d9e6c8;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
}

.landing-indice p {
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-indice li {
    margin-bottom: 0.3rem;
}

.landing-indice li a {
    color: #4d7b19;
    font-size: 0.95rem;
}

.landing-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1.5rem;
}

.arboles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.arbol-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    border-top: 4px solid #76B942;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.arbol-card h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.arbol-card h3 a {
    color: var(--title-color);
}

.arbol-card h3 a:hover {
    color: #4d7b19;
}

.arbol-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ni-info-color);
}

.footer-nap p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #ddd;
    max-width: 220px;
}

.hijos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem 1rem;
    margin: 1rem 0 1.5rem;
}

.hijos-grid li a {
    color: #4d7b19;
    font-size: 0.95rem;
    line-height: 1.6;
}

.hijos-grid li a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cta-wsp {
        flex-direction: column;
        align-items: stretch;
        padding: 1.2rem;
    }

    .cta-wsp-actions {
        align-items: stretch;
    }

    .cta-wsp-btn {
        justify-content: center;
    }

    .zonas-section,
    .relacionados-section,
    .landing-content-section {
        padding: 3rem 1.25rem;
    }
}

.pasos-section.alt { background: #eef2e8; }
.service-title a { color: inherit; }
.service-title a:hover { color: #4d7b19; }

/* Listado de servicios */
.servicio-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #76B942;
}

.servicio-item-img {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.servicio-item h2 a {
    color: var(--title-color);
}

.servicio-item h2 a:hover {
    color: #4d7b19;
}

.servicio-item-link {
    color: #4d7b19;
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .servicio-item {
        flex-direction: column;
    }
}

/* Galería de trabajos con detalle */
.work-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.work-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.work-card figcaption {
    padding: 1rem 1.1rem 1.2rem;
}

.work-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 0.4rem;
}

.work-card-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--ni-info-color);
}

.work-card-meta {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.work-card-meta span,
.work-card-meta a {
    background: #f0f5e8;
    color: #4d7b19;
    padding: 0.2rem 0.6rem;
    border-radius: 200px;
    font-weight: 600;
}

/* Hero: títulos largos legibles (H1 con entidad + intención + lugar) */
.hero-title {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.15;
    max-width: 900px;
    width: auto;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
    font-weight: 600;
}

.hero {
    background-color: #0c1c01c4;
}

.hero-info {
    max-width: 680px;
    width: auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.5rem, 6.5vw, 2rem);
        padding: 0 1rem;
    }

    .hero-info {
        padding: 0 1rem;
    }
}

/* El hero nunca debe depender del scroll para ser visible */
.hero-text.animate-on-scroll {
    opacity: 1;
}

/* Hero sin bloque de íconos/personaje: sólo texto sobre el fondo */
.hero-text {
    padding: 120px 1.5rem 110px;
    min-height: 60vh;
}

/* Tipografía: Barlow Condensed en títulos y botones, Poppins en el resto */
h1, h2, h3, h4, h5, h6,
.hero-title, .hero-title *, .landing-h1 *, .landing-h2 *, .zonas-title *, .relacionados-title *,
.works-title *, .services-title *, .porque-title *, .picudo-title *, .antesydespues-title *,
.faq-title *, .pasos-title *, .precio-title *, .landing-intro-title *, .landing-problema-title *,
.porque-box-title, .service-title, .feature-title, .paso-titulo, .faq-question, .precio-factor-titulo,
.work-card-title, .numero, .cta-wsp-title, .header-links-a,
.hero-link, .cta-wsp-btn, .contact-button, .precio-cta, .works-link, .porque-link-1, .porque-link-2,
.antesydespues-link, .picudo-link, .header-actions a, .filter, .servicio-item-link, .zonas-more, .wsp-btn-box a {
    font-family: "Barlow Condensed", "Poppins", sans-serif;
}

h1, h2, h3, .hero-title, .landing-h1, .landing-h2, .zonas-title, .relacionados-title, .works-title,
.services-title, .porque-title, .picudo-title, .antesydespues-title, .faq-title, .pasos-title,
.precio-title, .landing-intro-title, .landing-problema-title, .contact-title {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-title { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; font-weight: 800; }
.landing-h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.landing-h2, .zonas-title, .relacionados-title, .landing-intro-title, .faq-title, .pasos-title, .precio-title, .landing-problema-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.landing-h3, .faq-question, .paso-titulo, .relacionados-grupo-title, .arbol-card h3, .work-card-title { font-size: 1.35rem; font-weight: 600; }

.hero-link, .cta-wsp-btn, .contact-button, .precio-cta, .works-link, .porque-link-1, .porque-link-2,
.antesydespues-link, .picudo-link, .header-actions a, .filter, .servicio-item-link {
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.header-links-a { font-weight: 600; font-size: 1.15rem; letter-spacing: 0.03em; }
.wsp-btn-box a { font-weight: 600; font-size: 1.1rem; letter-spacing: 0.02em; }

/* Hero en celular: texto alineado a la izquierda */
@media (max-width: 768px) {
    .hero-text,
    .hero-text header {
        align-items: flex-start;
        text-align: left;
    }

    .hero-title,
    .hero-info {
        padding: 0;
        width: 100%;
    }

    .hero-links {
        justify-content: flex-start;
        align-items: flex-start;
        width: 100%;
    }
}

/* H1 de un solo color (sin palabra resaltada) */
h1 .colored,
.hero-title .colored,
.landing-h1 .colored,
h1.picudo-title .colored {
    color: inherit;
}

/* Botones del hero: más altos, 100% redondeados, ícono WhatsApp a la izquierda */
.hero-link:first-child,
.hero-link:last-child {
    padding: 20px 36px;
    border-radius: 999px;
    min-height: 64px;
    gap: 12px;
}

.hero-link .icono-wsp {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .hero-link:first-child,
    .hero-link:last-child {
        padding: 18px 28px;
        min-height: 58px;
        width: 100%;
        justify-content: center;
    }
}

/* Header transparente sobre el hero */
.has-hero .container-fluid {
    padding-top: 0;
}

.has-hero .hero-text {
    padding-top: 170px;
}

.header.header-transparent {
    background-color: transparent;
    box-shadow: none;
}

.header.header-transparent .header-links-a,
.header.header-transparent .header-tel,
.header.header-transparent .header-btns-bars span,
.header.header-transparent .header-btns-close span {
    color: #fff;
}

.header.header-transparent .header-links-a:hover {
    color: #76B942;
}

.header.header-transparent .header-logo-a img {
    filter: brightness(0) invert(1);
}

.header.header-full-height,
.header.header-full-height.header-transparent {
    background-color: var(--bg);
}

.header.header-full-height .header-links-a,
.header.header-full-height .header-btns-close span,
.header.header-full-height .header-tel {
    color: #271614;
}

.header.header-full-height .header-logo-a img {
    filter: none;
}

.header.active {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header.header-transparent,
.header.header-full-height {
    position: fixed;
    top: 0;
}

/* Ajustes: overlay negro, botón WhatsApp verde, menos padding en celular */
.hero {
    background-color: rgba(0, 0, 0, 0.58);
}

.hero-link:first-child {
    background-color: #25d366;
    border-color: #25d366;
}

.hero-link:first-child:hover {
    background-color: #1ebe5a;
    border-color: #1ebe5a;
}

@media (max-width: 768px) {
    .has-hero .hero-text,
    .hero-text {
        padding-top: 95px;
        padding-bottom: 60px;
        min-height: 0;
    }
}

/* Sin scroll horizontal en celular */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

.picudo-bg,
.picudo-container {
    overflow: hidden;
}

@media (max-width: 768px) {
    .picudo-img {
        width: 80%;
        max-width: 320px;
        margin: 1.5rem auto;
        display: block;
    }
}
