/* ========================================
   CASTELLO CONSULTING - Landing Page Styles
   For service pages: asistente-telefonico-ia, utilities, ventas
   ======================================== */

/* ---------- Page Reset for Landing ---------- */
.landing-page {
    background: #fff;
}

/* ---------- Hero Section ---------- */
.landing-page .hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0a1f18 0%, #1F4A40 40%, #2d6a5a 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 6rem;
}

/* Subtle dot pattern overlay */
.landing-page .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Soft gradient glow */
.landing-page .hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(126, 217, 87, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.landing-page .hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: #7ED957;
    color: #0a1f18;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(126, 217, 87, 0.3);
}

.btn-primary:hover {
    background: #6bc948;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(126, 217, 87, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* ---------- Shared Section Styles ---------- */
.landing-page .section {
    padding: 6rem 0;
    background: #fff;
}

.landing-page .section--alt {
    background: #f7faf8;
}

.landing-page .container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #0a1f18;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 3rem;
}

/* ---------- Flow List (How it works) ---------- */
.flow-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: flow;
    display: grid;
    gap: 0;
}

.flow-list li {
    counter-increment: flow;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    align-items: start;
    padding: 32px 0;
    border-bottom: 1px solid rgba(31, 74, 64, 0.08);
    position: relative;
}

.flow-list li:last-child {
    border-bottom: none;
}

.flow-list li::before {
    content: counter(flow);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #1F4A40;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 14px;
    flex-shrink: 0;
}

.flow-list li div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
}

.flow-list li strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a1f18;
}

.flow-list li span {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* ---------- Features Grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature {
    background: #fff;
    border: 1px solid rgba(31, 74, 64, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.feature:hover {
    border-color: rgba(31, 74, 64, 0.2);
    box-shadow: 0 8px 30px rgba(31, 74, 64, 0.08);
    transform: translateY(-3px);
}

/* Section alt needs white cards */
.section--alt .feature {
    background: #fff;
}

.feature .feature-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.feature h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a1f18;
    margin-bottom: 0.75rem;
}

.feature p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.65;
    margin: 0;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1F4A40;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.feature-link:hover {
    gap: 8px;
    color: #2d6a5a;
}

/* ---------- FAQ Section ---------- */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(31, 74, 64, 0.08);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #0a1f18;
    text-align: left;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #1F4A40;
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: #999;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question::after {
    content: '−';
    color: #1F4A40;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ---------- Form Section ---------- */
.form-section {
    background: linear-gradient(160deg, #0a1f18 0%, #1F4A40 60%, #2d6a5a 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 0.75rem;
}

.form-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.form-section .form-group {
    margin-bottom: 1.25rem;
}

.form-section .form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-section .form-input,
.form-section .form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-section .form-input::placeholder,
.form-section .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-section .form-input:focus,
.form-section .form-textarea:focus {
    outline: none;
    border-color: #7ED957;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(126, 217, 87, 0.15);
}

.form-section .form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-section .privacy-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.form-section .privacy-checkbox a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

.form-section .privacy-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #7ED957;
}

.form-section .form-submit {
    width: 100%;
    padding: 16px;
    background: #7ED957;
    color: #0a1f18;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 8px;
    font-family: inherit;
}

.form-section .form-submit:hover {
    background: #6bc948;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(126, 217, 87, 0.3);
}

/* ---------- Ayudas Banner ---------- */
.landing-page .section[style*="linear-gradient"] {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 768px) {
    .landing-page .hero {
        min-height: auto;
        padding: 7rem 1.5rem 4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .flow-list li {
        grid-template-columns: 44px 1fr;
        gap: 16px;
        padding: 24px 0;
    }

    .flow-list li::before {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
        border-radius: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .landing-page .section,
    .landing-page .section--alt {
        padding: 4rem 0;
    }

    .form-section {
        padding: 4rem 1.5rem;
    }

    .form-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .landing-page .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature {
        padding: 1.5rem;
    }
}