/* =========================================
   GESTIÓN PASTORAL DIGITAL - LANDING PAGE
   Estilos CSS Completos
   ========================================= */

/* Variables CSS */
:root {
    --celestial-blue: #87CEEB;
    --soft-blue: #E6F3FF;
    --deep-blue: #2c4866;
    --gold-accent: #FFD700;
    --warm-white: #FAFAFA;
    --soft-gray: #F8F9FA;
    --text-primary: #2C3E50;
    --text-secondary: #5A6C7D;
    --gradient-celestial: linear-gradient(135deg, #87CEEB 0%, #87CEEB 100%);
    --gradient-divine: linear-gradient(135deg, #4682B4 0%, #4682B4 50%, #4682B4 100%);
    --shadow-soft: 0 10px 30px rgba(135, 206, 235, 0.1);
    --shadow-elegant: 0 20px 60px rgba(70, 130, 180, 0.15);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--warm-white);
    overflow-x: hidden;
}

.playfair {
    font-family: 'Playfair Display', serif;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(135, 206, 235, 0.1);
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    color: var(--deep-blue) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--deep-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--celestial-blue);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    background: var(--gradient-divine);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Espacio para navbar fijo */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="3" fill="rgba(255,255,255,0.4)"/><circle cx="800" cy="300" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="400" cy="600" r="2" fill="rgba(255,255,255,0.4)"/><circle cx="700" cy="800" r="3" fill="rgba(255,255,255,0.2)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Botones */
.btn-divine {
    background: var(--gradient-celestial);
    border: none;
    color: var(--deep-blue);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    display: inline-block;
}

.btn-divine:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elegant);
    color: var(--deep-blue);
}

.btn-outline-divine {
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    background: transparent;
}

.btn-outline-divine:hover {
    background: white;
    color: var(--deep-blue);
    transform: translateY(-3px);
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-section {
    padding: 6rem 0;
    background: var(--warm-white);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elegant);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-celestial);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--deep-blue);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   STATS SECTION
   ========================================== */
.stats-section {
    padding: 4rem 0;
    background: white;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--deep-blue);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================
   MODULES SECTION
   ========================================== */
.modules-section {
    padding: 6rem 0;
    background: var(--soft-gray);
}

.module-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.module-card:hover {
    box-shadow: var(--shadow-elegant);
    transform: translateY(-5px);
}

.module-header {
    background: var(--gradient-celestial);
    padding: 2rem;
    text-align: center;
}

.module-icon {
    font-size: 3rem;
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

.module-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
}

.module-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.module-body {
    padding: 2rem;
}

.module-features {
    list-style: none;
    padding: 0;
}

.module-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.module-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--celestial-blue);
    font-weight: bold;
}

.expand-btn {
    background: none;
    border: none;
    color: var(--deep-blue);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    color: var(--celestial-blue);
}

.module-details {
    display: none;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: 1rem;
}

/* ==========================================
   BENEFITS SECTION
   ========================================== */
.benefits-section {
    padding: 6rem 0;
    background: var(--gradient-divine);
    color: white;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.benefit-icon {
    font-size: 3rem;
    margin-right: 2rem;
    color: var(--gold-accent);
}

.benefit-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-content p {
    margin: 0;
    opacity: 0.9;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: 6rem 0;
    background: var(--soft-gray);
}

.contact-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.contact-form .form-control {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--celestial-blue);
    box-shadow: 0 0 0 0.2rem rgba(135, 206, 235, 0.25);
}

.contact-info {
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
}

.social-links a {
    color: var(--deep-blue);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--celestial-blue);
    transform: translateY(-2px);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--celestial-blue);
}

/* ==========================================
   MODAL
   ========================================== */
.modal-content {
    border-radius: 20px;
    border: none;
}

.modal-header {
    background: var(--gradient-celestial);
    border-radius: 20px 20px 0 0;
}

.modal-title {
    color: var(--deep-blue);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
   .navbar-custom {
    padding: var(--spacing-sm) 0;
}

.navbar-custom.scrolled {
    padding: var(--spacing-xs) 0;
}

.hero-section {
    padding-top: 100px; /* Más espacio en mobile */
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
}

.hero-description {
    font-size: 1rem;
    margin-bottom: var(--spacing-xl);
}

.btn-premium, .btn-outline-premium {
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: 0.95rem;
    width: 100%;
    max-width: 280px;
    margin-bottom: var(--spacing-lg);
    justify-content: center;
}

.benefit-item {
    flex-direction: column;
    text-align: center;
}

.benefit-icon {
    margin-right: 0;
    margin-bottom: var(--spacing-lg);
}

.contact-card {
    padding: var(--spacing-xl);
}

.section-title {
    font-size: 2.25rem;
}

.features-section,
.modules-section,
.benefits-section,
.contact-section {
    padding: var(--spacing-3xl) 0;
}

/* Navegación suave sin solapamiento */
#inicio,
#funcionalidades,
#modulos,
#beneficios,
#contacto {
    scroll-margin-top: 100px;
}
}

@media (max-width: 576px) {
.hero-section {
    padding-top: 120px; /* Aún más espacio en pantallas pequeñas */
}

.navbar-custom {
    padding: var(--spacing-xs) 0;
}

.feature-card,
.module-card {
    margin-bottom: var(--spacing-lg);
}

.feature-card {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.module-body {
    padding: var(--spacing-lg);
}

.contact-info {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.navbar-toggler {
    border: none;
    padding: var(--spacing-sm);
}

.navbar-collapse {
    background: var(--surface);
    margin-top: var(--spacing-md);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}

.nav-link {
    padding: var(--spacing-lg) !important;
    margin: 0 !important;
    text-align: center;
}

/* Más espacio para móviles pequeños */
#inicio,
#funcionalidades,
#modulos,
#beneficios,
#contacto {
    scroll-margin-top: 120px;
}
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-celestial {
    color: var(--celestial-blue) !important;
}

.bg-celestial {
    background-color: var(--celestial-blue) !important;
}

.border-celestial {
    border-color: var(--celestial-blue) !important;
}

.shadow-divine {
    box-shadow: var(--shadow-elegant) !important;
}

/* ==========================================
   FORM ENHANCEMENTS
   ========================================== */
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(135, 206, 235, 0.25);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ==========================================
   LOADING STATES
   ========================================== */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-ring:focus {
    outline: 2px solid var(--celestial-blue);
    outline-offset: 2px;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .navbar-custom,
    .footer,
    .btn-divine,
    .btn-outline-divine {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .section-title,
    .feature-title,
    .module-title {
        color: black !important;
    }
}