/* ============================================
   LÍNEA URBANA — Patrimonio Inmobiliario
   Paleta: GRULU / Grupo Lunardo
   ============================================ */

/* === VARIABLES === */
:root {
    --color-primary:  #002D2A;
    --color-accent:   #C4871C;
    --color-bg:       #F5F1EA;
    --color-text:     #171715;
    --color-white:    #FFFFFF;

    --font-title: 'Cormorant Garamond', serif;
    --font-text:  'Montserrat', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-text);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img  { display: block; width: 100%; }
a    { text-decoration: none; color: inherit; }

/* ============================================
   HEADER
   ============================================ */
.header {
    position: relative;
    z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-mark {
    height: 48px;
    width: auto;
    object-fit: contain;
    padding-right: 16px;
    border-right: 1px solid rgba(196, 135, 28, 0.4);
    display: block;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.logo-name {
    font-family: var(--font-text);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--color-primary);
}

.logo-sub {
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-accent);
    letter-spacing: 1.5px;
}

/* Header right */
.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-text);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.header-phone i {
    font-size: 1.1rem;
    color: var(--color-accent);
    transition: color 0.3s ease;
}

.header-phone:hover            { color: var(--color-accent); }
.header-phone:hover i          { color: var(--color-primary); }

/* ── Decorativo: Mini edificios urbanos con trazado suave ── */
.header-deco {
    display: flex;
    align-items: center;
}

.deco-buildings {
    width: 46px;
    height: 24px;
    overflow: visible;
}

.building-path {
    stroke-dasharray: 60;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.building-line {
    stroke-dasharray: 60;
    stroke-dashoffset: 0;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.building-window {
    opacity: 0.35;
    transition: opacity 0.4s ease;
}

/* Hover en cualquier parte del nav header: el trazado de los edificios se dibuja suavemente */
.header-inner:hover .building-path {
    animation: traceBuilding 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.header-inner:hover .building-line {
    opacity: 0.9;
}

.header-inner:hover .building-window {
    opacity: 0.85;
}

@keyframes traceBuilding {
    0% {
        stroke-dashoffset: 60;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* ============================================
   HERO — Foto completa + fundido izquierdo
   ============================================ */
.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Foto cubre todo el ancho */
.hero-image-wrap {
    position: absolute;
    inset: 0;             /* left: 0, right: 0, top: 0, bottom: 0 */
    overflow: hidden;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;  /* Muestra el encuadre amplio original con árboles y edificios */
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero:hover .hero-image-wrap img {
    transform: scale(1.03) translateY(-3px); /* Movimiento sutil en hover */
}

/* Fundido más suave (menos blanco estático, dejando ver la fotografía) */
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.35) 55%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
}

/* Text content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 40px;
    width: 100%;
}

.hero-label {
    display: block;
    font-family: var(--font-text);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 5.5rem;
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.0;
    margin-bottom: 22px;
}

.hero-line {
    width: 40px;
    height: 2px;
    background: var(--color-accent);
    margin-bottom: 22px;
}

.hero-sub {
    font-family: var(--font-text);
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    background: var(--color-white);
    padding: 64px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.features-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 32px;
    cursor: default;
    transition: transform 0.3s ease;
}

.feature-card:hover { transform: translateY(-5px); }

.feature-icon {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon { transform: scale(1.12); }

.feature-card h3 {
    font-family: var(--font-text);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.82rem;
    color: var(--color-text);
    line-height: 1.7;
    opacity: 0.75;
}

.feature-divider {
    width: 1px;
    height: 90px;
    background: rgba(0, 0, 0, 0.1);
}

/* ============================================
   ENFOQUE
   ============================================ */
.enfoque {
    display: flex;
    min-height: 500px;
}

.enfoque-left {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.enfoque-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/enfoque.jpg');
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.enfoque-left:hover::before {
    transform: scale(1.05);
}

.enfoque-left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.35) 55%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
}

.enfoque-left-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 44px;
    z-index: 2;
}

.enfoque-label {
    display: block;
    font-family: var(--font-text);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.enfoque-line {
    width: 28px;
    height: 1.5px;
    background: var(--color-accent);
    margin-bottom: 16px;
}

.enfoque-left-content p {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

/* Right — marfil */
.enfoque-right {
    flex: 1;
    background: var(--color-bg);
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-subtitle {
    display: block;
    font-family: var(--font-text);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    color: var(--color-text);
    opacity: 0.5;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.enfoque-title {
    font-family: var(--font-title);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 24px;
}

.enfoque-accent {
    width: 36px;
    height: 2px;
    background: var(--color-accent);
    margin-bottom: 32px;
}

.enfoque-cats {
    display: flex;
    align-items: center;
    gap: 14px;
}

.enfoque-cats span {
    font-family: var(--font-text);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--color-primary);
}

.cat-sep {
    color: var(--color-accent) !important;
    font-weight: 300 !important;
    letter-spacing: 0 !important;
    font-size: 0.9rem !important;
    opacity: 0.7;
}

/* ============================================
   CIERRE — Foto real con gradiente/fundido
   ============================================ */
.cierre {
    position: relative;
    margin-top: 60px; /* Separación y aire con respecto a la sección anterior */
    min-height: 220px; /* Grosor reducido ajustado a lo escrito */
    background-image: url('../img/cierre.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Gradiente: oscuro a la izquierda (texto legible) → transparente a la derecha (foto visible) */
.cierre-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.50) 40%,
        rgba(0, 0, 0, 0.20) 75%,
        rgba(0, 0, 0, 0.05) 100%
    );
    z-index: 1;
}

.cierre-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px; /* Padding ajustado al grosor de lo escrito */
    width: 100%;
}

.cierre-title {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.cierre-line {
    width: 40px;
    height: 2px;
    background: var(--color-accent);
}

/* ============================================
   FOOTER
   ============================================ */

/* Franja superior — marfil con logo pequeño */
.footer-top {
    background: var(--color-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 36px 0;
}

.footer-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo pequeño en footer */
.footer-logo-small {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-mark {
    height: 36px;
    width: auto;
    object-fit: contain;
    padding-right: 12px;
    border-right: 1px solid rgba(196, 135, 28, 0.35);
    display: block;
    flex-shrink: 0;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.footer-logo-name {
    font-family: var(--font-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primary);
}

.footer-logo-sub {
    font-family: var(--font-title);
    font-size: 0.65rem;
    font-style: italic;
    color: var(--color-accent);
    letter-spacing: 1px;
}

/* Datos de contacto */
.footer-contact {
    display: flex;
    gap: 40px;
    align-items: center;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text);
    transition: transform 0.3s ease;
    cursor: default;
}

.footer-contact-item:hover { transform: translateY(-2px); }

.footer-contact-item i {
    color: var(--color-accent);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Franja inferior — verde oscuro */
.footer-bottom {
    background: var(--color-primary);
    padding: 16px 0;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-inner > span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.footer-arrow {
    color: var(--color-accent);
    font-size: 0.85rem;
    margin-left: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-title         { font-size: 4.5rem; }
    .enfoque-title      { font-size: 2.2rem; }
    .enfoque-right      { padding: 48px; }
    .cierre-title       { font-size: 3.2rem; }
}

@media (max-width: 768px) {
    /* Header */
    .header-inner   { padding: 18px 24px; }
    .logo-mark      { height: 40px; padding-right: 14px; }
    .logo-name      { font-size: 0.82rem; letter-spacing: 1.5px; }
    .header-deco    { display: none; }

    /* Hero — fundido hacia abajo en móvil */
    .hero           { min-height: 520px; align-items: flex-end; }
    .hero-content   { padding: 60px 24px; }
    .hero-title     { font-size: 3.8rem; }

    /* Features */
    .features       { padding: 44px 0; }
    .features-inner {
        grid-template-columns: 1fr;
        padding: 0 24px;
    }
    .feature-divider {
        width: 48px;
        height: 1px;
        margin: 0 auto;
    }
    .feature-card   { padding: 24px 16px; }

    /* Enfoque */
    .enfoque            { flex-direction: column; }
    .enfoque-left       { min-height: 320px; }
    .enfoque-left-content { padding: 32px; }
    .enfoque-right      { padding: 40px 24px; }
    .enfoque-title      { font-size: 2rem; }

    /* Cierre */
    .cierre             { min-height: 300px; }
    .cierre::before     { filter: blur(5px); }
    .cierre-content     { padding: 60px 24px; }
    .cierre-title       { font-size: 2.8rem; }

    /* Footer */
    .footer-top-inner {
        flex-direction: column;
        gap: 28px;
        text-align: center;
        padding: 0 24px;
    }
    .footer-logo-small  { justify-content: center; }
    .footer-logo-mark   { height: 30px; padding-right: 10px; }
    .footer-contact     { flex-direction: column; gap: 14px; }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 16px 24px;
    }
    .footer-legal { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-title         { font-size: 3rem; }
    .cierre-title       { font-size: 2.2rem; }
    .logo-mark          { height: 34px; padding-right: 10px; }
}
