/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', Georgia, serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* -1.7% de letter-spacing en Figma equivale a -0.017em */
    letter-spacing: -0.017em;
}

.success-message {
    padding: 40px 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.success-message h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.success-message p {
    font-size: 1rem;
    color: #555;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* NAVBAR */
.navbar {
    width: 100%;
    padding: 30px 5%;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
section[id], footer[id] {
    scroll-margin-top: 100px; /* Ajusta este valor según la altura exacta de tu navbar */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGOTIPO GENERAL */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.017em;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
}

/* Primera "A" de ARCARII: Italic y -10% (-0.1em) de letter-spacing */
.logo-a {
    font-style: italic;
    letter-spacing: -0.1em;
    display: inline-block;
}

.nav-desktop {
    display: flex;
    gap: 40px;
}

.nav-desktop a {
    text-decoration: none;
    color: #000;
    font-size: 0.85rem;
    letter-spacing: -0.017em;
    font-weight: 400;
    transition: opacity 0.2s;
}

.nav-desktop a:hover {
    opacity: 0.6;
}

/* HAMBURGER BUTTON */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger-btn span {
    width: 100%;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}

/* MOBILE MENU OVERLAY */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, background-color 0.5s ease, backdrop-filter 0.5s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 5%;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    font-family: inherit;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    text-align: center;
}

.mobile-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    letter-spacing: -0.017em;
    color: #000;
    text-decoration: none;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.mobile-link:hover {
    transform: scale(1.05);
}

/* HERO */
.hero {
    padding: 80px 5% 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -0.017em;
}

.hero p {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 35px;
    font-weight: 400;
    letter-spacing: -0.017em;
}

.btn-primary {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 14px 38px;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: -0.017em;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #333;
}

/* BANNER NEGRO */
.banner-dark {
    background-color: #000;
    color: #fff;
    padding: 80px 5%;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.stat-box {
    display: flex;
    align-items: center; /* Alinea verticalmente al centro respecto al número */
    gap: 20px;
}

/* Tipografía Urbanist solo para +5MDP */
.stat-number {
    font-family: 'Urbanist', sans-serif;
    font-size: 3.5rem;
    font-weight: lighter; /* Peso ligero (regular/light) en lugar de bold */
    line-height: 1;
    letter-spacing: -0.017em;
}

.stat-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    max-width: 200px;
    line-height: 1.25;
    letter-spacing: -0.017em;
    display: block;
}

.stat-description h2 {
    font-size: 1rem;
    letter-spacing: -0.017em;
    margin-bottom: 15px;
    font-weight: 600;
}

.stat-description p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #ddd;
    letter-spacing: -0.017em;
}

/* QUOTE SECTION */
.quote-section {
    padding: 110px 5%;
    text-align: center;
}

.quote-section h2 {
    font-size: 2.3rem;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.017em;
}

/* FIRM SECTION */
.firm-section {
    background-color: #f5f5f5;
    padding: 90px 5%;
}

.firm-container {
    max-width: 800px;
    margin: 0 auto;
}

.firm-container h2 {
    font-size: 0.9rem;
    letter-spacing: -0.017em;
    margin-bottom: 20px;
    font-weight: 600;
}

.firm-container p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #222;
    letter-spacing: -0.017em;
}

/* CONTACT SECTION */
.contact-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background-color: #f2f2f2;
    border: none;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: #000;
    outline: none;
    letter-spacing: -0.017em;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
    font-style: italic;
}

.btn-submit {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    letter-spacing: -0.017em;
    cursor: pointer;
    margin-top: 5px;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #333;
}

.contact-text h2 {
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 25px;
    letter-spacing: -0.017em;
}

.contact-text p {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.6;
    letter-spacing: -0.017em;
}

/* FOOTER */
.footer {
    background-color: #000;
    color: #fff;
    padding: 60px 5% 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: -0.017em;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.65rem;
    letter-spacing: -0.017em;
    color: #aaa;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: -0.017em;
    font-weight: 400;
    transition: opacity 0.2s;
}

.footer-col a:hover {
    opacity: 0.6;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .nav-desktop {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .nav-container {
        position: relative;
        justify-content: center;
    }

    .hamburger-btn {
        position: absolute;
        right: 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .banner-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stat-box {
        flex-direction: column;
        gap: 5px;
    }

    .quote-section h2 {
        font-size: 1.8rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 25px;
    }
}