/*
Theme Name: Pastorea Theme
Description: Tema hijo ultra-rápido para la plataforma SaaS Pastorea.
Author: Kevin
Template: astra
Version: 1.0.0
*/

/* Hide default Astra header completely */
header.site-header {
    display: none !important;
}

/* Custom Header (Edge-to-edge transparent by default) */
.pastorea-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
    pointer-events: none; /* Let clicks pass through empty spaces */
}

.pastorea-navbar .navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto; /* Enable clicks inside container */
}

.pastorea-navbar .navbar-brand {
    font-weight: 800;
    font-size: 20px;
    color: #111;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pastorea-navbar .navbar-links-list {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pastorea-navbar .navbar-links-list li {
    margin: 0;
}

.pastorea-navbar .navbar-links-list a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.pastorea-navbar .navbar-links-list a:hover {
    color: #111;
}

.pastorea-navbar .btn-probar {
    background: #191919;
    color: #fff;
    padding: 10px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s, background 0.2s;
}

.pastorea-navbar .btn-probar:hover {
    background: #000;
    transform: translateY(-1px);
    color: #fff;
}

/* Scrolled State - The Glassmorphism Pill */
.pastorea-navbar.is-scrolled {
    padding: 15px 0;
}

.pastorea-navbar.is-scrolled .navbar-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border-radius: 999px;
    padding: 10px 20px;
    max-width: 800px;
}

/* Ensure body content is not hidden under the fixed header */
body {
    padding-top: 80px;
}

/* Hide default Astra footer */
footer.site-footer {
    display: none !important;
}

/* Custom Footer */
.pastorea-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    margin-top: 60px;
    border-top: 1px solid #1e293b;
}

.pastorea-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pastorea-footer p {
    margin: 0;
}

/* ==========================================================================
   GLOBAL & TYPOGRAPHY
   ========================================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
    background-color: #f8fafc;
    line-height: 1.6;
}

.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn--xl {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn--gold {
    background-color: #f59e0b;
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.39);
}

.btn--gold:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: #fff;
}

.btn--ghost {
    background-color: transparent;
    color: #334155;
    border: 2px solid #e2e8f0;
}

.btn--ghost:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.btn--outline {
    background-color: transparent;
    color: #0f172a;
    border: 2px solid #0f172a;
}

.btn--outline:hover {
    background-color: #0f172a;
    color: #fff;
}

.btn--full {
    width: 100%;
    margin-top: 2rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 120px 20px 80px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero__title {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 5rem;
}

.hero__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.hero-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.hero-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.hero-card p {
    color: #64748b;
    margin: 0;
}

/* ==========================================================================
   MÓDULOS (FUNCIONALIDADES)
   ========================================================================== */
.module-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.module-row--reverse {
    flex-direction: row-reverse;
}

.module-row__text {
    flex: 1;
}

.module-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.module-row__text h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.module-row__text p {
    font-size: 1.125rem;
    color: #475569;
}

.module-row__visual {
    flex: 1;
}

.module-visual-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.module-visual-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-visual-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.module-visual-rows {
    padding: 1.5rem;
}

.module-visual-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.module-visual-row:last-child {
    border-bottom: none;
}

.mvr-label {
    color: #64748b;
    font-weight: 500;
}

.mvr-val {
    font-weight: 700;
}

.clr-primary { color: #0f172a; }
.clr-green { color: #16a34a; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.pricing-card--featured {
    border: 2px solid #f59e0b;
    box-shadow: 0 20px 25px -5px rgba(245,158,11,0.1);
    transform: scale(1.05);
}

.pricing-card__label {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-card__features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card__features li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
}

.plan-toggle {
    display: inline-flex;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.plan-toggle__btn {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-toggle__btn.is-active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ==========================================================================
   CONTACT / FEATURES GRID
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    .module-row {
        flex-direction: column;
    }
    .pricing-card--featured {
        transform: scale(1);
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #334155;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* ==========================================================================
   CLOUDS BACKGROUND ANIMATION & PARALLAX
   ========================================================================== */
.clouds-wrapper {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    z-index: -2; /* ensure it's behind everything */
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, #e0f2fe 0%, #f8fafc 100%);
}

.cloud {
    position: absolute;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 45'%3E%3Cpath fill='%23ffffff' opacity='1' d='M83.8,17.4 C82.5,9.6 75.7,3.6 67.5,3.6 C61.9,3.6 57,6.8 54.3,11.4 C52.2,9.9 49.7,9 47,9 C40.4,9 35,14.4 35,21 C35,21.5 35,22 35.1,22.5 C33.6,21.5 31.9,21 30,21 C24.5,21 20,25.5 20,31 C20,36.5 24.5,41 30,41 L82.5,41 C89.4,41 95,35.4 95,28.5 C95,22.2 90.3,17.9 83.8,17.4 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.03));
    will-change: transform;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-container { 
    max-width: 850px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 1.2rem; 
}
.faq-item { 
    background: #fff; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    overflow: hidden; 
    transition: all 0.3s ease; 
}
.faq-item:hover { 
    box-shadow: 0 8px 12px -3px rgba(0,0,0,0.05); 
    border-color: #cbd5e1; 
}
.faq-question { 
    width: 100%; 
    text-align: left; 
    background: none; 
    border: none; 
    padding: 1.5rem 2rem; 
    font-size: 1.15rem; 
    font-weight: 700; 
    color: #334155; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer; 
    transition: color 0.2s; 
}
.faq-question:hover { color: #0f172a; }
.faq-icon { 
    background: #eff6ff; 
    color: #3b82f6; 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.4rem; 
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease; 
    font-family: monospace;
}
.faq-item.active .faq-icon { 
    transform: rotate(45deg); 
    background: #fef2f2; 
    color: #ef4444; 
}
.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.4s ease; 
}
.faq-item.active .faq-answer { 
    max-height: 1000px; 
    padding: 0 2rem 1.5rem 2rem; 
    transition: max-height 0.4s ease-in-out, padding 0.4s ease;
}
.faq-answer p { 
    color: #64748b; 
    margin: 0; 
    line-height: 1.7; 
    font-size: 1.05rem;
}

/* ==========================================================================
   MOBILE MENU OVERLAY
   ========================================================================== */
.desktop-only { display: flex; }
.mobile-menu-toggle { 
    display: none; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    color: #0f172a; 
    padding: 0.5rem; 
}

@media (max-width: 850px) {
    .desktop-only { display: none !important; }
    .mobile-menu-toggle { display: block; }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    z-index: 9999;
    background: rgba(224, 242, 254, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    width: 90%;
    max-width: 400px;
    height: max-content;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu-overlay.is-active .mobile-menu-card {
    transform: translateY(0) scale(1);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: #f8fafc;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #475569;
    padding: 0.5rem;
}

.mobile-menu-body {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-navbar-links-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-navbar-links-list a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 1.15rem;
}

.mobile-link-login {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.btn-probar-mobile {
    background: #0f172a;
    color: #ffffff;
    padding: 1rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.2s;
}
.btn-probar-mobile:hover {
    background: #1e293b;
}

/* ==========================================================================
   PRICING & REGISTRATION PAGE
   ========================================================================== */
.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}
.toggle-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s;
}
.toggle-label.active {
    color: #0f172a;
}
.badge-ahorro {
    background: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 800;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #3b82f6;
    transition: .4s;
    border-radius: 34px;
}
.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.toggle-switch input:checked + .slider {
    background-color: #10b981;
}
.toggle-switch input:checked + .slider:before {
    transform: translateX(26px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.pricing-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: left;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.pricing-card.popular {
    border: 2px solid #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pricing-header h3 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 5px;
}
.pricing-header p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.pricing-header .price {
    display: flex;
    align-items: baseline;
    margin-bottom: 30px;
}
.price .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}
.price .amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}
.price .period {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    margin-left: 5px;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    flex-grow: 1;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #475569;
    font-size: 1.05rem;
}
.btn-plan {
    display: block;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-plan.btn-primary {
    background: #0f172a;
    color: #fff;
}
.btn-plan.btn-primary:hover {
    background: #3b82f6;
}
.btn-plan.btn-outline {
    background: transparent;
    color: #0f172a;
    border: 2px solid #e2e8f0;
}
.btn-plan.btn-outline:hover {
    border-color: #0f172a;
}

/* ==========================================================================
   STRIPE SAAS CHECKOUT & FORM STYLES
   ========================================================================== */
#saas-checkout-form input:focus {
    border-color: #3b82f6 !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #ffffff !important;
}

@media (max-width: 900px) {
    #saas-checkout-form {
        grid-template-columns: 1fr !important;
    }
}


