/*
 * Los Altillos — Home Page
 * Archivo: assets/home.css
 * Prefijo: lahome-
 * Depende de: assets/main.css
 * ============================================================ */

/* ---- UTILITIES ------------------------------------------- */
.lahome-wrap           { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.lahome-section        { padding: 5rem 0; }
.lahome-section--gray  { background: var(--color-bg-secondary); }
.lahome-section-header { margin-bottom: 3.5rem; }
.lahome-eyebrow        { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--color-accent); }
.lahome-section-h2     { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.1; letter-spacing: -.025em; color: var(--color-text); margin: .625rem 0 1rem; }
.lahome-section-sub    { font-size: 1.0625rem; color: var(--color-text-muted); line-height: 1.7; max-width: 600px; }

/* ---- HERO ------------------------------------------------ */
.lahome-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    /* Imagen desktop — precargada con <link rel="preload"> en el <head> */
    background-image: url('https://losaltillos.com/wp-content/uploads/2026/01/Obra-numero-3-steel-framer-Los-Altillos-Peru-Construcciones.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Fallback oscuro mientras carga */
    background-color: #030d1e;
}

/* Overlay oscuro para garantizar legibilidad del texto sobre la foto */
.lahome-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Gradiente: más oscuro abajo y a la izquierda donde está el texto */
    background: linear-gradient(
        105deg,
        rgba(2, 8, 20, 0.82) 0%,
        rgba(2, 8, 20, 0.65) 55%,
        rgba(2, 8, 20, 0.35) 100%
    );
    z-index: 0;
}

/* Línea decorativa superior (acento rojo) */
.lahome-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent) 35%, var(--color-accent-light, #e8202e) 65%, transparent 100%);
    z-index: 1;
}

/* Wash de color adicional — refuerza identidad sin tapar la foto */
.lahome-hero__wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 92% 25%, rgba(2, 55, 120, .3) 0%, transparent 65%),
        radial-gradient(ellipse 30% 40% at 5%  90%, rgba(199, 8, 29, .08) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.lahome-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 2rem 5rem;
}

/* Badge */
.lahome-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .375rem 1rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
    /* Corregido: sube de .65 a .88 → contraste ~4.8:1 sobre fondo oscuro */
    color: rgba(255, 255, 255, .88);
    margin-bottom: 1.75rem;
}
.lahome-hero__badge svg { width: 13px; height: 13px; stroke: var(--color-accent-light, #ff4d57); fill: none; stroke-width: 2; }

/* H1 */
.lahome-hero__h1 {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6.5vw, 5rem);
    line-height: 1;
    letter-spacing: -.035em;
    color: #fff;
    margin-bottom: 1.5rem;
    max-width: 760px;
}
/* "y construcción" — corregido de .32 a .7 → texto legible, efecto sutil conservado */
.lahome-hero__h1 span { color: rgba(255, 255, 255, .72); }

/* Subtitle — corregido de .5 a .82 → contraste ~4.5:1 */
.lahome-hero__subtitle {
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, .82);
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.lahome-hero__ctas    { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 3.5rem; }

/* Trust strip del hero */
.lahome-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
/* Corregido: de .38 a .72 → contraste correcto */
.lahome-hero__trust-item {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-size: .875rem;
    color: rgba(255, 255, 255, .72);
}
.lahome-hero__trust-item svg { width: 14px; height: 14px; stroke: rgba(255, 255, 255, .55); fill: none; stroke-width: 2; flex-shrink: 0; }

/* ---- BUTTONS --------------------------------------------- */
.lahome-btn-red {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1.75rem;
    border-radius: 3px;
    background: var(--color-accent);
    color: #fff;
    font-size: .9375rem;
    font-weight: 600;
    transition: background var(--transition-fast);
}
.lahome-btn-red:hover { background: var(--color-accent-light, #e8202e); }
.lahome-btn-red svg   { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.5; }

.lahome-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1.75rem;
    border-radius: 3px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .28);
    color: rgba(255, 255, 255, .9);
    font-size: .9375rem;
    font-weight: 600;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
.lahome-btn-ghost:hover { border-color: rgba(255, 255, 255, .55); color: #fff; }

.lahome-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8125rem 1.75rem;
    border: 1.5px solid var(--color-border-dark);
    border-radius: 3px;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--color-text);
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
.lahome-btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.lahome-btn-outline svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ---- STATS STRIP ----------------------------------------- */
.lahome-stats        { background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.lahome-stats__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.lahome-stat         { padding: 0 2rem; }
.lahome-stat + .lahome-stat { border-left: 1px solid var(--color-border); }
.lahome-stat__val    { font-family: var(--font-display); font-size: 2.25rem; letter-spacing: -.02em; color: var(--color-text); line-height: 1; margin-bottom: .375rem; }
.lahome-stat__label  { font-size: .875rem; color: var(--color-text-subtle); line-height: 1.5; }

/* ---- WHAT IS — split layout ------------------------------ */
.lahome-what__grid        { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.lahome-what__img-wrap    { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.lahome-what__img         { width: 100%; height: 100%; object-fit: cover; display: block; }
.lahome-what__content .lahome-section-h2  { margin-top: .5rem; }
.lahome-what__content .lahome-section-sub { margin-bottom: 2rem; }
.lahome-what__features    { display: flex; flex-direction: column; gap: 1.25rem; }
.lahome-what__feature     { display: flex; align-items: flex-start; gap: 1rem; }

/* Ícono: aumentado de 16px a 20px dentro del wrapper de 36px */
.lahome-what__feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lahome-what__feature-icon svg { width: 20px; height: 20px; stroke: var(--color-secondary); fill: none; stroke-width: 1.75; }

.lahome-what__feature-title { font-size: .9375rem; font-weight: 600; color: var(--color-text); margin-bottom: .2rem; }
.lahome-what__feature-desc  { font-size: .875rem; color: var(--color-text-muted); line-height: 1.6; }
.lahome-what__link          { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2rem; font-size: .9375rem; font-weight: 600; color: var(--color-accent); transition: gap var(--transition-fast); }
.lahome-what__link:hover    { gap: .7rem; }
.lahome-what__link svg      { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ---- COMPARISON ------------------------------------------ */
.lahome-comp__grid           { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.lahome-comp-card            { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 1.75rem; }
.lahome-comp-card__icon-wrap { width: 44px; height: 44px; border-radius: 10px; background: var(--color-bg-secondary); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.lahome-comp-card__icon-wrap svg { width: 18px; height: 18px; stroke: var(--color-text-subtle); fill: none; stroke-width: 1.75; }
.lahome-comp-card__title     { font-size: 1rem; font-weight: 600; color: var(--color-text); margin-bottom: 1.125rem; }

/* Corregido: flex con gap en lugar de space-between, evita pisar texto largo */
.lahome-comp-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: .625rem 0;
    border-bottom: 1px solid var(--color-border);
}
.lahome-comp-row:last-child   { border-bottom: none; padding-bottom: 0; }
.lahome-comp-row__label       { font-size: .875rem; color: var(--color-text-subtle); flex-shrink: 0; }
.lahome-comp-row__val         { font-size: .875rem; font-weight: 600; margin-left: auto; text-align: right; }
.lahome-comp-row__val--red    { color: var(--color-accent); }
.lahome-comp-row__val--dark   { color: var(--color-text); }
.lahome-comp__note            { margin-top: 2rem; padding: 1rem 1.25rem; background: var(--color-bg-secondary); border-left: 3px solid var(--color-border-dark); border-radius: 0 6px 6px 0; font-size: .875rem; color: var(--color-text-subtle); line-height: 1.65; }

/* ---- PILLAR CARDS ---------------------------------------- */
.lahome-pillars__grid      { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.lahome-pillar-card        { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base); }
.lahome-pillar-card:hover  { border-color: var(--color-border-hover, #c4c9d4); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lahome-pillar-card__top   { height: 3px; background: var(--color-accent); flex-shrink: 0; }
.lahome-pillar-card__body  { padding: 1.75rem; flex: 1; }
.lahome-pillar-card__icon  { width: 40px; height: 40px; border-radius: 8px; background: var(--color-bg-secondary); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; margin-bottom: 1.125rem; }
.lahome-pillar-card__icon svg { width: 18px; height: 18px; stroke: var(--color-secondary); fill: none; stroke-width: 1.5; }
.lahome-pillar-card__title { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.25; color: var(--color-text); margin-bottom: .625rem; }
.lahome-pillar-card__desc  { font-size: .875rem; line-height: 1.65; color: var(--color-text-muted); }
.lahome-pillar-card__footer { padding: 1rem 1.75rem; border-top: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; }
.lahome-pillar-card__tags  { display: flex; flex-wrap: wrap; gap: .375rem; }
.lahome-pillar-card__tag   { font-size: .6875rem; font-weight: 600; padding: .2rem .625rem; border-radius: 100px; background: var(--color-bg-secondary); border: 1px solid var(--color-border); color: var(--color-text-subtle); }
.lahome-pillar-card__cta   { font-size: .8125rem; font-weight: 600; color: var(--color-accent); display: flex; align-items: center; gap: .3rem; flex-shrink: 0; white-space: nowrap; transition: gap var(--transition-fast); }
.lahome-pillar-card__cta:hover { gap: .55rem; }
.lahome-pillar-card__cta svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ---- COUNTRIES ------------------------------------------- */
.lahome-countries__grid    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.lahome-country-card       { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 10px; padding: 1.375rem; display: flex; flex-direction: column; gap: .375rem; transition: border-color var(--transition-base), box-shadow var(--transition-base); }
.lahome-country-card--live:hover { border-color: var(--color-accent); box-shadow: var(--shadow-md); }
/* Corregido: de .45 a .75 — más legible, sin parecer contenido roto */
.lahome-country-card--soon { opacity: .75; }
.lahome-country-card__flag  { font-size: 1.75rem; line-height: 1; margin-bottom: .125rem; }
.lahome-country-card__name  { font-size: .9375rem; font-weight: 600; color: var(--color-text); }
.lahome-country-card__desc  { font-size: .8125rem; color: var(--color-text-subtle); line-height: 1.55; flex: 1; }
.lahome-country-card__link  { display: inline-flex; align-items: center; gap: .3rem; font-size: .8125rem; font-weight: 600; color: var(--color-accent); margin-top: .25rem; transition: gap var(--transition-fast); }
.lahome-country-card__link:hover { gap: .5rem; }
.lahome-country-card__link svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.lahome-country-card__soon-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-subtle); margin-top: .25rem; }

/* ---- BLOG PREVIEW ---------------------------------------- */
.lahome-blog__grid              { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.lahome-post-card               { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base); }
.lahome-post-card:hover         { border-color: var(--color-border-hover, #c4c9d4); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lahome-post-card__thumb-link   { display: block; overflow: hidden; }
.lahome-post-card__thumb-img    { width: 100%; height: 176px; object-fit: cover; display: block; transition: transform .4s ease; }
.lahome-post-card:hover .lahome-post-card__thumb-img { transform: scale(1.03); }
.lahome-post-card__body         { padding: 1.375rem; flex: 1; display: flex; flex-direction: column; }
.lahome-post-card__cat          { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--color-accent); margin-bottom: .5rem; }
.lahome-post-card__title        { font-family: var(--font-display); font-size: .9375rem; line-height: 1.3; color: var(--color-text); margin-bottom: .625rem; }
.lahome-post-card__title a      { color: inherit; }
.lahome-post-card__title a:hover { color: var(--color-accent); }
.lahome-post-card__excerpt      { font-size: .8125rem; line-height: 1.65; color: var(--color-text-muted); flex: 1; }
.lahome-post-card__footer       { padding: .875rem 1.375rem; border-top: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; }
.lahome-post-card__date         { font-size: .75rem; color: var(--color-text-subtle); }
.lahome-post-card__read         { font-size: .75rem; font-weight: 600; color: var(--color-accent); display: flex; align-items: center; gap: .25rem; }
.lahome-post-card__read svg     { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.lahome-blog__footer            { margin-top: 2.5rem; text-align: center; }

/* ---- TRUST STRIP ----------------------------------------- */
.lahome-trust        { background: var(--color-bg-secondary); border-top: 1px solid var(--color-border); }
.lahome-trust__inner { max-width: 1200px; margin: 0 auto; padding: 1.625rem 2rem; display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.lahome-trust__label { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-subtle); flex-shrink: 0; }
.lahome-trust__divider { width: 1px; height: 20px; background: var(--color-border); flex-shrink: 0; }
.lahome-trust__sources { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.lahome-trust__source  {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    color: var(--color-text-subtle);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.lahome-trust__source:hover { color: var(--color-text); }
.lahome-trust__source svg { width: 13px; height: 13px; stroke: var(--color-text-subtle); fill: none; stroke-width: 1.75; flex-shrink: 0; }

/* ---- RESPONSIVE ------------------------------------------ */
@media (max-width: 1024px) {
    .lahome-what__grid        { grid-template-columns: 1fr; gap: 3rem; }
    .lahome-comp__grid        { grid-template-columns: repeat(2, 1fr); }
    .lahome-pillars__grid     { grid-template-columns: repeat(2, 1fr); }
    .lahome-pillar-card--wide { grid-column: span 1; }
    .lahome-countries__grid   { grid-template-columns: repeat(3, 1fr); }
    /* Stats: 2 columnas con separadores controlados por grid */
    .lahome-stats__inner      { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .lahome-stat              { padding: 1.25rem 2rem; }
    .lahome-stat + .lahome-stat { border-left: none; }
    .lahome-stat:nth-child(odd)  { border-right: 1px solid var(--color-border); }
    .lahome-stat:nth-child(n+3)  { border-top: 1px solid var(--color-border); }
}

@media (max-width: 768px) {
    /* Hero mobile — imagen optimizada para portrait */
    .lahome-hero {
        background-image: url('https://losaltillos.com/wp-content/uploads/2026/01/Obra-numero-3-steel-framer-movil-Los-Altillos-Peru-Construcciones.webp');
        background-position: center top;
    }
    .lahome-hero__inner       { padding: 5rem 1.5rem 4rem; }
    .lahome-wrap,
    .lahome-stats__inner      { padding-left: 1.5rem; padding-right: 1.5rem; }
    .lahome-pillars__grid     { grid-template-columns: 1fr; }
    .lahome-blog__grid        { grid-template-columns: 1fr; }
    .lahome-comp__grid        { grid-template-columns: 1fr; }
    .lahome-countries__grid   { grid-template-columns: repeat(2, 1fr); }
    .lahome-hero__trust       { gap: 1.25rem; }
    /* Trust strip: columna en mobile con separador visual */
    .lahome-trust__inner      { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .lahome-trust__divider    { display: none; }
    .lahome-trust__sources    { border-top: 1px solid var(--color-border); padding-top: .875rem; width: 100%; }
}

@media (max-width: 480px) {
    .lahome-countries__grid { grid-template-columns: 1fr; }
    .lahome-stats__inner    { grid-template-columns: 1fr; }
    .lahome-stat + .lahome-stat { border-left: none; border-right: none; border-top: 1px solid var(--color-border); }
    .lahome-stat:nth-child(odd) { border-right: none; }
}