/* ==============================================
   MADRIGAL ARQUITECTURA PASSIVHAUS
   custom.css — todos los estilos visuales
   ============================================== */

/* -----------------------------------------------
   Base
   ----------------------------------------------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 78px;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    color: #222;
    background-color: #fff;
    padding-top: 78px;
    line-height: 1.65;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* -----------------------------------------------
   Navbar
   ----------------------------------------------- */
.navbar-site {
    background-color: #fff;
    border-bottom: 1px solid #e4e4e4;
    min-height: 78px;
    z-index: 1030;
}

.navbar-brand-site {
    padding: 0;
}

.navbar-logo {
    height: 90px;
    width: auto;
}

.nav-link-site {
    display: block;
    padding: 0.4rem 0;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link-site:hover,
.nav-link-site:focus {
    color: #1a2456;
}

.navbar-toggler-site {
    border: none;
    box-shadow: none !important;
    padding: 0.5rem;
}

/* -----------------------------------------------
   Section: PROYECTOS
   ----------------------------------------------- */
.section-proyectos {
    padding: 90px 0 100px;
}

.proyecto-tile {
    display: flex;
    flex-direction: column;
}

.proyecto-img-wrap {
    overflow: hidden;
    line-height: 0;
}

.proyecto-img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.proyecto-img-wrap:hover .proyecto-img {
    transform: scale(1.03);
}

.proyecto-label {
    text-align: center;
    font-size: 1.55rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    color: #1a1a1a;
    margin-top: 1.6rem;
    margin-bottom: 0;
}

/* -----------------------------------------------
   Section: ESTUDIO
   ----------------------------------------------- */
.section-estudio {
    padding-top: 90px;
    padding-bottom: 100px;
}

.estudio-title {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.estudio-text-block {
    max-width: 660px;
    margin-bottom: 60px;
}

.estudio-text-block p {
    font-size: 0.875rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.estudio-text-block p:last-child {
    margin-bottom: 0;
}

.estudio-gallery {
    width: 100%;
    margin-bottom: 70px;
}

.estudio-gallery-img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.estudio-servicios-block {
    padding-top: 10px;
}

.servicios-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #1a1a1a;
    text-transform: uppercase;
    margin-top: 2.5rem;
    margin-bottom: 0.9rem;
}

.estudio-servicios-block .servicios-title:first-child {
    margin-top: 0;
}

.servicios-intro {
    font-size: 0.875rem;
    color: #444;
    margin-bottom: 0.6rem;
}

.servicios-list {
    list-style: none;
    padding-left: 1.4rem;
    margin-bottom: 1.5rem;
}

.servicios-list li {
    font-size: 0.875rem;
    color: #444;
    line-height: 1.75;
    margin-bottom: 0.35rem;
}

/* -----------------------------------------------
   CTA Banner
   ----------------------------------------------- */
.section-cta {
    background-color: #1a2456;
    padding: 90px 0;
}

.cta-headline {
    font-size: 1.45rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #fff;
    line-height: 1.45;
    max-width: 700px;
    margin: 0 auto 2.8rem;
    text-transform: uppercase;
}

.cta-btn {
    display: inline-block;
    border: 1.5px solid #fff;
    color: #fff;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    padding: 0.85rem 2.8rem;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
}

.cta-btn:hover,
.cta-btn:focus {
    background-color: #fff;
    color: #1a2456;
}

/* -----------------------------------------------
   Section: CONTACTO
   ----------------------------------------------- */
.section-contacto {
    padding-top: 90px;
    padding-bottom: 0;
}

.contacto-title {
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
    color: #1a1a1a;
    margin-bottom: 3rem;
}

.contacto-info-list {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.contacto-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.3rem;
}

.contacto-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.contacto-info-text p {
    font-size: 0.875rem;
    color: #444;
    line-height: 1.65;
}

.contacto-email {
    color: #444;
    text-decoration: none;
}

.contacto-email:hover {
    color: #1a2456;
    text-decoration: underline;
}

.contacto-map {
    width: 100%;
    height: 390px;
    border: none;
    display: block;
}

/* -----------------------------------------------
   Formulario de contacto
   ----------------------------------------------- */
.contacto-form-section {
    background-color: #f5f5f5;
    padding: 72px 0 80px;
    margin-top: 72px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.field-custom {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: #333;
    background-color: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    padding: 0.78rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-custom::placeholder {
    color: #b5b5b5;
}

.field-custom:focus {
    border-color: #1a2456;
    box-shadow: 0 0 0 2px rgba(26, 36, 86, 0.08);
    outline: none;
    color: #333;
}

/* Dropdown arrow color for select */
.form-select.field-custom {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-size: 14px 10px;
}

/* Placeholder state (no value selected) */
.field-placeholder {
    color: #b5b5b5;
}

.btn-submit {
    display: inline-block;
    background-color: #1a2456;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 0.9rem 3.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover,
.btn-submit:focus {
    background-color: #111b3e;
    color: #fff;
    outline: none;
}

/* -----------------------------------------------
   Footer
   ----------------------------------------------- */
.site-footer {
    padding: 1.5rem 0;
    border-top: 1px solid #e4e4e4;
    background-color: #fff;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.72rem;
    color: #777;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.footer-nav-link {
    font-size: 0.72rem;
    color: #777;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav-link:hover {
    color: #1a2456;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.footer-logos img {
    height: 48px;
    width: auto;
}
/* -----------------------------------------------
   Responsive — tablet (lg)
   ----------------------------------------------- */
@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 68px;
    }

    body {
        padding-top: 68px;
    }

    .navbar-site {
        min-height: 68px;
    }

    .navbar-logo {
        height: 44px;
    }

    .nav-link-site {
        padding: 0.55rem 0;
        font-size: 0.8rem;
        letter-spacing: 0.12em;
    }

    .proyecto-img {
        height: 340px;
    }

    .estudio-gallery-img {
        height: 380px;
    }

    .cta-headline {
        font-size: 1.15rem;
    }
}

/* -----------------------------------------------
   Responsive — mobile (md/sm)
   ----------------------------------------------- */
@media (max-width: 767.98px) {
    .section-proyectos {
        padding: 60px 0 72px;
    }

    .section-estudio {
        padding-top: 60px;
        padding-bottom: 70px;
    }

    .proyecto-img {
        height: 260px;
    }

    .proyecto-label {
        font-size: 1.2rem;
        margin-top: 1.1rem;
    }

    .estudio-gallery-img {
        height: 240px;
    }

    .section-cta {
        padding: 60px 0;
    }

    .cta-headline {
        font-size: 1rem;
    }

    .section-contacto {
        padding-top: 60px;
    }

    .contacto-map {
        height: 300px;
        margin-top: 2rem;
    }

    .contacto-form-section {
        margin-top: 50px;
        padding: 50px 0 60px;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav {
        gap: 1rem;
    }
}

/* -----------------------------------------------
   Responsive — mobile (xs)
   ----------------------------------------------- */
@media (max-width: 575.98px) {
    .proyecto-img {
        height: 220px;
    }

    .proyecto-label {
        font-size: 1rem;
        letter-spacing: 0.15em;
    }

    .estudio-gallery-img {
        height: 180px;
    }

    .cta-headline {
        font-size: 0.875rem;
    }

    .contacto-title {
        font-size: 1.5rem;
    }
}
