/* ============================================================
   INSTITUTO FORJANDO PERÚ — CSS a medida (sitio institucional)
   Marca: #003c5a azul · #00b469 verde · Montserrat / Open Sans
   ============================================================ */

/* ---- Botón flotante de WhatsApp ---- */
.forjando-wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: forjando-wa-pop 0.4s ease both;
}
.forjando-wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
    color: #fff;
}
.forjando-wa-float svg { display: block; }

@keyframes forjando-wa-pop {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .forjando-wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
    .forjando-wa-float svg { width: 26px; height: 26px; }
}

/* Hero: green highlighted words with underline (home) */
.hero-underline {
    color: #00b469;
    display: inline-block;
    line-height: 1.1;
    padding-bottom: 6px;
    border-bottom: 3px solid rgba(0, 180, 105, 0.45);
}

/* ============ Header custom (mockup 2026-07-15) ============ */
.fp-header {
    position: relative;
    z-index: 100;
    background: #02222f;
    font-family: 'Montserrat', sans-serif;
}
.fp-header--overlay {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: transparent;
}
.fp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 18px 48px;
}
.fp-header__logo img { height: 52px; width: auto; display: block; }
.fp-header__nav { display: flex; align-items: center; gap: 34px; }
.fp-menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.fp-menu a {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}
.fp-menu a:hover,
.fp-menu .current-menu-item > a,
.fp-menu .current_page_item > a { color: #00b469; }
.fp-header__actions { display: flex; align-items: center; gap: 14px; }
.fp-search-toggle {
    background: none; border: 0; cursor: pointer;
    color: #fff; padding: 8px; line-height: 0; border-radius: 6px;
    transition: color .2s ease;
}
.fp-search-toggle:hover { color: #00b469; }
.fp-btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 15px; font-weight: 600; text-decoration: none;
    padding: 11px 22px; border-radius: 6px; line-height: 1;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.fp-btn--outline { color: #fff; border: 1px solid rgba(255,255,255,0.6); background: transparent; }
.fp-btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }
.fp-btn--solid { background: #00b469; color: #fff; border: 1px solid #00b469; }
.fp-btn--solid:hover { background: #009955; border-color: #009955; color: #fff; }
.fp-search-bar { background: #02222f; padding: 14px 48px; border-top: 1px solid rgba(255,255,255,0.12); }
.fp-header--overlay .fp-search-bar { background: rgba(2,34,47,0.95); }
.fp-search-bar form { display: flex; gap: 12px; max-width: 640px; }
.fp-search-bar input {
    flex: 1; padding: 11px 16px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.08);
    color: #fff; font-family: 'Open Sans', sans-serif; font-size: 15px;
}
.fp-search-bar input::placeholder { color: rgba(255,255,255,0.55); }
.fp-header__burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.fp-header__burger span { display: block; width: 24px; height: 2.5px; background: #fff; margin: 5px 0; border-radius: 2px; }

@media (max-width: 1024px) {
    .fp-header__inner { padding: 14px 20px; }
    .fp-header__burger { display: block; }
    .fp-header__nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: flex-start; gap: 18px;
        background: #02222f; padding: 22px 24px 26px;
        box-shadow: 0 14px 30px rgba(0,0,0,0.35);
    }
    .fp-header__nav.is-open { display: flex; }
    .fp-menu { flex-direction: column; align-items: flex-start; gap: 16px; }
    .fp-header__actions { flex-wrap: wrap; }
    .fp-search-bar { padding: 14px 20px; }
    .fp-header__logo img { height: 44px; }
}

/* Neutralize Hello Elementor's global button hover (pink) on header controls */
.fp-search-toggle,
.fp-search-toggle:hover,
.fp-search-toggle:focus,
.fp-search-toggle:active,
.fp-header__burger,
.fp-header__burger:hover,
.fp-header__burger:focus {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none;
}
.fp-search-toggle:hover { color: #00b469 !important; }

/* ============ Home body sections (design 2026-07-16) ============ */
.ifp-card { transition: transform .22s ease, box-shadow .22s ease; }
.ifp-card:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(0,42,64,.18) !important; }
.ifp-card:hover .elementor-button { background-color: #00b469 !important; border-color: #00b469 !important; color: #fff !important; }

.ifp-chip {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 20px;
    border-radius: 999px;
    background: #fff;
    color: #4a5b66;
    border: 1px solid #dbe3e8;
    cursor: pointer;
    transition: all .18s ease;
}
.ifp-chip:hover { background: #e6f7f0; color: #009a5a; }
.ifp-chip--on { background: #003c5a; color: #fff; border-color: #003c5a; }
.ifp-chip--on:hover { background: #003c5a; color: #fff; }

.fp-about-media { position: relative; }
.fp-about-media::before {
    content: ""; position: absolute; left: -22px; top: -22px;
    width: 180px; height: 180px; border-radius: 20px;
    background: #00b469; opacity: .12; z-index: 0;
}
.fp-about-media::after {
    content: ""; position: absolute; right: -22px; bottom: -22px;
    width: 140px; height: 140px; border: 2px solid rgba(0,60,90,.16);
    border-radius: 20px; z-index: 0;
}
.fp-about-media img {
    position: relative; z-index: 1; border-radius: 20px;
    box-shadow: 0 24px 50px rgba(0,42,64,.22);
}
.fp-about-badge {
    position: absolute; left: -24px; bottom: 44px; z-index: 2;
    display: flex; align-items: center; gap: 14px;
    background: #fff; padding: 18px 22px; border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,42,64,.16);
}
.fp-about-badge__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: #e6f7f0; color: #00b469; font-size: 20px;
}
.fp-about-badge__txt { display: flex; flex-direction: column; line-height: 1.2; }
.fp-about-badge__txt strong { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 20px; color: #003c5a; }
.fp-about-badge__txt em { font-style: normal; font-size: 13px; color: #5a6b76; }

@media (max-width: 767px) {
    .fp-about-media::before, .fp-about-media::after { display: none; }
    .fp-about-badge { left: 12px; bottom: 12px; padding: 12px 16px; }
}

/* Featured course card: gradient fallback (Elementor container gradient not emitted) */
.ifp-featured {
    background: linear-gradient(105deg, #003c5a 0%, #0a5a72 100%) !important;
}

/* About section: fixed media height + badge eye icon (WP strips empty <i>) */
.fp-about-media img { height: 480px; object-fit: cover; width: 100%; }

/* ============ Nosotros page (design 2026-07-16) ============ */
.fp-banner { position: relative; overflow: hidden; }
.fp-banner::before {
    content: ""; position: absolute; right: -100px; top: -120px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,180,105,.18), transparent 68%);
}
.fp-banner::after {
    content: ""; position: absolute; left: -120px; bottom: -160px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(23,162,196,.22), transparent 68%);
}
.fp-banner > * { position: relative; z-index: 1; }

/* mirrored accents (photo on the right) */
.fp-media-r { position: relative; }
.fp-media-r::before {
    content: ""; position: absolute; right: -22px; top: -22px;
    width: 180px; height: 180px; border-radius: 20px;
    background: #00b469; opacity: .12; z-index: 0;
}
.fp-media-r::after {
    content: ""; position: absolute; left: -22px; bottom: -22px;
    width: 140px; height: 140px; border: 2px solid rgba(0,60,90,.16);
    border-radius: 20px; z-index: 0;
}
.fp-media-r img {
    position: relative; z-index: 1; border-radius: 20px;
    height: 460px; object-fit: cover; width: 100%;
    box-shadow: 0 24px 50px rgba(0,42,64,.22);
}

/* mission/vision top line */
.fp-topline-verde { border-top-color: #00b469 !important; }
.fp-topline-teal { border-top-color: #0a5a72 !important; }

/* dirección: portrait accent + closing chip */
.fp-portrait { position: relative; }
.fp-portrait::before {
    content: ""; position: absolute; inset: -14px; border-radius: 24px;
    background: linear-gradient(135deg, #00b469, #0a5a72); opacity: .16;
}
.fp-portrait > * { position: relative; }
.fp-portrait img {
    border-radius: 20px; height: 340px; object-fit: cover; width: 100%;
    box-shadow: 0 24px 50px rgba(0,42,64,.2);
}
.fp-chipline {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #e6ecf0; border-radius: 12px;
    padding: 12px 18px;
}
.fp-chipline__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 9px;
    background: #e6f7f0; color: #00b469;
}
.fp-chipline__txt { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; color: #003c5a; }

@media (max-width: 767px) {
    .fp-media-r::before, .fp-media-r::after { display: none; }
    .fp-media-r img { height: 320px; }
}

/* Contact form styling (design 2026-07-16) */
.fp-form .elementor-field-group { margin-bottom: 6px; }
.fp-form .elementor-field-group > label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 14px; color: #003c5a;
    margin-bottom: 8px;
}
.fp-form .elementor-field-textual {
    padding: 14px 16px;
    border: 1px solid #dbe3e8;
    border-radius: 11px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px; color: #003c5a;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.fp-form .elementor-field-textual:focus {
    outline: none;
    border-color: #00b469;
    box-shadow: 0 0 0 3px rgba(0,180,105,.16);
}
.fp-form textarea.elementor-field-textual { min-height: 120px; }
.fp-form .elementor-button {
    width: 100%;
    padding: 16px;
    border-radius: 11px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 16px;
    background-color: #00b469;
    box-shadow: 0 12px 28px rgba(0,180,105,.32);
    transition: background-color .2s ease, box-shadow .2s ease;
}
.fp-form .elementor-button:hover {
    background-color: #009a5a;
    box-shadow: 0 12px 28px rgba(0,180,105,.42);
}
