/* ============================================================
   MONTAJES DE MADERA FGB – Estilos Elementor
   Plugin v1.0.0 | Paleta de madera oscura
   ============================================================ */

/* ─── RESET & VARS ─── */
.fgb-hero-section,
.fgb-about-section,
.fgb-services-section,
.fgb-why-section,
.fgb-contact-section,
.fgb-emergency-strip,
.fgb-footer-section {
    font-family: 'Barlow', sans-serif !important;
    font-weight: 300;
    color: #f5ede0;
}

/* ─── NAV ─── */
.fgb-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 3rem;
    background: linear-gradient(to bottom, rgba(46,27,14,0.97), transparent);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    flex-wrap: wrap;
    gap: 1rem;
}
.fgb-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #e8b060 !important;
    text-decoration: none;
    line-height: 1;
}
.fgb-logo span {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: #ddc9aa;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 4px;
}
.fgb-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0; padding: 0;
}
.fgb-nav ul a {
    color: #ddc9aa;
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    font-family: 'Barlow', sans-serif;
    position: relative;
    transition: color 0.3s;
}
.fgb-nav ul a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: #c8903a;
    transition: width 0.3s;
}
.fgb-nav ul a:hover { color: #e8b060; }
.fgb-nav ul a:hover::after { width: 100%; }
.fgb-nav-cta {
    background: #c8903a !important;
    color: #2e1b0e !important;
    padding: 0.5rem 1.4rem;
    font-weight: 600 !important;
}
.fgb-nav-cta:hover { background: #e8b060 !important; }
.fgb-nav-cta::after { display: none !important; }
.fgb-menu-btn {
    display: none;
    background: none; border: 1px solid #7a5238;
    color: #ddc9aa; font-size: 1.2rem;
    padding: 0.3rem 0.6rem; cursor: pointer;
}

/* ─── HERO ─── */
.fgb-hero-section .elementor-section-wrap,
.fgb-hero-section {
    min-height: 100vh;
}
.fgb-hero-deco {
    font-family: 'Playfair Display', serif;
    font-size: 14vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(200,144,58,0.1);
    text-align: center;
    line-height: 1;
    letter-spacing: -0.03em;
    pointer-events: none;
    user-select: none;
    padding: 2rem;
}

/* ─── STATS ─── */
.fgb-stat-manual {
    text-align: center;
    padding: 8px 0;
}
.fgb-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #e8b060;
    line-height: 1;
}
.fgb-stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ddc9aa;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    margin-top: 0.5rem;
}
/* Fix Elementor counter widget colors */
.elementor-counter-number-wrapper {
    color: #e8b060 !important;
}
.elementor-counter-title {
    color: #ddc9aa !important;
}

/* ─── ABOUT ─── */
.fgb-wood-card {
    width: 100%;
    aspect-ratio: 4/5;
    min-height: 350px;
    position: relative;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            170deg,
            transparent 0px, transparent 22px,
            rgba(200,144,58,0.05) 22px, rgba(200,144,58,0.05) 23px
        ),
        linear-gradient(150deg, #6b4428 0%, #3a1f0d 60%, #5a3820 100%);
}
.fgb-wood-card::after {
    content: 'FGB';
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 14rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(200,144,58,0.07);
    right: -1rem; bottom: -2rem;
    line-height: 1;
    pointer-events: none;
}
.fgb-badge {
    position: absolute;
    bottom: -2rem; right: -2rem;
    width: 110px; height: 110px;
    background: #c8903a;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.fgb-badge-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2e1b0e;
    line-height: 1;
}
.fgb-badge-text {
    font-size: 0.52rem;
    letter-spacing: 0.15em;
    color: #2e1b0e;
    font-family: 'Barlow', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    padding: 0 4px;
}

/* ─── SERVICES ─── */
.fgb-service-num {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(200, 144, 58, 0.77);
    line-height: 1;
    margin-bottom: 1rem;
    transition: -webkit-text-stroke-color 0.4s;
    user-select: none;
}
.elementor-column:hover .fgb-service-num {
    -webkit-text-stroke-color: rgba(200,144,58,0.5);
}
.fgb-service-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}
.fgb-service-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #f5ede0 !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.3;
}
.fgb-service-desc {
    font-size: 0.88rem;
    color: #7a5238;
    line-height: 1.7;
    font-family: 'Barlow', sans-serif;
}
/* Hover effect on service columns */
.elementor-column:hover .fgb-service-desc { color: #ddc9aa; }

/* ─── EMERGENCY STRIP ─── */
.fgb-emerg-phone {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: #2e1b0e;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: opacity 0.2s;
    line-height: 1.2;
}
.fgb-emerg-phone:hover { opacity: 0.7; }
.fgb-emergency-strip .elementor-heading-title { color: #2e1b0e !important; }

/* ─── WHY ─── */
.fgb-why-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.fgb-why-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid rgba(200,144,58,0.12);
    transition: border-color 0.3s, background 0.3s;
}
.fgb-why-item:hover {
    border-color: #c8903a;
    background: rgba(200,144,58,0.04);
}
.fgb-why-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.fgb-why-item h4 {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.05rem !important;
    color: #f5ede0 !important;
    margin-bottom: 0.4rem !important;
    font-weight: 700 !important;
}
.fgb-why-item p {
    font-size: 0.85rem;
    color: #7a5238;
    line-height: 1.6;
    font-family: 'Barlow', sans-serif;
    margin: 0;
}
.fgb-why-visual-text {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(200,144,58,0.15);
    text-align: center;
    line-height: 1.1;
    padding: 3rem;
    user-select: none;
}

/* ─── CONTACT ─── */
.fgb-info-list {
    display: flex;
    flex-direction: column;
}
.fgb-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(200,144,58,0.1);
}
.fgb-info-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
    color: #c8903a;
}
.fgb-info-item h4 {
    font-size: 0.68rem !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7a5238 !important;
    margin-bottom: 0.25rem !important;
    font-family: 'Barlow', sans-serif !important;
    font-weight: 600 !important;
}
.fgb-info-item p {
    color: #f5ede0;
    font-size: 0.98rem;
    font-family: 'Barlow', sans-serif;
    margin: 0;
}
.fgb-info-item a {
    color: #e8b060;
    text-decoration: none;
    transition: opacity 0.2s;
}
.fgb-info-item a:hover { opacity: 0.75; }

/* ─── CONTACT FORM ─── */
.fgb-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.fgb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.fgb-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.fgb-form-group label {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7a5238;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
}
.fgb-contact-form input,
.fgb-contact-form select,
.fgb-contact-form textarea {
    background: rgba(90,56,32,0.2);
    border: 1px solid rgba(200,144,58,0.15);
    color: #f5ede0;
    padding: 0.85rem 1.1rem;
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    transition: border-color 0.3s, background 0.3s;
    outline: none;
    width: 100%;
    border-radius: 0;
    -webkit-appearance: none;
}
.fgb-contact-form input:focus,
.fgb-contact-form select:focus,
.fgb-contact-form textarea:focus {
    border-color: #c8903a;
    background: rgba(90,56,32,0.35);
}
.fgb-contact-form select option { background: #2e1b0e; }
.fgb-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.fgb-btn-submit {
    background: #c8903a;
    color: #2e1b0e;
    padding: 1rem 2.5rem;
    border: none;
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
}
.fgb-btn-submit:hover {
    background: #e8b060;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,144,58,0.3);
}
.fgb-form-success {
    color: #e8b060;
    font-size: 0.88rem;
    font-family: 'Barlow', sans-serif;
    margin: 0;
}

/* ─── FOOTER ─── */
.fgb-footer-links {
    text-align: right;
    font-size: 0.75rem;
    font-family: 'Barlow', sans-serif;
    color: #7a5238;
    margin: 0;
}
.fgb-footer-links a {
    color: #7a5238;
    text-decoration: none;
    transition: color 0.3s;
}
.fgb-footer-links a:hover { color: #e8b060; }

/* ─── PHONE LINK ─── */
.fgb-phone-link {
    color: #e8b060;
    text-decoration: none;
    font-weight: 600;
}
.fgb-phone-link:hover { opacity: 0.8; }

/* ─── GLOBAL: section heading em tags ─── */
.elementor-heading-title em {
    color: #e8b060;
    font-style: italic;
}

/* ─── SCROLL REVEAL ─── */
.fgb-why-item,
.fgb-info-item,
.fgb-service-num {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fgb-revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ─── MOBILE ─── */
@media (max-width: 1024px) {
    .fgb-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .fgb-nav ul { display: none; flex-direction: column; gap: 0.8rem; width: 100%; background: #2e1b0e; padding: 1rem 0; }
    .fgb-nav ul.open { display: flex; }
    .fgb-menu-btn { display: block; }
    .fgb-wood-card { min-height: 250px; }
    .fgb-badge { width: 80px; height: 80px; bottom: -1rem; right: -1rem; }
    .fgb-badge-num { font-size: 1.2rem; }
    .fgb-emerg-phone { font-size: 1.4rem; }
    .fgb-why-visual-text { font-size: 4rem; }
    .fgb-hero-deco { font-size: 20vw; }
    .fgb-footer-links { text-align: center; }
}

/* ─── ELEMENTOR OVERRIDES ─── */
.elementor-section.fgb-about-section .elementor-container,
.elementor-section.fgb-why-section .elementor-container,
.elementor-section.fgb-contact-section .elementor-container {
    max-width: 1400px;
}
/* Remove Elementor default spacing inside our sections */
.fgb-contact-section .elementor-widget-text-editor p { margin-bottom: 0.6rem; }
.fgb-about-section .elementor-widget-text-editor p { margin-bottom: 1rem; }
.fgb-about-section .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
