/* ============================================================
   BI Solutions — Página principal (index.html)
   Requiere base.css (reset, tokens, nav, wa-float, reveal).
   ============================================================ */

/* NAV (solo lo específico de index) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: 0.3s;
}

/* HERO */
#inicio {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 5% 80px;
    overflow: hidden;
}

#inicio::before {
    content: '';
    position: absolute;
    top: 8%;
    right: -60px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 180, 100, 0.13) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#inicio::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 110, 245, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    text-align: center;
    max-width: 740px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-lt);
    border: 1px solid rgba(56, 180, 100, 0.3);
    border-radius: 50px;
    padding: 6px 16px 6px 10px;
    font-size: 0.78rem;
    color: var(--green-dk);
    font-weight: 600;
    margin-bottom: 30px;
    animation: fadeUp 0.6s ease both;
}

.hero-pill-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

.hero-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 22px;
    animation: fadeUp 0.7s 0.1s ease both;
}

.hero-title em {
    font-style: italic;
    color: var(--green);
}

.hero-sub {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 38px;
    font-weight: 400;
    animation: fadeUp 0.7s 0.2s ease both;
}

.hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.7s 0.3s ease both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(56, 180, 100, 0.25);
}

.btn-primary:hover {
    background: var(--green-dk);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(56, 180, 100, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.92rem;
    border: 1.5px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
    border-color: var(--green);
    box-shadow: 0 4px 16px rgba(56, 180, 100, 0.1);
}

.hero-stats {
    display: flex;
    justify-content: center;
    margin: 68px auto 0;
    max-width: 400px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    animation: fadeUp 0.7s 0.4s ease both;
}

.stat {
    flex: 1;
    text-align: center;
    padding: 18px 10px;
    border-right: 1.5px solid var(--border);
}

.stat:last-child {
    border-right: none;
}

.stat-num {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.65rem;
    color: var(--green);
    line-height: 1;
}

.stat-label {
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 5px;
    font-weight: 500;
}

/* SECTION COMMON */
section {
    position: relative;
    z-index: 1;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-dk);
    margin-bottom: 12px;
}

.section-eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
}

.section-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: clamp(1.9rem, 3.8vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 14px;
}

.section-title em {
    font-style: italic;
    color: var(--green);
}

.section-sub {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 500px;
}

/* PORTFOLIO */
#portafolio {
    padding: 100px 5%;
    background: var(--cream);
    border-top: 1px solid var(--border);
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
    max-width: 1060px;
    margin: 0 auto;
}

.portfolio-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

.portfolio-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--cream2);
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.04);
}

.portfolio-body {
    padding: 22px;
}

.portfolio-tag {
    display: inline-block;
    background: var(--green-lt);
    color: var(--green-dk);
    border-radius: 50px;
    padding: 3px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.portfolio-body h3 {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.12rem;
    color: var(--ink);
    margin-bottom: 8px;
}

.portfolio-body p {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 14px;
}

.portfolio-features {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 18px;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--ink2);
}

.feat-item::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.portfolio-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1.5px solid var(--border);
    gap: 10px;
    flex-wrap: wrap;
}

.price {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--green);
}

.price-note {
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 2px;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    padding: 9px 17px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.btn-card:hover {
    background: var(--green-dk);
    transform: scale(1.02);
}

.btn-card-ghost {
    background: transparent !important;
    color: var(--green) !important;
    border: 1.5px solid rgba(56, 180, 100, 0.35) !important;
}

.btn-card-ghost:hover {
    background: var(--green-lt) !important;
    transform: scale(1.02) !important;
}

.card-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.custom-banner {
    max-width: 1060px;
    margin: 38px auto 0;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 34px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.custom-banner h3 {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 6px;
}

.custom-banner p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* NOSOTROS */
#nosotros {
    padding: 100px 5%;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.nosotros-inner {
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.nosotros-card {
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 38px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nosotros-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--blue));
}

.nosotros-logo {
    width: 96px;
    margin: 0 auto 16px;
    display: block;
}

.nosotros-card h3 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 9px;
}

.nosotros-card p {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
    justify-content: center;
}

.pill {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--ink2);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.73rem;
    font-weight: 500;
}

.nosotros-text .section-sub {
    margin-bottom: 30px;
}

.value-list {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.value-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.value-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--green-lt);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.value-item h4 {
    font-family: 'Lora', serif;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 3px;
}

.value-item p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* TESTIMONIOS */
#testimonios {
    padding: 90px 5%;
    background: var(--cream);
    border-top: 1px solid var(--border);
}

.testimonios-header {
    text-align: center;
    margin-bottom: 52px;
}

.testimonios-header .section-eyebrow {
    justify-content: center;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.testimonio-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.07);
}

.testimonio-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 22px;
    font-family: 'Lora', serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--green-lt);
    font-weight: 700;
}

.stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}

.star {
    color: #f4a813;
    font-size: 0.9rem;
}

.testimonio-text {
    color: var(--ink2);
    font-size: 0.92rem;
    line-height: 1.78;
    margin-bottom: 22px;
    font-style: italic;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1.5px solid var(--border);
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--green-lt);
    border: 2px solid rgba(56, 180, 100, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-dk);
    flex-shrink: 0;
    font-family: 'Lora', serif;
}

.author-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink);
}

.author-tag {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 2px;
}

.wa-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8faf0;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 50px;
    padding: 2px 9px;
    font-size: 0.66rem;
    font-weight: 600;
    color: #128c52;
    margin-top: 4px;
}

/* CONTACTO */
#contacto {
    padding: 100px 5%;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.contacto-inner {
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 58px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.c-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--green-lt);
    border: 1.5px solid rgba(56, 180, 100, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.c-label {
    font-size: 0.68rem;
    color: var(--muted);
    margin-bottom: 3px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.c-value {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s;
}

.c-value:hover {
    color: var(--green);
}

.contact-form-box {
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 36px;
}

.contact-form-box h3 {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.18rem;
    color: var(--ink);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.74rem;
    color: var(--muted);
    margin-bottom: 7px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--green);
}

.form-group select option {
    background: #fff;
}

.form-group textarea {
    height: 94px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background: var(--green);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
    background: var(--green-dk);
    transform: translateY(-1px);
}

/* FAQ */
#faq {
    padding: 100px 5%;
    background: var(--cream);
    border-top: 1px solid var(--border);
}

.faq-inner {
    max-width: 650px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 46px;
}

.faq-item {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    margin-bottom: 9px;
    overflow: hidden;
    background: var(--white);
    transition: border-color 0.2s;
}

.faq-item.open {
    border-color: rgba(56, 180, 100, 0.35);
}

.faq-q {
    padding: 17px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--ink);
    transition: color 0.2s;
    user-select: none;
    gap: 14px;
}

.faq-q:hover {
    color: var(--green-dk);
}

.faq-arrow {
    width: 26px;
    height: 26px;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform 0.3s, background 0.2s, color 0.2s;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    background: var(--green-lt);
    color: var(--green);
    border-color: rgba(56, 180, 100, 0.3);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 20px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.faq-item.open .faq-a {
    max-height: 200px;
    padding: 0 20px 20px;
}

/* MODAL COMPRA */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(26, 26, 24, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--white);
    border-radius: 22px;
    max-width: 480px;
    width: 100%;
    padding: 38px 34px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--cream2);
}

.modal-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-lt);
    border: 1px solid rgba(56, 180, 100, 0.3);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.7rem;
    color: var(--green-dk);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.modal-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--ink);
    margin-bottom: 6px;
    line-height: 1.2;
}

.modal-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 16px 0;
}

.modal-price {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--green);
}

.modal-price-note {
    font-size: 0.78rem;
    color: var(--muted);
}

.modal-divider {
    height: 1px;
    background: var(--border);
    margin: 22px 0;
}

.modal-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

/* Botón Bold */
.btn-bold {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: #1a1a18;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    margin-bottom: 10px;
}

.btn-bold:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn-bold-icon {
    width: 22px;
    height: 22px;
    background: #f7c733;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: #1a1a18;
    flex-shrink: 0;
}

.modal-or {
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
    margin: 14px 0;
    position: relative;
}

.modal-or::before,
.modal-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border);
}

.modal-or::before {
    left: 0;
}

.modal-or::after {
    right: 0;
}

.btn-wa-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-wa-modal:hover {
    background: #20ba58;
}

.btn-ya-pague {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--green-lt);
    color: var(--green-dk);
    border: 1.5px solid rgba(56, 180, 100, 0.35);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-ya-pague:hover {
    background: #d0f0db;
}

.modal-note {
    font-size: 0.74rem;
    color: var(--muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.6;
}

/* LEGAL */
.legal-section {
    padding: 100px 5%;
}

.legal-inner {
    max-width: 760px;
    margin: 0 auto;
}

.legal-inner h2 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.65rem;
    color: var(--ink);
    margin-bottom: 6px;
}

.legal-inner .date {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 38px;
}

.legal-block {
    margin-bottom: 28px;
}

.legal-block h3 {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--green-dk);
    margin-bottom: 8px;
}

.legal-block p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* FOOTER */
footer {
    background: var(--ink);
    padding: 54px 5% 28px;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 42px;
}

.footer-logo-name {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.08rem;
    color: #fff;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.875rem;
    max-width: 220px;
    line-height: 1.7;
    margin-top: 12px;
}

.footer-links h4 {
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.56);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.82rem;
}

.footer-legal {
    display: flex;
    gap: 18px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.footer-legal a:hover {
    color: var(--green);
}

/* PAGE SYSTEM */
.page {
    display: none;
}

.page.active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 20px;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        background: rgba(245, 241, 235, 0.98);
        padding: 28px 5%;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nosotros-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contacto-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .custom-banner {
        flex-direction: column;
        text-align: center;
    }

    .footer-top {
        flex-direction: column;
    }

    .modal-box {
        padding: 28px 22px;
    }
}
