html {
    scroll-behavior: smooth;
}

.nav-active {
    color: #b88a44;
}

.contact-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    background-image: url("../img/banner/contacto.png");
    background-size: cover;
    background-position: center;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero-content {
    max-width: 760px;
    color: white;
}

.contact-hero h1 {
    margin: 25px 0;
    font-size: 64px;
    line-height: 1.08;
}

.contact-hero p {
    max-width: 680px;
    margin-bottom: 42px;
    font-size: 19px;
    line-height: 1.8;
}

.contact-introduction,
.contact-main-section {
    padding: 120px 0;
}

.contact-introduction {
    background: white;
}

.contact-main-section {
    background: #f8f8f8;
}

.contact-introduction h2 {
    margin-bottom: 25px;
    text-align: center;
    font-size: 46px;
    color: #2f2f2f;
}

.section-description {
    width: 70%;
    margin: 0 auto 70px;
    text-align: center;
    font-size: 20px;
    line-height: 1.8;
    color: #666;
}

.contact-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-option-card {
    position: relative;
    overflow: hidden;
    padding: 42px 34px;

    display: flex;
    flex-direction: column;

    background: white;
    border: 1px solid #ececec;
    border-radius: 20px;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.contact-option-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #d8b37d;
    transition: width 0.35s ease;
}

.contact-option-card:hover::before {
    width: 100%;
}

.contact-option-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.contact-option-number {
    margin-bottom: 28px;
    font-size: 48px;
    font-weight: 700;
    color: #d8b37d;
}

.contact-option-label {
    display: block;
    margin-bottom: 10px;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 11px;
    font-weight: 700;
}

.contact-option-card h3 {
    margin-bottom: 16px;
    font-size: 28px;
    color: #2f2f2f;
}

.contact-option-card p {
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.contact-option-card .contact-card-button {
    margin-top: auto;
    align-self: flex-start;
}

.contact-card-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-width: 155px;
    padding: 13px 24px;

    background: #8b7355;
    border: 1px solid #8b7355;
    border-radius: 30px;

    color: white;
    font-size: 14px;
    font-weight: 600;
    text-align: center;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.contact-card-button:hover {
    background: #725e47;
    border-color: #725e47;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(80, 62, 42, 0.18);
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 70px;
}

.contact-information h2 {
    margin: 12px 0 24px;
    font-size: 44px;
    line-height: 1.2;
    color: #2f2f2f;
}

.contact-information-text {
    margin-bottom: 42px;
    font-size: 17px;
    line-height: 1.85;
    color: #666;
}

.contact-detail-list {
    display: grid;
    gap: 18px;
}

.contact-detail {
    padding: 24px 0;
    border-bottom: 1px solid #dedede;
}

.contact-detail:first-child {
    padding-top: 0;
}

.contact-detail:last-child {
    border-bottom: none;
}

.contact-detail > span {
    display: block;
    margin-bottom: 8px;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    font-size: 11px;
    font-weight: 700;
}

.contact-detail h3 {
    margin-bottom: 7px;
    font-size: 22px;
    color: #2f2f2f;
}

.contact-detail p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

.contact-form-wrapper {
    padding: 45px;
    background: white;
    border: 1px solid #ececec;
    border-radius: 22px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
}

.form-heading {
    padding-bottom: 25px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ececec;
}

.form-heading span {
    display: block;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 11px;
    font-weight: 700;
}

.form-heading h3 {
    margin-top: 8px;
    font-size: 34px;
    color: #2f2f2f;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    color: #3b3b3b;
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 16px;
    background: #fbfbfb;
    border: 1px solid #dedede;
    border-radius: 12px;
    color: #2f2f2f;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: white;
    border-color: #d8b37d;
    box-shadow: 0 0 0 4px rgba(216, 179, 125, 0.14);
}

.contact-submit {
    width: 100%;
    margin-top: 28px;
    padding: 17px 25px;
    background: #8b7355;
    border: none;
    border-radius: 40px;
    color: white;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-submit:hover {
    background: #725e47;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(79, 63, 45, 0.2);
}

.form-note {
    margin-top: 15px;
    text-align: center;
    color: #888;
    font-size: 12px;
    line-height: 1.6;
}

.contact-closing {
    padding: 110px 0;
    background: #2f2f2f;
    text-align: center;
    color: white;
}

.contact-closing h2 {
    max-width: 820px;
    margin: 25px auto;
    font-size: 48px;
    line-height: 1.2;
}

.contact-closing p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #ddd;
    font-size: 18px;
    line-height: 1.8;
}

.contact-closing-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.btn-outline {
    display: inline-block;
    padding: 18px 42px;
    border: 2px solid white;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: #222;
    transform: translateY(-3px);
}

@media (max-width: 1000px) {
    header .container {
        height: auto;
        min-height: 90px;
        padding: 18px 0;
        gap: 20px;
        flex-wrap: wrap;
    }

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

    .contact-option-card p {
        min-height: auto;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 700px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
    }

    .contact-hero {
        min-height: 650px;
    }

    .contact-hero h1 {
        font-size: 43px;
    }

    .contact-hero p {
        font-size: 17px;
    }

    .contact-introduction,
    .contact-main-section {
        padding: 80px 0;
    }

    .contact-introduction h2,
    .contact-information h2 {
        font-size: 36px;
    }

    .section-description {
        width: 100%;
        margin-bottom: 50px;
        font-size: 17px;
    }

    .contact-option-card,
    .contact-form-wrapper {
        padding: 28px 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: auto;
    }

    .contact-closing h2 {
        font-size: 38px;
    }
}

@media (max-width: 430px) {
    .contact-hero h1 {
        font-size: 36px;
    }

    .contact-introduction h2,
    .contact-information h2 {
        font-size: 31px;
    }

    .form-heading h3 {
        font-size: 30px;
    }

    .contact-closing h2 {
        font-size: 32px;
    }
}

header .container {
    justify-content: space-between;
}

.map-section{
    padding: 100px 0;
    background: #f8f8f8;
}

.map-container{
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.map-container iframe{
    width: 100%;
    height: 500px;
    border: none;
}