/* ============================================================
   AR CONSTRUCTORA — HOME STYLES
   Paleta: #1B3A6B (primary) · #00AFF9 (accent) · #1a2638 (charcoal)
            #EDE7DC (concrete) · #F7F5F1 (off-white) · #C9A961 (gold)
   ============================================================ */

:root {
    --ar-primary: #1B3A6B;
    --ar-primary-dark: #0F2444;
    --ar-accent: #00AFF9;
    --ar-charcoal: #1a2638;   /* Softer dark navy en vez de casi-negro */
    --ar-ink: #2d3a4f;        /* Para body */
    --ar-concrete: #EDE7DC;   /* Concrete un poco más cálido */
    --ar-concrete-2: #F4EFE6; /* Variante clara */
    --ar-off-white: #F7F5F1;  /* Off-white con tinte cálido */
    --ar-snow: #FFFFFF;
    --ar-gold: #C9A961;
    --ar-grey: #5b6677;
    --ar-grey-soft: #8a94a3;
    --ar-line: rgba(27, 58, 107, 0.14);
}

/* === TYPOGRAPHY OVERRIDES === */
.ar-home { font-family: 'Roboto', sans-serif; color: var(--ar-ink); }
.ar-home p { color: var(--ar-ink); }
.ar-home h1, .ar-home h2, .ar-home h3, .ar-home h4, .ar-home h5, .ar-home h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--ar-primary);
    letter-spacing: -0.01em;
}
.ar-display {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
}
.ar-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ar-accent);
}
.ar-eyebrow.dark { color: var(--ar-primary); }
.ar-eyebrow.light { color: rgba(255,255,255,0.85); }

/* === HERO === */
.ar-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: var(--ar-primary);
    background: #fff;
}
.ar-hero__bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    animation: arKenburns 18s ease-in-out infinite alternate;
}
/* White translucent overlay over the image */
.ar-hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgb(255 255 255 / 42%) 0%, rgb(255 255 255 / 28%) 55%, rgb(255 255 255) 100%);
    backdrop-filter: saturate(1.05);
}
@keyframes arKenburns {
    0%   { transform: scale(1.08) translate(0, 0); }
    100% { transform: scale(1.18) translate(-2%, -2%); }
}
.ar-hero__inner {
    position: relative; z-index: 2;
    width: 100%;
    padding: 0 0 80px;
}
.ar-hero__kicker {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--ar-primary);
    margin-bottom: 28px;
}
.ar-hero__kicker::before {
    content: ""; width: 50px; height: 1px; background: var(--ar-accent);
}
.ar-hero__title {
    font-size: clamp(2.6rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.035em;
    margin: 0 0 24px;
    color: var(--ar-primary);
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.ar-hero__title .accent { color: var(--ar-accent); font-style: italic; font-weight: 300; }
.ar-hero__sub {
    max-width: 560px;
    font-size: 17px; line-height: 1.65;
    color: var(--ar-ink);
    margin: 0 0 36px;
}
.ar-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ar-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    border: none; cursor: pointer;
    transition: all .35s cubic-bezier(.2,.7,.2,1);
    text-decoration: none;
}
.ar-btn--primary { background: var(--ar-accent); color: #fff; }
.ar-btn--primary:hover { background: #fff; color: var(--ar-primary); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,175,249,0.35); }
.ar-btn--ghost { background: transparent; color: var(--ar-primary); border: 1px solid rgba(27,58,107,0.4); }
.ar-btn--ghost:hover { background: var(--ar-primary); color: #fff; border-color: var(--ar-primary); }
/* Ghost en secciones oscuras */
.ar-section--dark .ar-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.45); }
.ar-section--dark .ar-btn--ghost:hover { background: #fff; color: var(--ar-primary); border-color: #fff; }
.ar-btn--dark { background: var(--ar-primary); color: #fff; }
.ar-btn--dark:hover { background: var(--ar-accent); color: #fff; transform: translateY(-2px); }
.ar-btn--outline { background: transparent; color: var(--ar-primary); border: 1px solid var(--ar-primary); }
.ar-btn--outline:hover { background: var(--ar-primary); color: #fff; }

.ar-hero__meta {
    position: absolute; left: 0; right: 0; bottom: 32px;
    display: flex; justify-content: space-between; align-items: flex-end;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--ar-primary);
    z-index: 2;
}
.ar-hero__scroll {
    display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
    text-decoration: none; color: var(--ar-primary);
}
.ar-hero__scroll-line {
    width: 1px; height: 56px; background: rgba(27,58,107,0.25); position: relative; overflow: hidden;
}
.ar-hero__scroll-line::after {
    content: ""; position: absolute; left: 0; top: -56px; width: 1px; height: 56px;
    background: var(--ar-accent); animation: arScrollLine 2.2s ease-in-out infinite;
}
@keyframes arScrollLine { 0% { top: -56px; } 100% { top: 56px; } }

/* Marquee bar */
.ar-marquee {
    background: var(--ar-charcoal); color: #fff; overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
}
.ar-marquee__track {
    display: inline-flex; gap: 48px;
    animation: arMarquee 32s linear infinite;
    white-space: nowrap;
}
.ar-marquee__item {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.32em; text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    display: inline-flex; align-items: center; gap: 48px;
}
.ar-marquee__item::after { content: "◆"; color: var(--ar-accent); font-size: 8px; }
@keyframes arMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* === SECTION BASE === */
.ar-section { padding: 120px 0; position: relative; }
.ar-section--tight { padding: 90px 0; }
.ar-section--dark { background: var(--ar-charcoal); color: #fff; }
.ar-section--dark h2, .ar-section--dark h3, .ar-section--dark h4, .ar-section--dark h5 { color: #fff; }
.ar-section--concrete { background: var(--ar-concrete); }
.ar-section-title {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 14px 0 0;
    color: var(--ar-primary);
}
.ar-section-title .accent { color: var(--ar-accent); font-style: italic; font-weight: 300; }
.ar-section-lede {
    max-width: 640px;
    font-size: 17px; line-height: 1.7;
    color: var(--ar-grey);
    margin-top: 24px;
}
.ar-section--dark .ar-section-lede { color: rgba(255,255,255,0.7); }

/* === ABOUT === */
.ar-about__media {
    position: relative; overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/5;
    background: #ddd;
}
.ar-about__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.ar-about__media:hover img { transform: scale(1.05); }
.ar-about__badge {
    position: absolute; bottom: 24px; left: 24px;
    background: var(--ar-primary); color: #fff;
    padding: 22px 28px;
    font-family: 'Montserrat', sans-serif;
}
.ar-about__badge .num { font-size: 56px; font-weight: 900; line-height: 1; color: #fff; }
.ar-about__badge .lbl { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.85; }
.ar-stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.ar-stats-strip__item { border-top: 1px solid var(--ar-line); padding-top: 18px; }
.ar-stats-strip__num { font-family: 'Montserrat', sans-serif; font-size: 36px; font-weight: 800; color: var(--ar-primary); line-height: 1; }
.ar-stats-strip__lbl { font-size: 12px; color: var(--ar-grey); margin-top: 6px; }

/* === MISIÓN / VISIÓN CARDS === */
.ar-mv-card {
    background: var(--ar-concrete-2);
    padding: 36px 32px;
    border-left: 3px solid var(--ar-accent);
    height: 100%;
    transition: all .35s ease;
}
.ar-mv-card:hover { background: #fff; box-shadow: 0 18px 40px rgba(27,58,107,0.10); }
.ar-mv-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.45rem; font-weight: 800;
    line-height: 1.2;
    margin: 14px 0 14px;
    color: var(--ar-primary);
}
.ar-mv-card__text {
    color: var(--ar-grey);
    font-size: 15.5px;
    line-height: 1.75;
    margin: 0;
}

/* === SERVICES === */
.ar-services {
    background: var(--ar-concrete);
    position: relative;
}
.ar-services::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--ar-line), transparent);
}
.ar-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--ar-line);
    border: 1px solid var(--ar-line);
}
.ar-service {
    padding: 44px 32px 38px;
    position: relative;
    transition: all .4s ease;
    cursor: default;
    background: var(--ar-snow);
    overflow: hidden;
}
.ar-service::before {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 3px;
    background: var(--ar-accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.ar-service:hover { background: var(--ar-charcoal); color: #fff; }
.ar-service:hover .ar-service__num,
.ar-service:hover .ar-service__title,
.ar-service:hover .ar-service__ico { color: #fff; }
.ar-service:hover::before { transform: scaleX(1); }
.ar-service__num {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.24em;
    color: var(--ar-accent);
    margin-bottom: 32px;
    transition: color .4s ease;
}
.ar-service__ico {
    font-size: 42px;
    color: var(--ar-primary);
    margin-bottom: 22px;
    transition: color .4s ease;
    display: inline-block;
}
.ar-service__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px; font-weight: 700;
    line-height: 1.25;
    color: var(--ar-primary);
    margin: 0;
    transition: color .4s ease;
}
@media (max-width: 991px) { .ar-services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .ar-services__grid { grid-template-columns: 1fr; } }

/* === CATEGORIES / GALLERY === */
.ar-categories__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}
.ar-cat {
    position: relative; overflow: hidden;
    cursor: pointer;
    min-height: 320px;
    background: var(--ar-charcoal);
}
.ar-cat__img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 1s ease, filter .6s ease;
    filter: brightness(0.7);
}
.ar-cat:hover .ar-cat__img { transform: scale(1.08); filter: brightness(0.5); }
.ar-cat__content {
    position: absolute; inset: 0;
    padding: 28px;
    display: flex; flex-direction: column; justify-content: flex-end;
    color: #fff; z-index: 2;
    background: linear-gradient(180deg, transparent 40%, rgba(14,17,22,0.85) 100%);
}
.ar-cat__tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--ar-accent); margin-bottom: 8px;
}
.ar-cat__title { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 800; margin: 0; color: #fff; line-height: 1.15; }
.ar-cat__arrow {
    position: absolute; top: 22px; right: 22px;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: all .4s ease;
    z-index: 2;
}
.ar-cat:hover .ar-cat__arrow { background: var(--ar-accent); transform: rotate(-45deg); }
.ar-cat--lg { grid-column: span 6; min-height: 480px; }
.ar-cat--md { grid-column: span 6; min-height: 320px; }
.ar-cat--sm { grid-column: span 4; min-height: 320px; }
@media (max-width: 767px) {
    .ar-cat--lg, .ar-cat--md, .ar-cat--sm { grid-column: span 12; min-height: 280px; }
}

/* === PROJECTS === */
.ar-projects { background: var(--ar-snow); }
.ar-project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--ar-concrete-2);
    position: relative;
    overflow: hidden;
    transition: all .4s ease;
    height: 100%;
}
.ar-project-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(27,58,107,0.18); text-decoration: none; color: inherit; background: #fff; }
.ar-project-card__img {
    position: relative; overflow: hidden;
    aspect-ratio: 4/3;
    background: #eee;
}
.ar-project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.ar-project-card:hover .ar-project-card__img img { transform: scale(1.08); }
.ar-project-card__badge {
    position: absolute; top: 16px; left: 16px;
    background: rgba(255,255,255,0.95);
    color: var(--ar-primary);
    padding: 6px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.ar-project-card__body { padding: 24px 24px 26px; background: inherit; }
.ar-project-card__body * { transition: color .35s ease; }
.ar-project-card__loc {
    font-size: 12px; color: var(--ar-grey);
    letter-spacing: 0.18em; text-transform: uppercase;
    font-family: 'Montserrat', sans-serif; font-weight: 500;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.ar-project-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px; font-weight: 700; line-height: 1.25;
    color: var(--ar-primary);
    margin: 0 0 18px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.ar-project-card__price {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px; font-weight: 800;
    color: var(--ar-primary);
    margin-bottom: 16px;
    display: flex; align-items: baseline; gap: 6px;
}
.ar-project-card__price small { font-size: 11px; font-weight: 600; color: var(--ar-grey); letter-spacing: 0.2em; }
.ar-project-card__feats {
    display: flex; gap: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ar-line);
    font-size: 13px; color: var(--ar-grey);
}
.ar-project-card__feats span { display: inline-flex; align-items: center; gap: 6px; }
.ar-project-card__feats i { color: var(--ar-accent); }

.ar-project-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    background: var(--ar-concrete-2);
    min-height: 460px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(27,58,107,0.10);
}
.ar-project-hero__img { position: relative; overflow: hidden; min-height: 320px; }
.ar-project-hero__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.ar-project-hero:hover .ar-project-hero__img img { transform: scale(1.05); }
.ar-project-hero__body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.ar-project-hero__title { font-family: 'Montserrat', sans-serif; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.15; margin: 14px 0 18px; }
@media (max-width: 767px) {
    .ar-project-hero { grid-template-columns: 1fr; }
    .ar-project-hero__body { padding: 32px 24px; }
}

/* === CTA PARALLAX === */
.ar-cta {
    position: relative;
    padding: 140px 0;
    background-image:
        linear-gradient(rgba(14,17,22,0.78), rgba(27,58,107,0.78)),
        url('/template/images/hormigon/20210526_091811.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
}
.ar-cta h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0 0 24px;
}
.ar-cta h2 .accent { color: var(--ar-accent); font-style: italic; font-weight: 300; }
.ar-cta p { font-size: 18px; max-width: 640px; margin: 0 auto 36px; color: rgba(255,255,255,0.85); line-height: 1.6; }

/* === STATS === */
.ar-stats {
    background: var(--ar-charcoal);
    padding: 100px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.ar-stats::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0,175,249,0.12), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(27,58,107,0.25), transparent 50%);
}
.ar-stats .container { position: relative; z-index: 1; }
.ar-stat {
    text-align: left;
    border-left: 1px solid rgba(255,255,255,0.12);
    padding: 8px 0 8px 28px;
}
.ar-stat__num {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.04em;
}
.ar-stat__num .plus { color: var(--ar-accent); }
.ar-stat__lbl {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-top: 14px;
}

/* === BLOG === */
.ar-blog-card {
    background: #fff;
    height: 100%;
    display: flex; flex-direction: column;
    transition: all .4s ease;
    border: 1px solid var(--ar-line);
}
.ar-blog-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(14,17,22,0.10); border-color: transparent; }
.ar-blog-card__img { aspect-ratio: 16/10; overflow: hidden; }
.ar-blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.ar-blog-card:hover .ar-blog-card__img img { transform: scale(1.07); }
.ar-blog-card__body { padding: 26px 24px; flex: 1; display: flex; flex-direction: column; }
.ar-blog-card__date { font-family: 'Montserrat', sans-serif; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ar-accent); margin-bottom: 12px; }
.ar-blog-card__title { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ar-primary); margin: 0 0 12px; }
.ar-blog-card__excerpt { font-size: 14px; color: var(--ar-grey); line-height: 1.6; flex: 1; }
.ar-blog-card__link {
    margin-top: 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--ar-primary); text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    transition: gap .3s ease;
}
.ar-blog-card__link:hover { gap: 14px; color: var(--ar-accent); text-decoration: none; }

/* === CONTACT === */
.ar-contact { background: var(--ar-snow); }
.ar-contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: stretch; }
@media (max-width: 991px) { .ar-contact__grid { grid-template-columns: 1fr; } }
.ar-contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.ar-contact__card {
    background: #fff;
    padding: 28px 24px;
    border-left: 3px solid var(--ar-accent);
}
.ar-contact__card h6 {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--ar-grey); margin: 0 0 12px;
}
.ar-contact__card p { margin: 0; color: var(--ar-ink); font-size: 15px; line-height: 1.6; }
.ar-contact__card a { color: var(--ar-primary); font-weight: 500; }
.ar-contact__card a:hover { color: var(--ar-accent); }
.ar-contact__map { min-height: 100%; overflow: hidden; border-radius: 4px; }
.ar-contact__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

/* Section header layout */
.ar-sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 30px; margin-bottom: 60px; }
.ar-sec-head__title { max-width: 720px; }
.ar-sec-head__cta { white-space: nowrap; }

/* Hide template defaults that conflict */
.ar-home .section-id { display: none; }
