/*
Theme Name: blocksy Child
Template: blocksy
*/

:root {
    --color-primary: #008eff;
    --color-secondary: #23323f;
    --color-black: #000000;
    --color-white: #ffffff;
    --font-heading: 'Fraunces', serif;
    --font-body: 'DM Sans', sans-serif;
}

@font-face {
    font-family: 'DM Sans';
    src: url('fonts/dm-sans/DMSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'DM Sans';
    src: url('fonts/dm-sans/DMSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'DM Sans';
    src: url('fonts/dm-sans/DMSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Fraunces';
    src: url('fonts/fraunces/Fraunces-VariableFont_SOFT,WONK,opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Fraunces';
    src: url('fonts/fraunces/Fraunces-Italic-VariableFont_SOFT,WONK,opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

body {
    font-family: var(--font-body);
    color: var(--color-secondary);
}

h1, h2, h3, h4, h5, h6, .has-fraunces-font-family {
    font-family: var(--font-heading) !important;
}

/* JP2 Section Overlap */
.jp2-overlap-card {
    background-color: #ffffff;
    color: #23323f;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
    margin-top: -80px; /* Overlap effect */
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .jp2-overlap-card {
        flex-direction: column;
        margin-top: 0;
    }
}

/* ============================================
   HOME PAGE (page-id-12)
   ============================================ */
.page-id-12 .home-hero .wp-block-cover__inner-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 50px;
    width: 100%;
    box-sizing: border-box;
}

/* Constrain inner content for all sections */
.page-id-12 .home-hero .wp-block-columns,
.page-id-12 .home-culto .wp-block-columns,
.page-id-12 .home-templo-papa .wp-block-columns,
.page-id-12 .home-campanas .wp-block-columns,
.page-id-12 .home-celebraciones .wp-block-columns,
.page-id-12 .home-blog .wp-block-columns {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

/* Hero header: logo | nav | rrss */
.page-id-12 .home-hero-header {
    align-items: center;
    margin-bottom: 0;
}

.page-id-12 .home-logo img {
    display: block;
}

.page-id-12 .home-nav-col {
    text-align: center;
}

.page-id-12 .home-rrss-col {
    text-align: right;
}

.page-id-12 .home-rrss img {
    display: inline-block;
}

/* Hero main: two columns */
.page-id-12 .home-hero-main {
    flex: 1;
    align-items: stretch;
    margin-top: 40px;
}

/* Left column */
.page-id-12 .home-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 60px;
}

.page-id-12 .home-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.page-id-12 .home-hero-buttons {
    margin-bottom: 40px;
}

.page-id-12 .home-hero-buttons .wp-block-button {
    margin-right: 15px;
}

.page-id-12 .home-btn-caritas .wp-block-button__link {
    background-color: #00a8ff;
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-transform: none;
    font-weight: 500;
}

.page-id-12 .home-btn-colabora .wp-block-button__link {
    background-color: transparent;
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 0;
    border: 1px solid #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-transform: none;
    font-weight: 500;
}

/* Stats */
.page-id-12 .home-stats {
    margin-bottom: 30px;
}

.page-id-12 .stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 2px;
    font-weight: 700;
}

.page-id-12 .stat-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* Location */
.page-id-12 .home-location {
    margin-top: 20px;
}

.page-id-12 .home-subtitle {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: 400;
}

.page-id-12 .home-tagline {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: #ffffff;
    opacity: 0.9;
    font-style: italic;
}

/* Right column: hero image */
.page-id-12 .home-hero-right {
    display: flex;
    align-items: flex-end;
}

.page-id-12 .home-hero-img {
    margin-bottom: 0 !important;
}

.page-id-12 .home-hero-img img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
}

/* Culto Section */
.page-id-12 .home-culto .culto-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-id-12 .home-culto .culto-text {
    font-size: 1.05rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.page-id-12 .home-culto .wp-block-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

/* Templo & Papa Section */
.page-id-12 .home-templo-papa .templo-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

.page-id-12 .home-templo-papa .templo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-id-12 .home-templo-papa .templo-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.page-id-12 .home-templo-papa .templo-cta .wp-block-button__link {
    background-color: var(--color-primary, #002a4d);
    color: #ffffff;
    padding: 12px 30px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-radius: 0;
}

/* Campañas Section */
.page-id-12 .home-campanas .campanas-main-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 50px;
}

.page-id-12 .home-campanas .campana-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary, #002a4d);
    margin-top: 15px;
    margin-bottom: 5px;
}

.page-id-12 .home-campanas .campana-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.page-id-12 .home-campanas .campana-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.page-id-12 .home-campanas .campana-cta .wp-block-button__link {
    background-color: var(--color-primary, #002a4d);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 0;
    font-size: 0.85rem;
}

/* Celebraciones Section */
.page-id-12 .home-celebraciones {
    background-color: #f4f4f4;
}

.page-id-12 .home-celebraciones .celebraciones-main-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.page-id-12 .home-celebraciones .celebraciones-sub {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-id-12 .home-celebraciones .sacramento-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-top: 10px;
}

.page-id-12 .home-celebraciones .wp-block-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

/* Amigos Section */
.page-id-12 .home-amigos .amigos-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: #ffffff;
    text-align: center;
}

.page-id-12 .home-amigos .amigos-sub {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #ffffff;
    text-align: center;
    font-weight: 400;
}

/* Blog Section */
.page-id-12 .home-blog .blog-section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.page-id-12 .home-blog .blog-section-sub {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
}

.page-id-12 .home-blog .blog-post-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-secondary);
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-id-12 .home-blog .blog-post-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.page-id-12 .home-blog .wp-block-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .page-id-12 .home-hero-main {
        flex-direction: column;
    }

    .page-id-12 .home-hero-left {
        padding-right: 0;
    }

    .page-id-12 .home-hero-right {
        display: none;
    }

    .page-id-12 .home-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .page-id-12 .home-hero-header {
        flex-direction: column;
        gap: 15px;
    }

    .page-id-12 .home-title {
        font-size: 2.5rem;
    }

    .page-id-12 .home-subtitle {
        font-size: 1.5rem;
    }

    .page-id-12 .stat-number {
        font-size: 2.2rem;
    }

    .page-id-12 .amigos-title {
        font-size: 3rem;
    }

    .page-id-12 .home-culto .culto-title {
        font-size: 1.4rem;
    }

    .page-id-12 .home-stats {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-id-12 .home-title {
        font-size: 1.8rem;
    }

    .page-id-12 .home-hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   CELEBRACIONES MAIN PAGE (page-id-304)
   ============================================ */

.page-id-304 .wp-block-cover__inner-container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

/* Cards grid */
.page-id-304 .wp-block-group.has-white-background-color .wp-block-columns {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    gap: 25px;
}

.page-id-304 .wp-block-group.has-white-background-color .wp-block-column {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 25px;
}

.page-id-304 .wp-block-group.has-white-background-color .wp-block-column:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.page-id-304 .wp-block-group.has-white-background-color .wp-block-column .wp-block-image {
    margin-bottom: 0;
}

.page-id-304 .wp-block-group.has-white-background-color .wp-block-column .wp-block-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-id-304 .wp-block-group.has-white-background-color .wp-block-column h3 {
    padding: 0 20px;
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.page-id-304 .wp-block-group.has-white-background-color .wp-block-column p {
    padding: 0 20px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 18px;
}

.page-id-304 .wp-block-group.has-white-background-color .wp-block-column .wp-block-buttons {
    padding: 0 20px;
}

.page-id-304 .wp-block-group.has-white-background-color .wp-block-column .wp-block-button__link {
    border-radius: 4px;
    font-size: 0.8rem;
    padding: 8px 20px;
    font-family: var(--font-body);
    text-transform: none;
    font-weight: 500;
}

.page-id-304 .wp-block-cover:last-child .wp-block-cover__inner-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* ============================================
   SACRAMENTO DETAIL PAGES (child pages of page 304)
   ============================================ */

/* Override WordPress 6+ layout constraints for these pages */
.parent-pageid-304 .entry-content.is-layout-constrained > * {
    max-width: none;
}

/* --- Hero section: asymmetrical layout --- */
.parent-pageid-304 .sac-hero-wrap {
    background: #ffffff;
    margin-top: 0 !important;
    position: relative;
    z-index: 0;
}

.parent-pageid-304 .sac-hero-wrap .wp-block-group__inner-container {
    max-width: none;
}

.parent-pageid-304 .sac-hero-columns {
    max-width: 1300px;
    margin: 0 auto;
    gap: 0;
    align-items: stretch;
}

/* Left column: large/tall image */
.parent-pageid-304 .sac-hero-left {
    flex: 0 0 55% !important;
    padding: 0;
    overflow: hidden;
}

.parent-pageid-304 .sac-hero-left .sac-hero-img {
    margin-bottom: 0;
    height: 100%;
}

.parent-pageid-304 .sac-hero-left .sac-hero-img img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

/* Right column: two images side by side */
.parent-pageid-304 .sac-hero-right {
    flex: 0 0 45% !important;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.parent-pageid-304 .sac-hero-right-inner {
    gap: 0;
    height: 100%;
    margin: 0;
}

.parent-pageid-304 .sac-hero-right-inner .wp-block-column {
    padding: 0;
    overflow: hidden;
}

.parent-pageid-304 .sac-hero-right-inner .sac-hero-img {
    margin-bottom: 0;
    height: 100%;
}

.parent-pageid-304 .sac-hero-right-inner .sac-hero-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* --- Content section: overlapping white box --- */
.parent-pageid-304 .sac-content-wrap {
    position: relative;
    z-index: 1;
    margin-top: -80px !important;
    background: transparent;
}

.parent-pageid-304 .sac-content-wrap .wp-block-group__inner-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* White overlapping box */
.parent-pageid-304 .sac-white-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 50px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06), 0 4px 30px rgba(0,0,0,0.08);
    position: relative;
}

.parent-pageid-304 .sac-white-box h2 {
    margin-bottom: 8px;
}

.parent-pageid-304 .sac-white-box h3 {
    margin-bottom: 20px;
    font-weight: 400;
}

.parent-pageid-304 .sac-white-box > p {
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-size: 0.95rem;
    color: #555;
}

/* Info cards 2x2 inside white box */
.parent-pageid-304 .sac-white-box .wp-block-columns {
    gap: 25px;
    margin-bottom: 25px;
}

.parent-pageid-304 .sac-white-box .sac-card {
    background: #f8f9fa;
    border-left: 3px solid #00a8ff;
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
    transition: background 0.3s ease;
}

.parent-pageid-304 .sac-white-box .sac-card:hover {
    background: #f0f4ff;
}

.parent-pageid-304 .sac-white-box .sac-card h4 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.parent-pageid-304 .sac-white-box .sac-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
}

/* --- CTA section --- */
.parent-pageid-304 .sac-cta-section .wp-block-group__inner-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.parent-pageid-304 .sac-cta-section h2 {
    margin-bottom: 15px;
}

.parent-pageid-304 .sac-cta-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.parent-pageid-304 .sac-cta-section .wp-block-button__link {
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 12px 30px;
    font-family: var(--font-body);
    text-transform: none;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .parent-pageid-304 .sac-hero-left .sac-hero-img img {
        height: 400px;
    }

    .parent-pageid-304 .sac-hero-right-inner .sac-hero-img img {
        height: 200px;
    }

    .page-id-304 .wp-block-group.has-white-background-color .wp-block-column .wp-block-image img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .parent-pageid-304 .sac-hero-columns {
        flex-direction: column;
    }

    .parent-pageid-304 .sac-hero-left {
        flex: 0 0 100% !important;
    }

    .parent-pageid-304 .sac-hero-left .sac-hero-img img {
        height: 280px;
    }

    .parent-pageid-304 .sac-hero-right {
        flex: 0 0 100% !important;
    }

    .parent-pageid-304 .sac-hero-right-inner .sac-hero-img img {
        height: 200px;
    }

    .parent-pageid-304 .sac-content-wrap {
        margin-top: 0 !important;
    }

    .parent-pageid-304 .sac-white-box {
        padding: 25px 20px;
        border-radius: 0;
        box-shadow: none;
    }

    .parent-pageid-304 .sac-white-box .wp-block-columns {
        flex-direction: column;
    }

    .page-id-304 .wp-block-group.has-white-background-color .wp-block-column .wp-block-image img {
        height: 160px;
    }
}
