/*
Theme Name: Inversiones Dlorens
Theme URI: https://inversionesdlorens.com
Author: Inversiones Dlorens
Description: Tema corporativo para la web publica y el portafolio de proyectos administrado como entradas.
Version: 1.5.1
Text Domain: inversiones-dlorens
*/

:root {
    --dl-green: #5c813c;
    --dl-green-dark: #27451f;
    --dl-green-deep: #142012;
    --dl-green-soft: #e8f0e3;
    --dl-gold: #ad9e51;
    --dl-cream: #d4ceb5;
    --dl-paper: #f7f8f3;
    --dl-white: #ffffff;
    --dl-ink: #21321a;
    --dl-muted: #5d6f54;
    --dl-border: #d6dfcf;
    --dl-shadow: 0 18px 50px rgba(25, 45, 20, .12);
    --dl-radius: 24px;
    --dl-container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--dl-paper);
    color: var(--dl-muted);
    font-family: "Rubik", Arial, sans-serif;
    line-height: 1.65;
}

body.admin-bar .dl-site-header { top: 32px; }

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

a { color: inherit; text-decoration: none; }

.dl-container {
    width: min(calc(100% - 40px), var(--dl-container));
    margin-inline: auto;
}

.dl-topbar {
    background: var(--dl-green);
    color: white;
    font-size: .82rem;
    font-weight: 700;
}

.dl-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    min-height: 34px;
}

.dl-topbar a:hover { text-decoration: underline; }

.dl-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(92, 129, 60, .16);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
}

.dl-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 28px;
}

.dl-logo { width: 235px; }

.dl-logo img { width: 100%; }

.dl-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--dl-ink);
    font-family: "Outfit", sans-serif;
    font-weight: 700;
}

.dl-nav a {
    position: relative;
    padding-block: 10px;
}

.dl-nav a::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 2px;
    background: var(--dl-green);
    content: "";
    transform: scaleX(0);
    transition: transform .2s ease;
}

.dl-nav a:hover::after,
.dl-nav .is-current::after { transform: scaleX(1); }

.dl-nav .dl-nav__cta {
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--dl-green);
    color: white;
}

.dl-nav .dl-nav__cta::after { display: none; }

.dl-mobile-nav { display: none; position: relative; }

.dl-mobile-nav summary {
    display: grid;
    width: 46px;
    height: 46px;
    cursor: pointer;
    list-style: none;
    place-items: center;
    border: 1px solid var(--dl-border);
    border-radius: 50%;
    color: var(--dl-ink);
    font-size: 1.45rem;
}

.dl-mobile-nav summary::-webkit-details-marker { display: none; }

.dl-mobile-nav__panel {
    position: absolute;
    top: 56px;
    right: 0;
    display: grid;
    width: min(280px, calc(100vw - 40px));
    padding: 12px;
    border: 1px solid var(--dl-border);
    border-radius: 18px;
    background: white;
    box-shadow: var(--dl-shadow);
}

.dl-mobile-nav__panel a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--dl-ink);
    font-weight: 700;
}

.dl-mobile-nav__panel a:hover { background: var(--dl-green-soft); }

.dl-hero {
    position: relative;
    display: grid;
    min-height: 380px;
    overflow: hidden;
    background-color: var(--dl-green-deep);
    background-position: center;
    background-size: cover;
    color: white;
    place-items: center;
}

.dl-hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(14, 26, 12, .92), rgba(24, 48, 18, .62));
    content: "";
}

.dl-hero::after {
    position: absolute;
    right: -12%;
    bottom: -170px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    content: "";
}

.dl-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-block: 76px;
}

.dl-hero--center { text-align: center; }

.dl-eyebrow {
    margin: 0 0 12px;
    color: #cbe2b7;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.dl-title {
    max-width: 900px;
    margin: 0;
    color: inherit;
    font-family: "Oswald", sans-serif;
    font-size: clamp(3rem, 7vw, 6.4rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: .98;
}

.dl-hero--center .dl-title { margin-inline: auto; }

.dl-hero__lead {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.dl-hero--center .dl-hero__lead { margin-inline: auto; }

.dl-section { padding-block: clamp(64px, 9vw, 104px); }

.dl-section--white { background: white; }

.dl-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 38px;
}

.dl-section__head h2 {
    margin: 0;
    color: var(--dl-ink);
    font-family: "Oswald", sans-serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.05;
}

.dl-section__head p { max-width: 600px; margin: 0; }

.dl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.dl-project-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius);
    background: white;
    box-shadow: 0 8px 30px rgba(28, 53, 21, .06);
    transition: transform .24s ease, box-shadow .24s ease;
}

.dl-project-card:hover {
    box-shadow: var(--dl-shadow);
    transform: translateY(-6px);
}

.dl-project-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--dl-green-soft);
}

.dl-project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.dl-project-card:hover .dl-project-card__media img { transform: scale(1.045); }

.dl-project-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    color: var(--dl-green);
    font-family: "Oswald", sans-serif;
    font-size: 1.1rem;
    letter-spacing: .18em;
    place-items: center;
    text-transform: uppercase;
}

.dl-project-card__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(20, 32, 18, .86);
    color: #d6e9c6;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dl-project-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px;
}

.dl-project-card__meta {
    margin: 0 0 10px;
    color: var(--dl-green);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dl-project-card h2,
.dl-project-card h3 {
    margin: 0;
    color: var(--dl-ink);
    font-family: "Outfit", sans-serif;
    font-size: 1.45rem;
    line-height: 1.2;
}

.dl-project-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 14px 0 22px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.dl-project-card__link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    color: var(--dl-green-dark);
    font-weight: 900;
    gap: 8px;
}

.dl-project-card__link::after { content: "\2192"; transition: transform .2s ease; }

.dl-project-card:hover .dl-project-card__link::after { transform: translateX(5px); }

.dl-empty {
    padding: 54px 24px;
    border: 1px solid var(--dl-border);
    border-radius: var(--dl-radius);
    background: white;
    text-align: center;
}

.dl-empty h2 { margin-top: 0; color: var(--dl-ink); }

.dl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--dl-green);
    color: white;
    font-weight: 900;
    transition: background .2s ease, transform .2s ease;
}

.dl-button:hover { background: var(--dl-green-dark); transform: translateY(-2px); }

.dl-button--ghost { border: 1px solid rgba(255, 255, 255, .5); background: transparent; }

.dl-actions { display: flex; flex-wrap: wrap; margin-top: 30px; gap: 12px; }

.dl-pagination { margin-top: 44px; }

.dl-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.dl-pagination .page-numbers {
    display: grid;
    min-width: 42px;
    height: 42px;
    padding-inline: 10px;
    border: 1px solid var(--dl-border);
    border-radius: 50px;
    background: white;
    color: var(--dl-ink);
    font-weight: 800;
    place-items: center;
}

.dl-pagination .current { border-color: var(--dl-green); background: var(--dl-green); color: white; }

.dl-back {
    display: inline-flex;
    margin-bottom: 24px;
    color: #d9e9cc;
    font-weight: 800;
    gap: 8px;
}

.dl-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 54px;
}

.dl-article__content {
    min-width: 0;
    color: #43543c;
    font-size: 1.05rem;
}

.dl-article__content > *:first-child { margin-top: 0; }

.dl-article__content h2,
.dl-article__content h3 {
    margin: 42px 0 14px;
    color: var(--dl-ink);
    font-family: "Outfit", sans-serif;
    line-height: 1.2;
}

.dl-article__content h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.dl-article__content p { margin: 0 0 20px; }

.dl-article__content .gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 30px 0;
    gap: 14px;
}

.dl-article__content .gallery-item { width: auto !important; margin: 0 !important; }

.dl-article__content .gallery-icon { height: 100%; }

.dl-article__content .gallery img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: 0 !important;
    border-radius: 18px;
    object-fit: cover;
}

.dl-article__content figure img,
.dl-article__content > img {
    width: 100%;
    border-radius: 20px;
}

.dl-article__aside {
    position: sticky;
    top: 130px;
    padding: 24px;
    border: 1px solid var(--dl-border);
    border-radius: 22px;
    background: var(--dl-green-soft);
}

.dl-article__aside h2 {
    margin: 0 0 12px;
    color: var(--dl-ink);
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
}

.dl-article__aside p { margin: 0 0 20px; font-size: .92rem; }

.dl-related { border-top: 1px solid var(--dl-border); }

.dl-site-footer { background: var(--dl-cream); color: #505c49; }

.dl-footer__main {
    display: grid;
    grid-template-columns: 1.35fr .7fr 1fr;
    padding-block: 56px;
    gap: 50px;
}

.dl-footer__logo { max-width: 260px; }

.dl-site-footer h2 {
    margin: 0 0 14px;
    color: var(--dl-green-dark);
    font-family: "Outfit", sans-serif;
    font-size: 1.1rem;
}

.dl-site-footer p { margin: 5px 0; }

.dl-site-footer nav { display: grid; gap: 8px; }

.dl-site-footer a:hover { color: var(--dl-green-dark); text-decoration: underline; }

.dl-footer__bottom {
    padding: 18px 20px;
    border-top: 1px solid rgba(39, 69, 31, .18);
    text-align: center;
    font-size: .83rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

@media (max-width: 940px) {
    .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dl-article { grid-template-columns: 1fr; }
    .dl-article__aside { position: static; }
    .dl-footer__main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    body.admin-bar .dl-site-header { top: 46px; }
    .dl-topbar__inner { justify-content: center; gap: 14px; }
    .dl-topbar__inner span:last-child { display: none; }
    .dl-header__inner { min-height: 72px; }
    .dl-logo { width: 190px; }
    .dl-nav { display: none; }
    .dl-mobile-nav { display: block; }
    .dl-hero { min-height: 330px; }
    .dl-section__head { display: block; }
    .dl-section__head p { margin-top: 14px; }
    .dl-grid { grid-template-columns: 1fr; }
    .dl-article__content .gallery { grid-template-columns: 1fr; }
    .dl-article__content .gallery img { min-height: 220px; }
    .dl-footer__main { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
    .dl-container { width: min(calc(100% - 28px), var(--dl-container)); }
    .dl-title { font-size: 3rem; }
    .dl-project-card__body { padding: 21px; }
}
