﻿/*
Theme Name: Astra Child
Theme URI: https://soyfca.com/
Description: Child theme de Astra para personalizaciones de portada FCA.
Author: FCA
Template: astra
Version: 1.0.1
Text Domain: astra-child
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700;800&display=swap');

/* Global Aggressive Reset for Header Alignment */
html,
body,
html body.admin-bar,
html body.site-header-offset-enabled {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#page,
.site,
#masthead,
.site-header,
.ast-main-header-wrap,
.ast-primary-header-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
}

/* Custom Sticky Header - Global */
.ast-primary-header-bar {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    /* Solid white background */
    transition: all 0.3s ease;
}

/* Force hide WordPress admin bar elements */
#wpadminbar {
    display: none !important;
    height: 0 !important;
}

.fca-front-page,
.fca-front-page * {
    box-sizing: border-box;
}

.fca-front-page {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Header polish for all pages except landing/home */
:root {
    --fca-cream: #f6f1e7;
}

#page {
    margin-top: 0 !important;
}

body:not(.home) {
    background: var(--fca-cream);
}

body:not(.home) #page {
    background: var(--fca-cream);
}

body:not(.home) #masthead,
body:not(.home) #masthead .ast-main-header-wrap,
body:not(.home) #masthead .ast-primary-header-bar,
body:not(.home) #masthead .site-primary-header-wrap {
    background: var(--fca-cream) !important;
}

body:not(.home) #masthead {
    position: sticky;
    top: 0;
    z-index: 1001;
    border-bottom: 1px solid #e7decc;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

body:not(.home) .ast-primary-header-bar {
    min-height: 86px !important;
}

body:not(.home) .main-header-menu>.menu-item>.menu-link {
    color: #2f4a3f !important;
    transition: color 0.25s ease, text-shadow 0.25s ease, opacity 0.25s ease;
}

body:not(.home) .main-header-menu>.menu-item>.menu-link:hover,
body:not(.home) .main-header-menu>.menu-item>.menu-link:focus,
body:not(.home) .main-header-menu>.menu-item.current-menu-item>.menu-link {
    color: #8b6b2f !important;
    text-shadow: none;
}

body:not(.home) .main-header-menu .sub-menu {
    background: var(--fca-cream) !important;
    border: 1px solid #e7decc;
}

body:not(.home) .ast-mobile-menu-trigger-minimal .ast-mobile-svg,
body:not(.home) .ast-mobile-menu-trigger-minimal {
    color: #2f4a3f !important;
    fill: #2f4a3f !important;
}

body:not(.home) .ast-mobile-popup-drawer .ast-mobile-popup-inner,
body:not(.home) .ast-mobile-header-wrap .ast-mobile-header-content,
body:not(.home) .ast-mobile-popup-content {
    background: var(--fca-cream) !important;
}

body:not(.home) .ast-mobile-popup-content .main-header-menu .menu-item>.menu-link,
body:not(.home) .ast-mobile-header-content .main-header-menu .menu-item>.menu-link {
    color: #2f4a3f !important;
    transition: color 0.25s ease;
}

body:not(.home) .ast-mobile-popup-content .main-header-menu .menu-item>.menu-link:hover,
body:not(.home) .ast-mobile-popup-content .main-header-menu .menu-item>.menu-link:focus,
body:not(.home) .ast-mobile-header-content .main-header-menu .menu-item>.menu-link:hover,
body:not(.home) .ast-mobile-header-content .main-header-menu .menu-item>.menu-link:focus {
    color: #8b6b2f !important;
}

/* Consolidated page-template layout: match Conocenos spacing behavior */
body[class*="page-template-template-"] .site-content>.ast-container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    display: block;
}

body[class*="page-template-template-"] #primary {
    width: 100%;
    margin: 0;
    padding: 0;
}

body[class*="page-template-template-"] #secondary {
    display: none;
}

/* Forzar contenedores de contenido solo en la portada FCA */
.fca-front-page .entry-content,
.fca-front-page .post-content,
.fca-front-page .page-content,
.fca-front-page .content-area,
.fca-front-page .site-content,
.fca-front-page .elementor-section,
.fca-front-page .elementor-container,
.fca-front-page .elementor-widget-wrap,
.fca-front-page .elementor-widget-container,
.fca-front-page .wp-block-group,
.fca-front-page .wp-block-cover,
.fca-front-page article,
.fca-front-page .container,
.fca-front-page .wrapper,
.fca-front-page main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Hero */
.fca-hero-section {
    background-image: linear-gradient(90deg, rgba(0, 59, 47, 0.75) 0%, rgba(0, 59, 47, 0.55) 45%, rgba(0, 59, 47, 0.15) 100%), url('https://soyfca.com/wp-content/uploads/2025/11/home.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: min(100vh, 980px);

    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: clamp(56px, 8vh, 96px) 0 !important;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;

    position: relative;
    left: 0;
    right: 0;
    overflow: visible;
}

.fca-hero-content {
    max-width: 850px;
    z-index: 2;
    padding: 0 5%;
    margin-bottom: clamp(20px, 3vh, 40px);
    text-wrap: balance;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.fca-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #D4AF37;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
}

.fca-secondary-title {
    font-size: 2rem;
    font-weight: 500;
    color: #6df7b1;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
}

.fca-secondary-title::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 3px;
    background-color: #6df7b1;
    margin-right: 15px;
}

.fca-description {
    font-size: 1.15rem;
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #f0f0f0;
    max-width: 720px;
}

.fca-button-wrapper {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
}

.fca-btn {
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.btn-gold {
    background-color: #D4AF37;
    color: #003B2F;
    border: 2px solid #D4AF37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-gold:hover {
    background-color: #F8E71C;
    border-color: #F8E71C;
    color: #002a22;
    transform: translateY(-3px);
}

.fca-btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #003B2F;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .fca-hero-section {
        align-items: center;
        text-align: center;
        background-image: linear-gradient(rgba(0, 59, 47, 0.80), rgba(0, 59, 47, 0.70)), url('https://soyfca.com/wp-content/uploads/2025/11/home.png');
        background-attachment: scroll;
        min-height: auto;
    }

    .fca-hero-content {
        padding: 0 20px;
    }

    .fca-main-title {
        font-size: 2.2rem;
    }

    .fca-secondary-title {
        font-size: 1.2rem;
        justify-content: center;
        flex-direction: column;
    }

    .fca-secondary-title::before {
        display: none;
    }

    .fca-description {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .fca-button-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .fca-btn {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .fca-hero-section {
        background-attachment: fixed;
    }
}

@media (max-width: 921px) {

    body:not(.home) #masthead,
    body:not(.home) #masthead .ast-main-header-wrap,
    body:not(.home) #masthead .ast-primary-header-bar,
    body:not(.home) #masthead .site-primary-header-wrap {
        background: var(--fca-cream) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fca-btn {
        transition: none;
    }

    .btn-gold:hover,
    .btn-outline:hover {
        transform: none;
    }
}

/* Footer Refresh */
.site-footer {
    background: #0f2f26;
    color: #e7efe9;
    border-top: 3px solid #d4af37;
}

.site-footer .site-above-footer-wrap,
.site-footer .site-primary-footer-wrap,
.site-footer .site-below-footer-wrap {
    background: transparent;
}

/* Remove unused footer row (logos/empty area) */
.site-footer .site-above-footer-wrap {
    display: none !important;
}

.site-footer .ast-builder-footer-grid-columns {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 28px;
    padding-right: 28px;
}

.site-footer .ast-builder-grid-row-container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

.site-footer .ast-builder-grid-row {
    justify-content: center;
}

.site-footer .site-primary-footer-wrap .ast-builder-grid-row,
.site-footer .site-below-footer-wrap .ast-builder-grid-row {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center;
}

/* Remove empty side columns in primary footer */
.site-footer .site-footer-primary-section-1,
.site-footer .site-footer-primary-section-3 {
    display: none !important;
}

.site-footer .site-footer-primary-section-2 {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.site-footer .footer-widget-area-inner {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 6px 0;
    box-shadow: none;
}

.site-footer .footer-widget-area-inner,
.site-footer .site-footer-section,
.site-footer .textwidget,
.site-footer .widget {
    text-align: center;
}

.site-footer .textwidget h5,
.site-footer .textwidget p {
    margin-left: auto;
    margin-right: auto;
}

.site-footer .ast-builder-layout-element.ast-flex.site-footer-focus-item {
    justify-content: center;
}

.site-footer .site-footer-below-section-1 {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.site-footer .widget-title {
    color: #f1d88a;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    font-size: 1rem;
}

.site-footer p,
.site-footer a,
.site-footer h5,
.site-footer span {
    color: #d9e8dd;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #f6e4aa;
}

.site-footer .ast-builder-social-element {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: transparent !important;
    transition: all 0.25s ease;
}

.site-footer .ast-builder-social-element:hover {
    border-color: #f1d88a;
    background: rgba(241, 216, 138, 0.14) !important;
}

.site-footer .ast-footer-copyright {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 10px;
    margin-top: 6px;
}

.site-footer .ast-footer-copyright p {
    margin: 0;
    text-align: center;
    font-size: 0.85rem;
    color: #b8c9bd;
}

.site-footer .site-primary-footer-wrap {
    padding-top: 10px;
    padding-bottom: 6px;
}

.site-footer .site-below-footer-wrap {
    padding-top: 4px;
    padding-bottom: 8px;
}

/* Hide all footer logos/images for minimal layout */
.site-footer img,
.site-footer .widget_media_image,
.site-footer .wp-block-image {
    display: none !important;
}

@media (max-width: 921px) {
    .site-footer .ast-builder-footer-grid-columns {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Accreditations Section on Front Page */
.fca-accreditations-container {
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}

.fca-accreditations-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #003B2F;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.fca-accreditations-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.fca-logo-item img {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.fca-logo-item:hover img {
    transform: scale(1.15);
    filter: grayscale(0%);
    opacity: 1;
}