/* ========================= */
/*           BASE           */
/* ========================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    overflow-x: hidden; 
}

/* RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ─── VARIABLES ─── */
:root {

    /* =========================
       COLORES OFICIALES
    ========================= */
    --primary-dark: #18223C;
    --primary-blue: #166077;
    --primary-gold: #AE7B39;
    --accent-green: #5AAA95;
    --accent-light: #B1DDF1;
    --bg-light: #F3F3F4;

    /* =========================
       COLORES ANTIGUOS (REF)
    ========================= */
    --old-dark: #1f2a37;
    --old-dark-alt: #263340;
    --old-gris-claro: #f3f4f6;

    /* =========================
       VARIABLES DEL SISTEMA 
    ========================= */
    --dark: var(--old-dark);
    --dark-alt: var(--old-dark-alt);
    --gris-medio: var(--old-gris-medio);


    --white: #ffffff;
    --black: #000000;
}
/* ─── HELPER ─── */
.inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.centrar-btn {
    text-align: center;
    margin-top: 2.5rem;
}

.sec-titulo {
    font-size: 2.7rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}
.sec-titulo strong { color: var(--primary-dark); }
.sec-titulo.centrado { 
    text-align: center; 
    
}
.sec-titulo.light    { color: var(--white); }

.sec-sub {
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 2.5rem;
}
.sec-sub.centrado { text-align: center; }

/* ════════════════════════
   NAVBAR  (tu código base)
════════════════════════ */
.navbar {
    width: 100%;
    background: var(--primary-dark);
}

.navbar_inner {
    max-width: 120rem;
    margin: 0 auto;
    padding: 10px 5rem;

    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-left: 3rem; /* separación con el logo */
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.25s;
    font-weight: 600;
}
.nav-links a:hover { color: var(--white); }

.btn-contacto {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--primary-dark);
    padding: 5px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    white-space: nowrap;
    transition: opacity 0.25s;
    margin-left: auto;
    border: 0.14rem solid var(--white);
}
.btn-contacto:hover { 
    color: var(--white);
    background: transparent;
}
.btn-contacto svg {
    width: 1.8rem;
    height: 1.8rem;
    flex-shrink: 0;
}

/* ════════════════════════
   LOGO  (tu código base)
════════════════════════ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 0;
    flex-shrink: 0;
}
.logo img {
    height: 58px;
    width: auto;
    object-fit: contain;
}
.logo span {
    position: relative;
    padding-left: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.logo span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 30px;
    background: rgba(255,255,255,0.5);
}

/* ════════════════════════
   CONTACTO
════════════════════════ */
.seccion-contacto {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;

    background: url('/assets/img/fotosInmobi1440_4.webp') center/cover no-repeat;
    overflow: hidden;
}

/* overlay oscuro sobre la foto */
.seccion-contacto::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 0;
}

/* tarjeta traslúcida azul oscuro */
.contacto-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 650px;
    background: rgba(24, 34, 60, 0.70);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 52px 48px 48px;
}

.contacto-titulo {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--white);
    text-align: center;
    margin-bottom: 25px;
}

.contacto-sub {
    font-size: 0.95rem;
    color: var(--white);
    text-align: left;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* form: grid 2 columnas */
.contacto-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* grupo label + input */
.cf-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cf-full {
    grid-column: 1 / -1;
}

.cf-group label {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
}

/* inputs y selects */
.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    background: var(--white);
    border: none;
    color: var(--primary-dark);
    font-family: inherit;
    font-size: 0.85rem;
    padding: 14px 16px;
    outline: none;
    border-radius: 6px;
    width: 100%;
    appearance: none;
    transition: box-shadow 0.2s;
}

.contacto-form select {
    padding-right: 40px; /* espacio para la flecha */

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 23px;
}

/* focus */
.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

/* textarea */
.contacto-form textarea {
    resize: none;
    height: 120px;
}

/* botón */
.btn-contacto-submit {
    grid-column: 1 / -1;
    display: block;

    width: fit-content;
    min-width: 260px;

    background: var(--white);
    color: var(--black);
    border: 0.13rem solid var(--white);

    padding: 13px 32px;
    border-radius: 8px;

    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.25s;

    margin: 6px auto 0;
    letter-spacing: 0.02em;

    white-space: nowrap;
}

.btn-contacto-submit:hover { 
    background: transparent;
    color: var(--white);
}
/* ════════════════════════
   FOOTER
════════════════════════ */
.footer {
    background: var(--primary-dark);
    padding: 4rem 0 0;
}

/* usamos inner para alinear TODO */
.footer-inner {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 5rem;
    
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;

    padding-bottom: 3.5rem;
}

/* En desktop las socials viven visualmente en la columna izquierda */

/* ── columna izquierda ── */
.footer-brand {
    display: flex;
    flex-direction: column;
}

/* logo */
.footer-brand .logo img {
    height: 4rem;
    margin-bottom: 2rem;
}

/* redes */
.footer-socials {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-socials a {
    color: var(--white);
    transition: opacity 0.25s;
}
.footer-socials a:hover { opacity: 0.7; }

/* CTA texto */
.footer-cta-txt {
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

/* botón */
.btn-footer-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    border: 0.12rem solid var(--white);
    color: var(--white);
    background: transparent;

    padding: 0.75rem 1.5rem;
    border-radius: 2rem;

    font-size: 1rem;
    font-weight: 600;

    text-decoration: none;
    transition: all 0.25s;

    align-self: flex-start;
}

.btn-footer-wa svg {
    width: 1.6rem;
    height: 1.6rem;
}

.btn-footer-wa:hover {
    background: var(--white);
    color: var(--primary-dark);
}

/* ── links ── */
.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    
    column-gap: 2.5rem;
    row-gap: 1rem;

    justify-content: end;
}
.footer-col-titulo {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.2rem;
}

/* links */
.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col ul li a {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

/* ── bottom ── */
.footer-bottom {
    max-width: 75rem;
    margin: 0 auto;

    padding: 1.5rem 5rem 2rem;

    border-top: 1px solid transparent;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;

    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

.footer-bottom a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--white);
}
.footer-socials img {
    width: 2.2rem;
    height: 2.2rem;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.25s;
}

.footer-socials a:hover img {
    opacity: 1;
}

/* ════════════════════════════════
   CONTACTO – CELULAR
════════════════════════════════ */

@media (max-width: 768px) {
    
    .navbar {
        justify-content:  space-between;
    }

    .logo {
        margin: 16px;
        height: 30px;
    }

    .seccion-contacto {
        padding: 30px 16px;
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contacto-card {
        padding: 28px 20px 24px;
        border-radius: 16px;
        max-width: 100%;
        width: 100%;
    }

    /* FORM EN COLUMNA */
    .contacto-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px;
    }

    .cf-full {
        grid-column: auto;
    }

    /* ocultar correo */
    .contacto-form .cf-group:nth-child(3) {
        display: none;
    }

    /* INPUTS */
    .contacto-form input,
    .contacto-form select,
    .contacto-form textarea {
        width: 100%;
        font-size: 0.9rem;
        padding: 12px 14px;
    }

    .contacto-form textarea {
        height: 110px;
    }

    /* BOTÓN */
    .btn-contacto-submit {
        width: 100%;
        min-width: 0;
        font-size: 1.1rem;
        padding: 14px 16px;
        border-radius: 8px;
    }
}

/* ════════════════════════════════
   CONTACTO – TABLET
════════════════════════════════ */

@media (min-width: 769px) and (max-width: 1024px) {

    /* ─── SECCIÓN ─── */
    .seccion-contacto {
        padding: 50px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }


    /* ─── CARD ─── */
    .contacto-card {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        padding: 40px 24px; 
        border-radius: 16px;
    }


    /* ─── TÍTULO ─── */
    .contacto-titulo {
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 16px;
    }


    /* ─── SUBTEXTO ─── */
    .contacto-sub {
        font-size: 0.95rem;
        margin-bottom: 1.8rem;
        line-height: 1.5;
    }


    /* ─── FORM ─── */
    .contacto-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .cf-full {
        grid-column: 1 / -1;
    }


    /* ─── INPUTS ─── */
    .contacto-form input,
    .contacto-form select,
    .contacto-form textarea {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .contacto-form textarea {
        height: 120px;
    }


    /* ─── BOTÓN ─── */
    .btn-contacto-submit {
        font-size: 1.2rem;
        padding: 14px 24px;
        border-radius: 10px;
    }

}

@media (min-width: 1921px) {

  .seccion-contacto {
    height: 70rem; /* altura fija */
    min-height: unset;

    background-size: cover;
    background-position: center;
  }

}