/*
 * Front Page Specific Styles
 * Separated from front-page.php inline styles
 */

/* =========================================
   1. EDIT BUTTON (ADMIN ONLY)
   ========================================= */
.asomaria-edit-section-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 999;
    background: var(--gold, #D4A017);
    color: white !important;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.asomaria-edit-section-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--navy-dark, #1e293b);
    color: white !important;
}

/* =========================================
   2. HERO SECTION
   ========================================= */
.hero-svg-bg {
    z-index: 0;
    pointer-events: none;
}
.hero-svg-bg svg {
    height: 100%;
    width: auto;
}
.hero-dove-bg {
    font-size: 15rem;
    color: rgba(212, 160, 23, 0.05);
    z-index: -1;
    transform: rotate(20deg);
}
.hero-subtitle-small {
    font-size: 0.65rem;
    letter-spacing: 2px;
    font-weight: 800;
    color: #fff !important;
    background-color: #ff781f;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(255, 120, 31, 0.2);
}
.hero-title-main {
    font-size: 3rem;
    color: var(--navy);
    font-weight: 800;
    line-height: 1.25;
}
.hero-title-italic {
    font-weight: 300;
    font-style: italic;
    color: var(--navy);
}
.section-separator {
    height: 1px;
    width: 40px;
    background: var(--gold);
}

/* Hero Masonry Grid */
.masonry-col-30 { width: 30%; }
.masonry-col-35 { width: 35%; }
.masonry-img-140 { height: 140px; }
.masonry-img-150 { height: 150px; }
.masonry-img-180 { height: 180px; }
.masonry-featured {
    transform: scale(1.05);
    z-index: 2;
}

/* =========================================
   3. PRESENCIA SECTION
   ========================================= */
.seccion-tarjetas-presencia {
    margin-top: -30px;
    border-radius: 40px 40px 0 0;
    z-index: 10;
}
.labor-dove-bg {
    font-size: 15rem;
    color: rgba(212, 160, 23, 0.05);
    z-index: -1;
    transform: rotate(20deg);
    pointer-events: none;
}
@media (max-width: 768px) {
    .firma-identidad-seccion {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
        width: 100%;
        margin-bottom: 2rem !important;
    }
    .labor-header-wrap {
        justify-content: center !important;
        text-align: center;
    }
    /* Reducir padding de botones en móvil */
    /* Estilo "App" para botones en móvil */
    .hero-btns-mobile {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .hero-btns-mobile .btn {
        flex: 1;
        padding: 12px 10px !important;
        font-size: 0.75rem !important; /* Más pequeño tipo App */
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        letter-spacing: 0;
        border-radius: 12px !important; /* Menos redondeado, más moderno */
    }
    .hero-btns-mobile .btn i {
        font-size: 1rem !important;
        margin-right: 5px !important;
    }
}
.card-presencia {
    position: relative;
    overflow: hidden;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 200px; /* Asegura un mínimo de altura estética */
}
@media (max-width: 768px) {
    .card-presencia {
        min-height: auto !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 16px !important;
        gap: 16px !important;
        border-radius: 16px !important;
    }
    .card-presencia .position-absolute {
        position: relative !important;
        padding: 0 !important;
        opacity: 1 !important;
        top: auto !important;
        right: auto !important;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: #f8f9fa;
        border-radius: 12px;
        flex-shrink: 0;
    }
    .card-presencia-icon {
        font-size: 1.25rem !important;
    }
    .card-presencia h4 {
        font-size: 0.95rem !important;
        margin-bottom: 2px !important;
    }
    .card-presencia p {
        font-size: 0.75rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .card-presencia .mt-auto {
        display: none !important; /* Ocultamos el texto "Ver Galería" en móvil */
    }
    /* Añadimos una flecha sutil a la derecha */
    .card-presencia::after {
        content: '\f054';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        margin-left: auto;
        color: #D4A017;
        font-size: 0.8rem;
    }
}
.card-presencia-icon {
    color: #D4A017;
}

/* =========================================
   4. PROPÓSITO SECTION
   ========================================= */
.proposito-bg-1 {
    top: -20%;
    left: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(44,62,80,0.03) 0%, transparent 70%);
    filter: blur(40px);
}
.proposito-bg-2 {
    bottom: -20%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(212,160,23,0.08) 0%, transparent 60%);
    filter: blur(60px);
}
.proposito-bg-3 {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
}
.proposito-separator {
    height: 4px;
    width: 40px;
    margin-right: 15px;
}
.proposito-title-1 {
    font-size: 1.75rem;
    letter-spacing: 1px;
}
.proposito-title-2 {
    font-weight: 800;
    line-height: 0.9;
}
.proposito-text {
    line-height: 1.8;
}
.proposito-quote-border {
    border-left: 3px solid var(--gold);
}
.proposito-quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
}
.collage-modern-wrapper {
    min-height: 550px;
    max-width: 600px;
}
.collage-card-1 {
    width: 50%;
    height: 85%;
    top: 0;
    right: 0;
    z-index: 1;
}
.collage-card-2 {
    width: 55%;
    height: 45%;
    top: 15%;
    left: 0;
    z-index: 2;
    border: 5px solid white;
}
.collage-card-3 {
    width: 40%;
    height: 35%;
    bottom: 0;
    left: 15%;
    z-index: 3;
    border: 5px solid white;
}

/* =========================================
   5. TRANSFORMANDO (CINEMATIC)
   ========================================= */
.transformando-cinematico {
    background-color: #000;
    min-height: 300px;
    display: flex;
    align-items: center;
}
.transformando-bg-left {
    background-size: cover;
    background-position: left center;
}
.transformando-gradient {
    background: linear-gradient(90deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.8) 60%, #000 80%);
}
.transformando-content {
    max-width: 600px;
}
.transformando-h2 {
    line-height: 0.85;
}
.transformando-span-1 {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 2px;
}
.transformando-span-2 {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-size: clamp(5rem, 10vw, 7rem);
    font-weight: 900;
    color: #FFD700;
    margin-top: 10px;
}
.transformando-p-1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
}
.transformando-p-1 span {
    color: #FFD700;
    font-weight: 700;
}
.transformando-p-2 {
    font-family: 'Montserrat', sans-serif;
}

/* =========================================
   6. COMPROMISO SOLIDARIO
   ========================================= */
.seccion-compromiso {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    border-top: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
    padding: 60px 0 !important; /* Espaciado más compacto */
}
.compromiso-dove {
    font-size: 4rem;
    color: #FFD700;
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.2));
}
.compromiso-content {
    max-width: 950px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .compromiso-content {
        padding: 0 15px;
    }
    .compromiso-quote {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }
}
.compromiso-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-style: italic;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 30px;
}
.compromiso-quote strong {
    color: #FFD700;
    font-style: italic;
    font-weight: 800;
}
.compromiso-separator {
    height: 1px;
    width: 50px;
    background: rgba(255, 255, 255, 0.3);
}
.compromiso-nuestro {
    font-family: 'Montserrat', sans-serif;
    color: #FFD700;
    font-size: 0.9rem;
    letter-spacing: 4px;
}
.compromiso-h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: -1px;
}
.compromiso-p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

/* =========================================
   7. CONTACTO
   ========================================= */
.contacto-badge {
    background: #FDF4E3;
    color: #D4A017;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.contacto-p {
    font-size: 15px;
}
.contacto-h6 {
    font-size: 14px;
    text-transform: uppercase;
}
.contacto-tarjeta {
    box-shadow: 0 15px 35px rgba(0,0,0,0.05) !important;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem !important;
}
.contacto-h3 {
    color: #1a2b3c;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 0.5rem !important;
}
.contacto-subtitle {
    color: #64748b;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 1rem !important;
}
.contacto-input {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.85rem;
    padding: 8px 12px !important;
}
.contacto-btn {
    background-color: #ff781f !important;
    color: white !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto !important;
    max-width: 160px !important; /* Limit width explicitly */
    margin: 0 auto !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 120, 31, 0.2) !important;
    border: none !important;
}

.contacto-btn:hover {
    background-color: #e66a1a !important;
    transform: translateY(-1px);
}

.contacto-btn i {
    font-size: 0.75rem;
}

/* =========================================
   8. RESPONSIVE / MÓVIL
   ========================================= */
@media (max-width: 991.98px) {
    /* Hero */
    .hero-title-main {
        font-size: 2.2rem;
    }
    
    /* Masonry - Use a clean 2-column grid on mobile */
    .cross-masonry-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
        margin-top: 30px;
    }
    .masonry-col-30, .masonry-col-35 {
        display: contents !important; /* Flatten the structure for the grid */
    }
    .cross-item {
        width: 100% !important;
        height: 160px !important; /* Consistent height for mobile grid */
        margin: 0 !important;
        transform: none !important; /* Remove desktop tilts/scaling */
    }
    .masonry-featured {
        grid-column: span 2; /* Featured item takes full width */
        height: 200px !important;
    }
    
    /* Propósito Collage */
    .collage-modern-wrapper {
        min-height: auto !important;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
    }
    .collage-card-modern {
        position: relative !important;
        width: 100% !important;
        height: 250px !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-bottom: 0 !important;
        border: 2px solid white !important;
        border-radius: 12px !important;
        overflow: hidden;
    }
    
    /* Transformando Cinematic */
    .transformando-cinematico {
        min-height: auto;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    .transformando-gradient {
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 50%, #000 100%);
    }
    .transformando-span-1 {
        font-size: 2rem;
    }
    .transformando-span-2 {
        font-size: 4rem;
    }
    /* Reducir espacios entre secciones en móvil */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .seccion-proposito-collage {
        padding-top: 2rem !important;
        padding-bottom: 1rem !important;
    }
    .seccion-tarjetas-presencia h2 {
        font-size: 1.8rem !important;
    }
    .seccion-tarjetas-presencia h3 {
        font-size: 1.2rem !important;
    }
    .proposito-title-2 {
        font-size: 2.5rem !important;
    }
    .proposito-text {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    .proposito-quote-text {
        font-size: 0.95rem !important;
    }
    .transformando-span-1 {
        font-size: 1.2rem !important;
        letter-spacing: 4px !important;
    }
    .transformando-span-2 {
        font-size: 3.5rem !important;
    }
    .transformando-p-1 {
        font-size: 1.25rem !important;
    }
    .compromiso-h2 {
        font-size: 2.2rem !important;
    }
    .compromiso-quote {
        font-size: 1.3rem !important;
        line-height: 1.4 !important;
    }
    .seccion-contacto h2 {
        font-size: 1.8rem !important;
    }
    .contacto-tarjeta {
        padding: 25px !important;
        border-radius: 20px !important;
    }
    .collage-modern-wrapper {
        height: 280px !important;
        margin-top: 1rem !important;
    }
    .collage-card-1 { width: 130px !important; height: 170px !important; left: 5% !important; top: 0 !important; }
    .collage-card-2 { width: 150px !important; height: 130px !important; right: 5% !important; bottom: 10% !important; top: auto !important; }
    .collage-card-3 { display: none; }
    
    .transformando-content {
        text-align: center;
    }
    .transformando-bg-left {
        opacity: 0.4;
    }
}

@media (max-width: 767.98px) {
    /* Hero */
    .hero-title-main {
        font-size: 1.8rem;
    }
    
    /* Reset margins for mobile */
    .seccion-tarjetas-presencia {
        margin-top: 0;
        border-radius: 20px 20px 0 0;
    }
    
    /* Simplify masonry on very small screens */
    .masonry-col-30, .masonry-col-35 {
        flex-direction: column !important;
    }
    .cross-item {
        width: 100% !important;
        height: auto !important;
    }
    .masonry-img-140, .masonry-img-150, .masonry-img-180 {
        height: 200px; /* Uniform height on mobile */
    }
    .masonry-featured {
        transform: none;
    }
}
