:root {
    --bg-dark: #0d1117;
    --bg-deep: #07090d;
    --bg-light: #f3f0ea;
    --paper: #fffdf9;
    --text-dark: #1d1c19;
    --text-soft: #5e5952;
    --gold: #c2a56b;
    --gold-strong: #a3854d;
    --line-soft: rgba(194, 165, 107, 0.35);
    --display-font: 'Ubuntu', 'Calibri', 'Segoe UI', sans-serif;
    --body-font: 'Ubuntu', 'Calibri', 'Segoe UI', sans-serif;
}

body {
    font-family: var(--body-font);
    color: var(--text-dark);
    background: radial-gradient(circle at 10% 0%, #f5efe4 0%, #ede4d5 45%, #e7ddcd 100%);
    min-height: 100%;
}

h1,
h2,
h3,
h4 {
    font-family: var(--display-font);
    letter-spacing: 0.01em;
    color: #f2e7d1;
    margin-top: 0;
}

p,
li,
a,
span {
    font-family: var(--body-font);
}

.hero-shell {
    position: relative;
    overflow: hidden;
    padding-bottom: 90px;
    background-size: cover;
    background:
        linear-gradient(125deg, rgba(245, 236, 219, 0.9), rgba(225, 213, 194, 0.7)),
        url('../img/banner02.jpeg') center center / cover no-repeat;
    animation: heroPan 22s ease-in-out infinite alternate;
}

.hero-shell::before,
.hero-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero-shell::before {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(155, 125, 76, 0.22) 0%, rgba(155, 125, 76, 0) 70%);
    top: -180px;
    right: -80px;
    animation: floatBlob 13s ease-in-out infinite;
}

.hero-shell::after {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(145, 163, 179, 0.18) 0%, rgba(145, 163, 179, 0) 72%);
    bottom: -180px;
    left: -90px;
    animation: floatBlob 16s ease-in-out infinite reverse;
}

.box-header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 84px;
    background: linear-gradient(to bottom, rgba(250, 246, 239, 0.95), rgba(250, 246, 239, 0.35));
    z-index: 20;
}

.box-logo {
    padding: 20px 24px;
}

.box-logo img {
    filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5));
}

.box-primary-nav-trigger {
    right: 22px;
}

.box-primary-nav-trigger .box-menu-text {
    color: #1e1a13;
}

.box-primary-nav-trigger .box-menu-icon,
.box-primary-nav-trigger .box-menu-icon::before,
.box-primary-nav-trigger .box-menu-icon::after {
    background-color: #1e1a13;
}

#navigation {
    position: relative;
    z-index: 35;
}

.box-header.menu-is-open {
    background: rgba(16, 13, 9, 0.95);
    border-bottom: 1px solid rgba(217, 191, 138, 0.32);
}

.box-header.menu-is-open .box-menu-text {
    color: #f4e6cb;
}

.box-header.menu-is-open .box-menu-icon::before,
.box-header.menu-is-open .box-menu-icon::after {
    background-color: #f4e6cb;
}

.box-primary-nav {
    z-index: 34;
    background: rgba(0, 0, 0, 0.96);
    padding: 128px 0 36px;
}

.box-primary-nav li {
    margin: 0.35em 0;
}

.box-primary-nav .box-nav-close-wrap {
    position: absolute;
    top: 20px;
    right: 22px;
    margin: 0;
}

.box-nav-close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.box-nav-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.box-primary-nav a {
    color: #ffffff;
    border-radius: 10px;
    padding: 0.5em 1.1em;
}

.box-primary-nav a:hover {
    color: #f3f3f3;
    background: rgba(255, 255, 255, 0.08);
}

.box-primary-nav .box-label {
    color: #ffbf00;
    letter-spacing: 0.06em;
}

.box-primary-nav .ion-ios-circle-filled.color {
    color: #ffbf00;
    margin-left: 6px;
    vertical-align: middle;
}

.hero-modern {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 160px 28px 0;
    margin: 0 auto;
    color: #1f1a13;
}

.hero-modern__tag {
    display: inline-block;
    border: 1px solid var(--line-soft);
    color: #6d5732;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 10px 16px;
    margin-bottom: 28px;
    backdrop-filter: blur(3px);
}

.hero-modern h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 0.95;
    margin-bottom: 24px;
    text-wrap: balance;
    animation: rise 1s ease-out;
    color: #201b14;
}

.hero-modern p {
    color: #4f4538;
    max-width: 680px;
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    line-height: 1.7;
    margin-bottom: 34px;
    animation: rise 1.1s ease-out;
}

.hero-modern__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
    animation: rise 1.2s ease-out;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    letter-spacing: 0.02em;
    font-weight: 600;
    padding: 12px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-modern--solid {
    color: #17130d;
    background: linear-gradient(120deg, #d9bf8a 0%, #b7985f 100%);
    box-shadow: 0 10px 30px rgba(183, 152, 95, 0.35);
}

.btn-modern--ghost {
    color: #1e1a13;
    border: 1px solid rgba(30, 26, 19, 0.35);
    background: rgba(255, 255, 255, 0.38);
}

.btn-modern:hover,
.btn-modern:focus {
    color: inherit;
    text-decoration: none;
    transform: translateY(-3px) scale(1.015);
}

.hero-modern__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.hero-modern__meta li {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(30, 26, 19, 0.18);
    border-radius: 14px;
    padding: 16px;
    color: #4f4538;
}

.hero-modern__meta strong {
    display: block;
    color: #e9d0a0;
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.section-modern {
    padding: 88px 28px;
}

.section-modern--light {
    background: linear-gradient(180deg, var(--paper) 0%, #ede8de 100%);
    color: var(--text-dark);
}

.section-modern--dark {
    background: linear-gradient(170deg, #10151f 0%, #0a0e15 100%);
}

.section-modern--faq {
    background: linear-gradient(180deg, #f4efe6 0%, #ece4d7 100%);
    border-top: 1px solid rgba(29, 28, 25, 0.08);
}

.section-modern__heading {
    max-width: 860px;
    margin: 0 auto 34px;
}

.section-modern__heading span {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    color: var(--gold-strong);
    font-weight: 700;
}

.section-modern__heading h2 {
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    line-height: 1;
    margin: 8px 0 0;
}

.section-modern__lead {
    max-width: 850px;
    margin: 16px 0 0;
    color: #5b5246;
    font-size: 1.05rem;
}

.section-modern--light .section-modern__heading h2,
.section-modern--faq .section-modern__heading h2,
.section-modern--light h3,
.section-modern--faq h3 {
    color: #1f1a13;
}

.service-grid-modern {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card-modern {
    background: #ffffff;
    border: 1px solid rgba(34, 29, 20, 0.1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 34px rgba(40, 31, 16, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(40, 31, 16, 0.12);
    border-color: rgba(175, 143, 87, 0.42);
}

.service-card-modern__image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
}

.service-card-modern h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.service-card-modern p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.focus-grid-modern {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.focus-card-modern {
    background: #fff;
    border: 1px solid rgba(34, 29, 20, 0.14);
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(40, 31, 16, 0.09);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.focus-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(40, 31, 16, 0.14);
}

.focus-card-modern h3 {
    color: #1f1a13;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.focus-card-modern p {
    color: #5e5952;
    margin: 0 0 14px;
}

.feature-list-modern {
    margin: 0;
    padding-left: 18px;
}

.feature-list-modern li {
    color: #4f4638;
    margin-bottom: 6px;
}

.process-modern {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.process-modern article {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(194, 165, 107, 0.24);
    border-radius: 14px;
    padding: 24px;
}

.process-modern h3 {
    font-size: 1.85rem;
    margin-bottom: 8px;
}

.process-modern p {
    color: #d1c3ab;
    margin: 0;
}

.showcase-modern {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.showcase-modern__item {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(34, 29, 20, 0.14);
    box-shadow: 0 18px 38px rgba(34, 29, 20, 0.13);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.showcase-modern__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 44px rgba(34, 29, 20, 0.18);
}

.showcase-modern__item img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.showcase-modern__item div {
    padding: 20px;
}

.showcase-modern__item h3 {
    margin-bottom: 8px;
    font-size: 1.85rem;
}

.showcase-modern__item p {
    margin: 0;
    color: var(--text-soft);
}

.section-modern__cta {
    max-width: 1120px;
    margin: 28px auto 0;
}

.faq-modern {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    counter-reset: faq;
}

.faq-modern article {
    background: #fff;
    border: 1px solid rgba(34, 29, 20, 0.14);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 10px 24px rgba(30, 23, 12, 0.07);
}

.faq-modern article::before {
    counter-increment: faq;
    content: "Pregunta " counter(faq, decimal-leading-zero);
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #8c7141;
    margin-bottom: 8px;
}

.faq-modern h3 {
    font-size: 1.45rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.faq-modern p {
    margin: 0;
    color: #5f5748;
    line-height: 1.6;
}

.footer-modern {
    background: #080b10;
    border-top: 1px solid rgba(194, 165, 107, 0.25);
    padding: 24px 0;
}

.footer-modern .copyright {
    margin: 0;
    color: #d4c7ac;
    text-align: center;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatBlob {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-14px) scale(1.03);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes heroPan {
    from {
        background-position: center top;
    }
    to {
        background-position: center bottom;
    }
}

.home-page .reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.home-page .reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero-shell,
    .hero-shell::before,
    .hero-shell::after {
        animation: none !important;
    }

    .home-page .reveal-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 991px) {
    .hero-modern {
        padding-top: 130px;
    }

    .box-logo img {
        width: 118px;
    }

    .section-modern {
        padding: 72px 20px;
    }

    .focus-grid-modern {
        grid-template-columns: 1fr;
    }

    .faq-modern {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .box-logo {
        padding: 18px 12px;
    }

    .hero-modern h1 {
        line-height: 1.03;
    }

    .hero-modern__meta {
        grid-template-columns: 1fr;
    }

    .showcase-modern__item img {
        height: 200px;
    }
}

/* Shared inner pages */
.page-hero-shell {
    min-height: 380px;
    padding-bottom: 40px;
}

.page-hero-shell--contact {
    background:
        linear-gradient(125deg, rgba(245, 236, 219, 0.92), rgba(225, 213, 194, 0.76)),
        url('../img/banner01.jpeg') center center / cover no-repeat;
}

.page-hero-modern {
    max-width: 880px;
    margin: 0 auto;
    padding: 150px 28px 0;
    color: #201b14;
}

.page-hero-modern__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    color: #dbc496;
    border: 1px solid rgba(219, 196, 150, 0.4);
    border-radius: 999px;
    padding: 9px 15px;
    margin-bottom: 18px;
}

.page-hero-modern h1 {
    font-size: clamp(2rem, 4.8vw, 4rem);
    line-height: 1.05;
    margin-bottom: 16px;
    color: #1b140b;
}

.page-hero-modern p {
    color: #4f4538;
    max-width: 680px;
    margin: 0;
}

/* Service cards normalization */
.service-card-modern {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-modern p {
    margin-top: auto;
}

/* Portfolio */
.portfolio-filter-modern {
    max-width: 1120px;
    margin: 0 auto 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-filter-modern button {
    border: 1px solid rgba(34, 29, 20, 0.22);
    background: #fff;
    color: #31281a;
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 600;
    transition: 0.2s ease;
}

.portfolio-filter-modern button.is-active,
.portfolio-filter-modern button:hover {
    border-color: #af8f57;
    background: #af8f57;
    color: #fff;
}

.portfolio-filter-modern button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: rgba(34, 29, 20, 0.22);
    background: #fff;
    color: #31281a;
}

.portfolio-grid-modern {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.portfolio-card-modern {
    height: 100%;
}

.portfolio-card-modern__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 360px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(34, 29, 20, 0.14);
    box-shadow: 0 12px 28px rgba(30, 23, 12, 0.11);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card-modern__link:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(30, 23, 12, 0.18);
    text-decoration: none;
}

.portfolio-card-modern__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-card-modern__content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 160px;
}

.portfolio-card-modern__content span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8d7243;
}

.portfolio-card-modern__content h3 {
    color: #1f1a13;
    font-size: 1.48rem;
    margin: 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-card-modern__content p {
    margin: auto 0 0;
    font-weight: 600;
    color: #8d7243;
}

.portfolio-cta-modern {
    max-width: 1120px;
    margin: 36px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
    background: #fcf9f2;
    border: 1px solid rgba(34, 29, 20, 0.12);
}

.portfolio-cta-modern h3 {
    margin: 0;
    color: #1f1a13;
}

/* Contact */
.contact-layout-modern {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 18px;
}

.contact-form-modern,
.contact-info-modern article {
    background: #fff;
    border: 1px solid rgba(34, 29, 20, 0.12);
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(30, 23, 12, 0.08);
}

.contact-form-modern {
    padding: 24px;
}

.contact-form-modern h2,
.contact-info-modern h3 {
    color: #1f1a13;
    margin-bottom: 8px;
}

.contact-form-modern p {
    color: #625b50;
    margin-bottom: 20px;
}

.contact-modern-form-grid {
    display: grid;
    gap: 10px;
}

.contact-modern-form-grid label {
    color: #30291e;
    font-weight: 600;
    margin-top: 8px;
}

.contact-modern-form-grid input,
.contact-modern-form-grid select,
.contact-modern-form-grid textarea {
    width: 100%;
    border: 1px solid rgba(34, 29, 20, 0.2);
    border-radius: 10px;
    padding: 12px 13px;
    color: #1f1a13;
    background: #fff;
}

.contact-modern-form-grid textarea {
    resize: vertical;
}

.contact-modern-form-grid button {
    margin-top: 8px;
    border: 0;
}

.contact-info-modern {
    display: grid;
    gap: 16px;
}

.contact-info-modern article {
    padding: 20px;
}

.contact-info-modern p {
    margin: 0;
    color: #645d50;
}

@media (max-width: 991px) {
    .page-hero-modern {
        padding-top: 130px;
    }

    .service-grid-modern,
    .portfolio-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-layout-modern {
        grid-template-columns: 1fr;
    }

    .portfolio-cta-modern {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .service-grid-modern,
    .portfolio-grid-modern {
        grid-template-columns: 1fr;
    }

    .portfolio-card-modern__link {
        min-height: 340px;
    }

    .portfolio-card-modern__image {
        height: 190px;
    }

    .portfolio-card-modern__content {
        height: 150px;
    }
}
