/* ---------------- ABOUT PAGE ---------------- */
body.about-page {
    font-family: 'Poppins', sans-serif;
}

/* -------- HERO SECTION -------- */
body.about-page .main-hero {
    position: relative;

    background: url('assets/About/lideres.JPG') center/cover no-repeat;
    height: 60vh;

    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Overlay */
body.about-page .main-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.75)
    );
    z-index: 1;
}

body.about-page .main-hero .hero-content {
    text-align: center;
    max-width: 90%;
    position: relative;
    z-index: 2;
}

body.about-page .main-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

body.about-page .main-hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

body.about-page .main-hero a.btn-primary {
    padding: 0.8em 2em;
    font-weight: 600;
    border-radius: 50px;
}

/* -------- PASTORES SECTION -------- */
body.about-page .pastores h2 {
    font-size: 2rem;
    color: var(--primary);
}

body.about-page .pastores {
    padding: 3rem 2rem;
    text-align: center;
}

body.about-page .pastor-card {
    display: inline-block;
    max-width: 320px;
    margin: 1.5rem;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

body.about-page .pastor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

body.about-page .pastor-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Names */
body.about-page .pastor-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Mensaje BELOW the card */
body.about-page .pastores > p {
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}
/* -------- MISIÓN & VISIÓN SECTION -------- */
/* Misión & Visión enhancement */
body.about-page .mision-vision .mision,
body.about-page .mision-vision .vision {
    flex: 1 1 300px;
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    margin: .2rem 2rem 2rem 2rem;
}

body.about-page .mision-vision .mision::before,
body.about-page .mision-vision .vision::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background: var(--primary);
    border-radius: 20px 0 0 20px;
}

body.about-page .mision-vision h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

body.about-page .mision-vision p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

/* -------- RESEÑA SECTION -------- */
body.about-page .reseña-section {
    background: #f7f8fa; /* same as homepage */
    padding: 4rem 2rem;
    max-width: 100%;
}

body.about-page .reseña-section h3.reseña-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}
body.about-page .highlight {
    color: var(--third); /* your red */
    font-weight: 700;
    letter-spacing: 0.5px;
}

body.about-page .reseña-section p {
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
    color: #333;
}

body.about-page .reseña-section .read-more-toggle {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--secondary);
    cursor: pointer;
    font-weight: 500;
}

body.about-page .reseña-section .reseña-full {
    display: none;
    margin-top: 1rem;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 900px) {
    body.about-page .mision-vision {
        flex-direction: column;
        gap: 2rem;
    }

    body.about-page .pastor-card {
        margin: 1rem auto;
    }
}



/* ---------------- Ministries PAGE ---------------- */
body.ministries-page {
    font-family: 'Poppins', sans-serif;
}
/* -------- HERO SECTION -------- */
body.ministries-page .main-hero {
    position: relative;
    height: 55vh;

    background: url("assets/Ministerios/minihero.JPG") center/cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

body.ministries-page .main-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.75)
    );
}

body.ministries-page .hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

/* -------- Ministries SECTION -------- */
/* SECTION BACKGROUND */
.ministries {
    background: #f4f4f4;
    padding: 4rem 2rem;
}

/* ROW LAYOUT */
.ministry-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem; /* smaller internal spacing */

    max-width: 1100px; /* gives more breathing room */
    padding: 0 2rem;   /* 👈 THIS is what pushes content away from edges */

    margin: 0 auto 4rem;
}

/* REVERSE ROW */
.ministry-row.reverse {
    flex-direction: row-reverse;
}

/* TEXT SIDE */
.ministry-row .text {
    flex: 1;
}

.ministry-row h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.ministry-row p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* IMAGE SIDE */
.ministry-row img {
    width: 350px;
    height: 350px;
    object-fit: cover;
}

.btn-modal {
    position: relative;
    padding: 0.7em 1.8em;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.3s ease;
    z-index: 1;
}

.btn-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn-modal:hover::before {
    transform: scaleX(1);
}

.btn-modal:hover {
    color: #fff !important;
}

/* KEEP layout SAME on all screens */
.ministry-row,
.ministry-row.reverse {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;

    max-width: 1000px;
    margin: 0 auto 4rem;

}

/* TEXT */
.ministry-row .text {
    flex: 1;
}

/* IMAGE */
.ministry-row img {
    width: 350px;
    height: 350px;
    object-fit: cover;
}

.ministry-row .text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 👈 key */
    gap: 0.5rem;
}

@media (max-width: 600px) {

    .ministry-row,
    .ministry-row.reverse {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .ministry-row h2 {
        font-size: 1.3rem;
    }

    .ministry-row p {
        font-size: 0.85rem;
    }

    .ministry-row img {
        width: 180px;
        height: 180px;
    }

}



.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    max-width: 520px;
    width: 90%;
    border-radius: 16px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close:hover { color: #333; }

.modal-main-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.modal-content h2 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-extra {
    text-align: left;
    background: #f7f8fa;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.modal-detail {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    color: #333;
}

.modal-detail i {
    color: var(--primary);
    width: 16px;
}

.modal-detail a {
    color: var(--primary);
    text-decoration: none;
}

.btn-gallery {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7em 1.8em;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.btn-gallery:hover {
    background: var(--secondary);
}


/* ---------------- CONTACT PAGE ---------------- */
body.contact-page {
    font-family: 'Poppins', sans-serif;
}

body.contact-page .main-hero {
    position: relative;
    height: 50vh;
    background: url('assets/Home/cultoEspalda.JPG') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

body.contact-page .main-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.75));
    z-index: 1;
}

body.contact-page .main-hero .hero-content {
    position: relative;
    z-index: 2;
}

body.contact-page .main-hero h1 { font-size: 3rem; }
body.contact-page .main-hero p  { font-size: 1.2rem; }

/* INFO CARDS */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem 2rem;
    background: #f7f8fa;
}

.contact-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    width: 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s;
}

.contact-card:hover { transform: translateY(-5px); }

.contact-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.contact-card h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.contact-card p,
.contact-card a {
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    line-height: 1.5;
}

/* FORM + MAP */
.contact-main {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 4rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-form-wrap,
.map-wrap {
    flex: 1;
    min-width: 300px;
}

.contact-form-wrap h2,
.map-wrap h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.contact-form-wrap p,
.map-wrap p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #333;
    transition: border 0.3s;
    outline: none;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 0.85em;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.5rem;
}

.btn-submit:hover { background: var(--secondary); }

.form-note {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.8rem;
    color: green;
}

/* SOCIAL */
.contact-social {
    text-align: center;
    padding: 3rem 2rem;
    background: #f7f8fa;
}

.contact-social h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.social-icons-large {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icons-large a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.3s, color 0.3s;
}

.social-icons-large a:hover {
    transform: translateY(-4px);
    color: var(--secondary);
}

.social-icons-large i { font-size: 2rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .contact-main { padding: 2rem 1.5rem; }
    body.contact-page .main-hero h1 { font-size: 2rem; }
}

/* SCHEDULE */
.schedule-section {
    padding: 4rem 2rem;
    text-align: center;
    background: #fff;
}

.schedule-section h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.schedule-section > p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.schedule-images {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.schedule-images img {
    width: 100%;
    max-width: 380px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.schedule-images img:hover {
    transform: scale(1.02);
}

/* DONATIONS */
.donate-section {
    padding: 4rem 2rem;
    background: #f7f8fa;
    text-align: center;
}

.donate-content {
    max-width: 500px;
    margin: 0 auto;
}

.donate-content i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.donate-content h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.donate-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .schedule-images {
        flex-direction: column;
        align-items: center;
    }

    .schedule-images img {
        max-width: 100%;
    }
}