/* ============================================
   HOME PAGE — ESPACIO TRES
   ============================================ */

/* ---------- Layout / Content wrapper ---------- */
.content {
    position: relative;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: calc(100vh - 72px);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a3d1c 0%, #2C5F2E 40%, #3d7a40 100%);
    z-index: 0;
}

/* Organic blob shapes */
.hero-bg::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse at 60% 40%, rgba(200, 169, 110, 0.15) 0%, transparent 70%);
    border-radius: 50% 0 0 50%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--surface) 0%, transparent 100%);
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: #fff;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(200, 169, 110, 0.2);
    border: 1px solid rgba(200, 169, 110, 0.4);
    color: var(--accent-light);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.hero-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #fff;
}

.hero-text h2 em {
    font-style: normal;
    color: var(--accent-light);
}

.hero-text p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 2rem;
    max-width: 440px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.8rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: transform var(--trans-fast), box-shadow var(--trans-fast), background var(--trans-fast);
    box-shadow: 0 4px 20px rgba(200, 169, 110, 0.4);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(200, 169, 110, 0.5);
    background: var(--accent-light);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.8rem;
    border-radius: 100px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: border-color var(--trans-fast), background var(--trans-fast);
    text-decoration: none;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
}

.hero-image {
    position: relative;
}

.hero-image-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating badge on hero image */
.hero-badge {
    position: absolute;
    bottom: -16px;
    left: -20px;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 5;
}

.hero-badge .badge-icon {
    font-size: 2rem;
    line-height: 1;
}

.hero-badge .badge-text strong {
    display: block;
    font-family: var(--font-accent);
    font-size: 1.4rem;
    color: var(--primary);
    line-height: 1;
}

.hero-badge .badge-text span {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.3;
}

/* ============================================
   NEEDS SECTION  ("Podemos ayudarte cuando…")
   ============================================ */
.needs-section {
    position: relative;
    padding: 8rem 2rem 6rem;
    background: var(--surface);
    z-index: 2;
}

.needs-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 3rem;
}

.needs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.need-card {
    background: var(--surface-2);
    border: 1px solid var(--surface-3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--trans-med), box-shadow var(--trans-med);
    position: relative;
}

.need-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--trans-med);
}

.need-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.need-card:hover::before {
    transform: scaleX(1);
}

.need-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.need-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.need-card:hover .need-card-img img {
    transform: scale(1.06);
}

.need-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.need-card-number {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
}

.need-card-body p {
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--text-mid);
}

/* ============================================
   ABOUT / TEAM CAROUSEL SECTION
   ============================================ */
.about-section {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--surface);
    clip-path: ellipse(55% 100% at 50% 0%);
    z-index: 1;
}

.about-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-carousel {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.carousel-image.active {
    opacity: 1;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--trans-fast), transform var(--trans-fast);
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.about-text {
    color: #fff;
}

.about-text .section-label {
    color: var(--accent-light);
}

.about-text .section-title {
    color: #fff;
    margin-bottom: 1.25rem;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 2rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: 7rem 2rem;
    background: var(--surface-2);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--primary);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 1;
}

.services-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0;
    box-shadow: var(--shadow-sm);
    transition: transform var(--trans-med), box-shadow var(--trans-med);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card-img {
    width: 180px;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
    min-height: 160px;
}

.service-card:hover .service-card-img img {
    transform: scale(1.08);
}

.service-card-body {
    padding: 1.5rem;
    flex: 1;
}

.service-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.service-tag {
    background: rgba(44, 95, 46, 0.08);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    border: 1px solid rgba(44, 95, 46, 0.14);
}

/* ============================================
   RESULTS SECTION
   ============================================ */
.results-section {
    padding: 7rem 2rem;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.results-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.results-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
}

.results-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Green overlay on results image */
.results-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 95, 46, 0.28) 0%, transparent 60%);
}



.results-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.results-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-mid);
}

.results-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: var(--grad-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    margin-top: 3px;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-section {
    background: var(--grad-primary);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(200, 169, 110, 0.15) 0%, transparent 60%);
}

.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.cta-inner p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 2rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-image-frame {
        aspect-ratio: 16/9;
        border-radius: var(--radius-lg);
    }

    .hero-badge {
        bottom: -12px;
        left: 12px;
    }

    .needs-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-carousel {
        aspect-ratio: 16/9;
    }

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

    .results-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .results-image {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 600px) {

    .needs-section,
    .about-section,
    .services-section,
    .results-section,
    .cta-section {
        padding: 4rem 1.25rem;
    }

    .hero-inner {
        padding: 2rem 1.25rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .service-card {
        flex-direction: column;
    }

    .service-card-img {
        width: 100%;
        height: 180px;
    }
}