/* ============================================================
   ParaFirma — Landing Page Styles (inicio.php)
   Se apoya en variables de style_index.css
   Mobile-first responsive
   ============================================================ */

/* --- Variables específicas de la landing --- */
:root {
    --landing-green-dark: #004d30;
    --landing-green-gradient: linear-gradient(135deg, var(--andalusia-green) 0%, #004d30 100%);
    --landing-hero-gradient: linear-gradient(160deg, #007d4d 0%, #005c38 40%, #003820 100%);
    --landing-container: 1100px;
    --landing-section-pad: 5rem 1.5rem;
    --landing-card-radius: 12px;
    --landing-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --landing-shadow-hover: 0 12px 32px rgba(0,125,77,0.18);
    --landing-text-light: #e2e8f0;
    --landing-bg-light: #f8fafc;
    --landing-bg-white: #ffffff;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 0.75rem 0;
}
.landing-nav.scrolled {
    background: rgba(255,255,255,0.97);
    border-bottom-color: rgba(0,0,0,0.06);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.landing-nav-inner {
    max-width: var(--landing-container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.landing-logo img {
    height: 40px;
    width: auto;
}
.landing-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.landing-lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
}
.landing-lang-link {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0.3rem;
    border-radius: 3px;
    transition: color 0.2s;
}
.landing-lang-link:hover {
    color: var(--andalusia-green);
}
.landing-lang-sep {
    color: #ccc;
    user-select: none;
}
.landing-btn-acceder {
    padding: 0.6rem 1.6rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    white-space: nowrap;
    background: var(--landing-green-gradient) !important;
    color: #fff !important;
    border: none !important;
    transition: all 0.25s !important;
    box-shadow: 0 2px 8px rgba(0,125,77,0.25) !important;
    letter-spacing: 0.01em;
}
.landing-btn-acceder:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(0,125,77,0.35) !important;
    filter: brightness(1.1);
}

/* ============================================================
   HERO
   ============================================================ */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--landing-hero-gradient);
    color: #fff;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}
.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.04) 0%, transparent 60%),
                radial-gradient(circle at 70% 30%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}
.landing-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    height: 90%;
    background: url('../img/logo.png') center/contain no-repeat;
    opacity: 0.10;
    filter: blur(3px) brightness(0) invert(1);
    pointer-events: none;
    z-index: 0;
}
.landing-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.landing-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}
.landing-hero-sub {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.landing-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.landing-btn-primary {
    display: inline-block;
    background: #fff;
    color: var(--andalusia-green) !important;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    background: #f0fdf4;
}
.landing-btn-outline {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.25s;
}
.landing-btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}
.landing-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}
.landing-hero-scroll span {
    display: block;
    width: 28px;
    height: 28px;
    border-right: 2px solid rgba(255,255,255,0.6);
    border-bottom: 2px solid rgba(255,255,255,0.6);
    transform: rotate(45deg);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.landing-trust {
    background: var(--landing-bg-light);
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #e8ecf0;
}
.landing-trust-inner {
    max-width: var(--landing-container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 3rem;
    flex-wrap: wrap;
}
.landing-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}
.landing-trust-item .trust-icon {
    font-size: 1.3rem;
}
.landing-trust-item strong {
    color: #334155;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.landing-section {
    padding: var(--landing-section-pad);
}
.landing-container {
    max-width: var(--landing-container);
    margin: 0 auto;
}
.landing-section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}
.landing-section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.landing-features {
    background: var(--landing-bg-white);
}
.landing-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.landing-feature-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: var(--landing-card-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.landing-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--landing-green-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}
.landing-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--landing-shadow-hover);
}
.landing-feature-card:hover::before {
    opacity: 1;
}
.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    display: block;
}
.landing-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.6rem;
}
.landing-feature-card p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.55;
}

/* ============================================================
   VISUAL EXAMPLES GALLERY
   ============================================================ */
.landing-examples {
    background: var(--landing-bg-white);
}
.landing-example-block {
    margin-bottom: 3rem;
}
.landing-example-block:last-child {
    margin-bottom: 0;
}
.landing-example-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--andalusia-green);
    display: inline-block;
}
.landing-example-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.landing-example-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: var(--landing-card-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--landing-shadow);
}
.landing-example-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-hover);
}
.landing-example-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #e8ecf0;
}
.landing-example-card p {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    margin: 0;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.landing-contact {
    background: var(--landing-bg-white);
}
.landing-contact-form {
    max-width: 650px;
    margin: 0 auto;
}
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.contact-form-group {
    margin-bottom: 1.2rem;
}
.contact-form-group label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}
.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1a202c;
    background: #f8fafc;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: var(--andalusia-green);
    box-shadow: 0 0 0 3px rgba(0,125,77,0.1);
    background: #fff;
}
.landing-contact-btn {
    display: block;
    width: 100%;
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    margin-top: 0.5rem;
}
.landing-contact-msg {
    max-width: 650px;
    margin: 0 auto 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}
.landing-contact-msg.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.landing-contact-msg.error {
    background: #f7d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* Anti-spam: ocultar campos honeypot de humanos */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.landing-how {
    background: var(--landing-bg-light);
}
.landing-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}
.landing-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
}
.step-number {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--landing-green-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0,125,77,0.3);
}
.step-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.3rem;
}
.step-content p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.55;
}

/* ============================================================
   PRICING
   ============================================================ */
.landing-pricing {
    background: var(--landing-bg-white);
}
.landing-pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}
.landing-pricing-card {
    background: #fff;
    border: 2px solid #e8ecf0;
    border-radius: var(--landing-card-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.landing-pricing-card:hover {
    box-shadow: var(--landing-shadow-hover);
}
.landing-pricing-card.recommended {
    border-color: var(--andalusia-green);
    box-shadow: 0 6px 24px rgba(0,125,77,0.12);
    transform: scale(1.03);
}
.landing-pricing-card.recommended:hover {
    transform: scale(1.05);
}
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--andalusia-green);
    color: #fff;
    padding: 0.35rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}
.pricing-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.2rem;
    margin-top: 0.25rem;
}
.pricing-price {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--andalusia-green);
    margin-bottom: 0.2rem;
}
.pricing-price .pricing-eur {
    font-size: 1.6rem;
}
.pricing-per-doc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}
.pricing-docs-count {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1;
}
.pricing-features li {
    padding: 0.45rem 0;
    font-size: 0.9rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pricing-features li::before {
    content: '✓';
    color: var(--andalusia-green);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.pricing-btn {
    margin-top: auto;
    padding: 0.8rem 1.5rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
}

/* ============================================================
   CTA
   ============================================================ */
.landing-cta {
    background: var(--landing-hero-gradient);
    color: #fff;
    text-align: center;
    padding: 4.5rem 1.5rem;
}
.landing-cta .landing-container {
    max-width: 650px;
}
.landing-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.landing-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.landing-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.landing-btn-secondary-outline {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.25s;
}
.landing-btn-secondary-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}

/* ============================================================
   FOOTER
   ============================================================ */
.landing-footer {
    background: #1a202c;
    color: #cbd5e1;
    padding: 3rem 1.5rem 2rem;
    font-size: 0.9rem;
}
.landing-footer-inner {
    max-width: var(--landing-container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.landing-footer-brand .footer-logo {
    height: 32px;
    margin-bottom: 0.75rem;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
.landing-footer-brand p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0.15rem 0;
}
.footer-version {
    color: #64748b !important;
    font-size: 0.78rem !important;
}
.landing-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.landing-footer-links h4 {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.landing-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.landing-footer-links a:hover {
    color: #fff;
}
.landing-footer-contact a {
    color: var(--andalusia-green-light);
}

/* ============================================================
   RESPONSIVE — Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
    :root {
        --landing-section-pad: 5rem 2rem;
    }
    .landing-hero h1 {
        font-size: 3.2rem;
    }
    .landing-hero-sub {
        font-size: 1.3rem;
    }
    .landing-section-title {
        font-size: 2.4rem;
    }
    .landing-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-form-row {
        grid-template-columns: 1fr 1fr;
    }
    .landing-example-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .landing-example-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .landing-steps {
        flex-direction: row;
        gap: 1.5rem;
    }
    .landing-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
    }
    .landing-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .landing-cta h2 {
        font-size: 2.5rem;
    }
    .landing-footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ============================================================
   RESPONSIVE — Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
    .landing-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .landing-hero h1 {
        font-size: 3.5rem;
    }
}

/* ============================================================
   PLACEHOLDER / EMPTY STATE
   ============================================================ */
.landing-pricing-custom {
    border-style: dashed !important;
    border-color: #94a3b8 !important;
    background: #fafbfc;
}
.landing-pricing-custom .pricing-name {
    color: #64748b;
}
.landing-pricing-custom .pricing-price {
    font-size: 1.8rem;
    color: #94a3b8;
}
.landing-pricing-custom:hover {
    border-color: var(--andalusia-green) !important;
    background: #fff;
}

.landing-pricing-card.placeholder {
    opacity: 0.6;
    pointer-events: none;
}
.landing-pricing-card.placeholder .pricing-name {
    color: #94a3b8;
}
.landing-pricing-card.placeholder .pricing-price {
    color: #cbd5e1;
}
.landing-empty-msg {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
    font-style: italic;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.landing-animate {
    animation: fadeInUp 0.6s ease forwards;
}
