/* HERO */
.hero-content {
    align-items: center;
}

.hero-title {
    font-size: clamp(28px, 5vw, 50px);
    line-height: 1.08;
    margin: 10px 0;
}

.hero-subtitle {
    color: var(--muted);
    max-width: 60ch;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 18px;
}

.hero-cta-nav {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}


.dropping-title {
    display: inline-flex;
    width: 320px;
    text-align: left;
    height: 36px;
    vertical-align: text-top;
}

.dropping-title>div {
    font-size: 0px;
    opacity: 0;
    /* margin-left: -30px; */
    position: absolute;
    box-shadow: 0px 60px 25px -20px rgba(0, 0, 0, 0.5);
}

.dropping-title>div:nth-child(1) {
    animation: roll 10s linear infinite 0s;
}

.dropping-title>div:nth-child(2) {
    animation: roll 10s linear infinite 2s;
}

.dropping-title>div:nth-child(3) {
    animation: roll 10s linear infinite 4s;
}

.dropping-title>div:nth-child(4) {
    animation: roll 10s linear infinite 6s;
}

.dropping-title>div:nth-child(5) {
    animation: roll 10s linear infinite 8s;
}

@keyframes roll {
    0% {
        font-size: 0px;
        opacity: 0;
        margin-top: 0px;
        transform: rotate(-15deg);
    }

    1.5% {
        opacity: 1;
    }

    2.5% {
        font-size: inherit;
        opacity: 1;
        margin-top: 0px;
        transform: rotate(0deg);
    }

    15% {
        font-size: inherit;
        opacity: 1;
        margin-left: 0px;
        margin-top: 0px;
        transform: rotate(0deg);
    }

    20% {
        font-size: 0px;
        opacity: 0.5;
        margin-top: 30px;
        transform: scale(0);
    }

    100% {
        font-size: 0px;
        opacity: 0;
        margin-top: 0px;
        transform: rotate(15deg);
    }
}

.house-bg {
    position: absolute;
    top: -5%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: url("../public/valorar-casa-solo-casa.png") no-repeat center center;
    background-size: contain;
    pointer-events: none;
    transform: translateX(-50%);
    z-index: 0;
}

.stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
    font-weight: 800;
}

.stat-label {
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-visual {
    position: relative;
    height: 100%;
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        margin-top: 20px;
        height: 100px;
        scale: 0.5;
    }
}

/* FEATURES SECTION */
.features {
    padding: clamp(60px, 8vw, 120px) 0 0;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle 200px at 20% 30%, var(--brand) 0%, transparent 50%),
        radial-gradient(circle 150px at 80% 70%, var(--accent) 0%, transparent 50%);
    opacity: 0.05;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 80px);
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.feature-card.wide {
    grid-column: span 2;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-radius: 50%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: #06101a;
    box-shadow: 0 8px 24px rgba(95, 225, 214, 0.3);
    transition: transform 0.3s ease;
}

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

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-card p {
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 14px;
}

.feature-card.brand h3 {
    color: var(--brand)
}

.feature-card.brand p {
    color: var(--muted)
}

.feature-card.brand .metric-value {
    color: var(--brand)
}

.feature-card.brand .metric-label {
    color: var(--muted)
}

.feature-card.brand-3 h3 {
    color: var(--warning)
}

.feature-card.brand-3 p {
    color: var(--brand-3)
}

.feature-card.brand-3 .metric-value {
    color: var(--warning)
}

.feature-card.brand-3 .metric-label {
    color: var(--brand-3)
}

.feature-card.accent h3 {
    color: var(--info)
}

.feature-card.accent p {
    color: var(--accent)
}

.feature-card.accent .metric-value {
    color: var(--info)
}

.feature-card.accent .metric-label {
    color: var(--accent)
}

.feature-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.metric-value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.metric-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Nueva sección: Cómo funciona */
.how-it-works {
    padding: 80px 0;
    position: relative;
}

.how-it-works .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.how-it-works .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.how-it-works .section-header p {
    font-size: 1.2rem;
    color: var(--muted, #666);
    max-width: 600px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary, #914ac8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(145, 74, 200, 0.3);
}

.step-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-dark, #333);
    margin-bottom: 15px;
}

.step-card p {
    font-size: 1rem;
    color: var(--text-secondary, #666);
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .how-it-works {
        padding: 60px 20px;
    }

    .how-it-works .section-header h2 {
        font-size: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .step-card {
        padding: 30px 20px;
    }

    .feature-card.wide {
        grid-column: span 1;
    }
}