:root {
    --cfne-primary: #1F0330;
    --cfne-secondary: #D28BD1;
    --cfne-text: #333333;
    --cfne-bg: #fafafa;
    --cfne-white: #ffffff;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--cfne-bg);
    color: var(--cfne-text);
    line-height: 1.6;
}

body.webview-mode {
    padding-top: 0;
    background-color: var(--cfne-white);
}

/* Header WebView */
.webview-header {
    background-color: var(--cfne-primary);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(31, 3, 48, 0.4);
}

.btn-cfne-back {
    background: transparent;
    color: var(--cfne-secondary);
    border: 1px solid var(--cfne-secondary);
    border-radius: 6px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-cfne-back:hover {
    background: var(--cfne-secondary);
    color: var(--cfne-primary);
}

/* Contenedores */
.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-title {
    color: var(--cfne-primary);
    font-weight: 300;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Cards de Landing */
.about-grid {
    padding: 3rem 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-card {
    background: white;
    border: 1px solid rgba(31, 3, 48, 0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: 0 4px 20px rgba(31, 3, 48, 0.04);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(31, 3, 48, 0.12);
    border-color: rgba(210, 139, 209, 0.4);
    color: inherit;
}

.icon-svg {
    width: 48px;
    height: 48px;
    stroke: var(--cfne-primary);
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.about-card:hover .icon-svg {
    stroke: var(--cfne-secondary);
}

.about-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cfne-primary);
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-card .arrow {
    color: var(--cfne-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.about-card:hover .arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Card destacada */
.featured-beliefs {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #1F0330 0%, #2D0A45 100%);
    border: 1px solid rgba(210, 139, 209, 0.2);
}

.featured-beliefs .icon-svg {
    stroke: var(--cfne-secondary);
}

.featured-beliefs h3 {
    color: white;
    font-size: 1.1rem;
}

.featured-beliefs .arrow {
    color: var(--cfne-secondary);
    opacity: 0.9;
}

.featured-beliefs:hover {
    background: linear-gradient(135deg, #2D0A45 0%, #3D1055 100%);
    border-color: rgba(210, 139, 209, 0.4);
}

.section-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 300;
}

/* Contenido textual */
.historia-contenedor {
    line-height: 1.9;
    font-size: 1.05rem;
}

.historia-contenedor p {
    margin-bottom: 1.5rem;
    text-align: left;
    color: #444;
}

.historia-contenedor h2 {
    color: var(--cfne-primary);
    font-size: 1.2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.welcome-text {
    font-size: 1.1rem;
    color: var(--cfne-primary);
    margin-top: 2rem;
    font-weight: 600;
}

.highlight {
    background: linear-gradient(135deg, rgba(210, 139, 209, 0.1) 0%, rgba(31, 3, 48, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--cfne-secondary);
    margin: 2rem 0;
    font-weight: 500;
}

/* Pastores */
.pastor-card {
    background: white;
    border: 1px solid rgba(31, 3, 48, 0.08);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(31, 3, 48, 0.06);
}

.pastor-avatar {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--cfne-secondary);
    box-shadow: 0 8px 30px rgba(210, 139, 209, 0.2);
}

.pastor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pastor-name {
    color: var(--cfne-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.pastor-role {
    color: var(--cfne-secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Versículos */
.verse-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-left: 3px solid var(--cfne-secondary);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin-top: 2rem;
    font-style: italic;
    color: var(--cfne-primary);
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
}

/* What We Believe - Lista */
.beliefs-grid {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem 3rem;
}

.belief-card {
    background: white;
    border: 1px solid rgba(31, 3, 48, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    text-align: left;
    border: none;
    width: 100%;
    box-shadow: 0 2px 12px rgba(31, 3, 48, 0.04);
    margin-bottom: 0.75rem;
}

.belief-card:hover {
    box-shadow: 0 8px 30px rgba(31, 3, 48, 0.1);
    border-color: rgba(210, 139, 209, 0.3);
    transform: translateX(4px);
}

.belief-icon {
    width: 32px;
    height: 32px;
    stroke: var(--cfne-primary);
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: stroke 0.3s ease;
}

.belief-card:hover .belief-icon {
    stroke: var(--cfne-secondary);
}

.belief-content {
    flex: 1;
}

.belief-title {
    color: var(--cfne-primary);
    font-weight: 600;
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.belief-arrow {
    color: var(--cfne-secondary);
    opacity: 0.5;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.belief-card:hover .belief-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Page header específico */
.page-header-beliefs {
    background: var(--cfne-primary);
    color: white;
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
}

.page-header-beliefs h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Modales */
.modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
    height: calc(100% - 20px);
}

@media (min-width: 768px) {
    .modal-dialog {
        max-width: 600px;
        margin: 1.75rem auto;
        height: auto;
        max-height: calc(100% - 3.5rem);
    }
}

.modal-content {
    border-radius: 16px;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(31, 3, 48, 0.5);
}

.modal-header {
    background: var(--cfne-primary);
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(210, 139, 209, 0.2);
}

.modal-title {
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-icon {
    width: 24px;
    height: 24px;
    stroke: var(--cfne-secondary);
    stroke-width: 1.5;
    fill: none;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2rem;
    flex: 1;
}

.modal-body h5 {
    color: var(--cfne-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.modal-body h6 {
    color: var(--cfne-secondary);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.modal-body p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: #555;
    font-size: 1rem;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 1.25rem;
}

.btn-cfne-modal {
    background: transparent;
    color: var(--cfne-secondary);
    border: 1px solid var(--cfne-secondary);
    border-radius: 6px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-cfne-modal:hover {
    background: var(--cfne-secondary);
    color: var(--cfne-primary);
}

/* Botón back flotante */
.back-arrow {
    position: fixed;
    bottom: 30px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: rgba(31, 3, 48, 0.8);
    backdrop-filter: blur(10px);
    color: var(--cfne-secondary);
    border: 1px solid rgba(210, 139, 209, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1030;
    transition: all 0.3s ease;
}

body.modal-open .back-arrow {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.back-arrow:hover {
    background: var(--cfne-primary);
    border-color: var(--cfne-secondary);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .content-container,
    .about-grid {
        padding: 2rem 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .about-card {
        padding: 2rem 1rem;
    }
    
    .icon-svg {
        width: 40px;
        height: 40px;
    }
    
    .pastor-avatar {
        width: 150px;
        height: 150px;
    }
    
    .pastor-card {
        padding: 2rem 1rem;
    }
    
    .belief-icon {
        width: 28px;
        height: 28px;
    }
}