/*
Theme Name:   Pahuichi Child
Theme URI:    http://localhost/pahuichi
Description:  Child theme for El Pahuichi - visual replica of elpahuichi.com.bo
Author:       El Pahuichi
Template:     astra
Version:      1.0.0
Text Domain:  pahuichi-child
*/

/* ─── RESET / BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ─── HEADER ────────────────────────────────────────────────────── */

/* Top utility bar */
#ast-above-header-bar,
.ast-above-header-bar {
    background-color: #003fa5 !important;
    min-height: 36px !important;
}
.ast-above-header-bar .nav-link,
.ast-above-header-bar a,
.ast-above-header-bar .ast-builder-grid-row a,
#ast-above-header-bar a {
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.ast-above-header-bar a:hover { color: #ffdd00 !important; }

/* Main header bar */
.main-header-bar,
.ast-primary-header-bar,
#masthead .main-header-bar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e8e8e8 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    padding: 8px 0 !important;
}

/* Logo */
.custom-logo, .site-logo img {
    max-height: 65px !important;
    width: auto !important;
}

/* Main nav links */
.main-header-bar .nav-link,
.main-header-bar a.nav-link,
#site-navigation a,
.ast-primary-header-bar .main-header-menu a {
    color: #333333 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 8px 14px !important;
}
.main-header-bar a.nav-link:hover,
#site-navigation a:hover,
.current-menu-item > a {
    color: #003fa5 !important;
}

/* Remove header padding on full-width pages */
.ast-page-builder-template .site-content,
.ast-page-builder-template .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}
.ast-page-builder-template .entry-header { display: none !important; }
.ast-separate-container .ast-article-single {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* ─── HERO SLIDER ───────────────────────────────────────────────── */
.ph-slider-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    line-height: 0;
}
.ph-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(.77,0,.18,1);
    will-change: transform;
}
.ph-slide {
    min-width: 100%;
    position: relative;
}
.ph-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
/* Dots */
.ph-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.ph-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.2s;
}
.ph-dot.active { background: #ffffff; }

/* Prev / Next arrows */
.ph-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.35);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.ph-arrow:hover { background: rgba(0,0,0,0.65); }
.ph-arrow-prev { left: 16px; }
.ph-arrow-next { right: 16px; }

/* ─── POPUP MODAL ───────────────────────────────────────────────── */
#ph-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
#ph-popup-overlay.active { display: flex; }
#ph-popup-box {
    position: relative;
    max-width: 420px;
    width: 90%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: popIn .35s ease;
}
@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
#ph-popup-box img { width: 100%; display: block; }
#ph-popup-close {
    position: absolute;
    top: 8px; right: 8px;
    background: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
#ph-popup-close:hover { background: #f0f0f0; }

/* ─── PROMO SECTION ─────────────────────────────────────────────── */
.ph-promo-section {
    padding: 60px 20px;
    background: #fff;
}
.ph-promo-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}
.ph-promo-text {
    flex: 1 1 360px;
}
.ph-promo-text h2 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    color: #7c1a8a;
    margin: 0 0 24px;
}
.ph-promo-text h2 span { color: #003fa5; }
.ph-promo-cta {
    display: inline-block;
    background: #003fa5;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.2s;
}
.ph-promo-cta:hover { background: #002d80; }
.ph-promo-map {
    flex: 1 1 400px;
    text-align: center;
}
.ph-promo-map img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ─── TESTIMONIALS ──────────────────────────────────────────────── */
.ph-testimonials {
    padding: 60px 20px;
    background: #f5f7fa;
}
.ph-testimonials h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 40px;
    color: #1a1a1a;
}
.ph-testi-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.ph-testi-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.ph-testi-card .ph-testi-video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.ph-testi-card .ph-testi-video img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.7;
}
.ph-play-icon {
    position: absolute;
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: #003fa5;
}
.ph-testi-card .ph-testi-body {
    padding: 16px;
}
.ph-testi-card .ph-testi-body strong {
    display: block;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.ph-testi-card .ph-testi-body p {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}

/* ─── CIUDAD DEL NORTE BANNER ───────────────────────────────────── */
.ph-ciudad-banner {
    display: block;
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    line-height: 0;
}
.ph-ciudad-banner img {
    max-width: 560px;
    width: 100%;
    height: auto;
    display: inline-block;
}

/* ─── FOOTER ────────────────────────────────────────────────────── */
.site-footer, #colophon, .ast-small-footer {
    background-color: #1a1a1a !important;
    color: #aaaaaa !important;
    font-size: 13px !important;
    padding: 16px 0 !important;
    text-align: center !important;
}
.site-footer a, #colophon a, .ast-small-footer a {
    color: #dddddd !important;
}
.site-footer a:hover { color: #ffffff !important; }

/* ─── WHATSAPP FLOAT ─────────────────────────────────────────────── */
.ph-wa-float {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 9999;
    width: 56px; height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform 0.2s;
    text-decoration: none;
}
.ph-wa-float:hover { transform: scale(1.1); }
.ph-wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ─── NOSOTROS PAGE ──────────────────────────────────────────────── */
.ph-page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 280px;
    display: flex; align-items: center; justify-content: center;
}
.ph-page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
}
.ph-page-hero-content {
    position: relative; z-index: 1;
    text-align: center; color: #fff; padding: 40px 20px;
}
.ph-page-hero-content h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900; margin: 0;
    text-transform: uppercase;
}
.ph-section { padding: 60px 20px; }
.ph-section-inner { max-width: 1100px; margin: 0 auto; }
.ph-section-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 30px;
}
.ph-section-title.center { text-align: center; }
.ph-nosotros-body p { font-size: 17px; line-height: 1.7; color: #444; margin-bottom: 18px; }

.ph-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.ph-benefit-card {
    background: #f5f7fa;
    border-left: 4px solid #003fa5;
    border-radius: 6px;
    padding: 28px 24px;
}
.ph-benefit-card h3 {
    font-size: 18px; font-weight: 800; color: #003fa5; margin: 0 0 10px;
}
.ph-benefit-card p { font-size: 15px; color: #555; margin: 0; line-height: 1.6; }

/* ─── PROYECTOS PAGE ─────────────────────────────────────────────── */
.ph-features-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}
.ph-feature-box {
    background: #fff;
    border: 1px solid #e0e8f0;
    border-radius: 8px;
    padding: 28px 22px;
    text-align: center;
}
.ph-feature-box .ph-feature-icon { font-size: 40px; margin-bottom: 12px; }
.ph-feature-box h3 { font-size: 14px; font-weight: 800; text-transform: uppercase; color: #003fa5; margin: 0 0 10px; }
.ph-feature-box p { font-size: 14px; color: #555; margin: 0; line-height: 1.5; }

.ph-project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}
.ph-project-card.reverse { direction: rtl; }
.ph-project-card.reverse > * { direction: ltr; }
.ph-project-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-project-info {
    padding: 36px 32px;
    background: #fff;
    display: flex; flex-direction: column; justify-content: center;
}
.ph-project-info h2 { font-size: 28px; font-weight: 900; color: #003fa5; margin: 0 0 16px; }
.ph-project-info p { font-size: 15px; color: #444; line-height: 1.7; margin: 0 0 12px; }
.ph-project-info ul { padding-left: 20px; margin: 0 0 20px; }
.ph-project-info ul li { font-size: 14px; color: #555; margin-bottom: 6px; }
.ph-btn {
    display: inline-block;
    background: #003fa5;
    color: #fff !important;
    padding: 12px 26px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.2s;
}
.ph-btn:hover { background: #002d80; }
.ph-btn-wa { background: #25d366; }
.ph-btn-wa:hover { background: #1aa34a; }

@media (max-width: 680px) {
    .ph-project-card { grid-template-columns: 1fr; }
    .ph-promo-inner { flex-direction: column; }
}

/* ─── CONTACTO PAGE ─────────────────────────────────────────────── */
.ph-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .ph-contact-grid { grid-template-columns: 1fr; }
}
.ph-form input, .ph-form textarea, .ph-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d8e8;
    border-radius: 4px;
    font-size: 15px;
    margin-bottom: 14px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
}
.ph-form input:focus, .ph-form textarea:focus {
    outline: none;
    border-color: #003fa5;
}
.ph-form textarea { height: 120px; resize: vertical; }
.ph-form button[type=submit] {
    background: #003fa5;
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    width: 100%;
}
.ph-form button[type=submit]:hover { background: #002d80; }

.ph-office-card {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 22px 20px;
    margin-bottom: 16px;
}
.ph-office-card h3 {
    font-size: 15px; font-weight: 800;
    color: #003fa5; text-transform: uppercase;
    margin: 0 0 8px; letter-spacing: 0.5px;
}
.ph-office-card p { font-size: 14px; color: #444; margin: 0 0 4px; line-height: 1.5; }
.ph-office-card a { color: #003fa5; text-decoration: none; font-size: 13px; }
.ph-office-card a:hover { text-decoration: underline; }

.ph-phone-table { width: 100%; border-collapse: collapse; }
.ph-phone-table tr:nth-child(even) { background: #f5f7fa; }
.ph-phone-table td { padding: 10px 14px; font-size: 14px; color: #444; border-bottom: 1px solid #e8e8e8; }
.ph-phone-table td a { color: #003fa5; text-decoration: none; font-weight: 600; }
.ph-phone-table td a:hover { text-decoration: underline; }

/* ─── CAMPAÑA PAGE ───────────────────────────────────────────────── */
.ph-campana-logo { text-align: center; margin-bottom: 30px; }
.ph-campana-logo img { max-width: 320px; width: 100%; }
.ph-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.ph-docs-grid img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    cursor: pointer;
}
.ph-docs-grid img:hover { transform: scale(1.02); }

/* ── Contact Form 7 ─────────────────────────────────────────────── */
.ph-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-tel,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-textarea {
    width:100%; box-sizing:border-box;
    border:1px solid #d0d5dd; border-radius:4px;
    padding:12px 16px; font-size:15px; color:#444;
    background:#fff; outline:none;
}
.wpcf7-form .wpcf7-textarea { min-height:180px; resize:vertical; width:100%; display:block; }
.wpcf7-form .wpcf7-spinner { display:none; }
.ph-form-submit { text-align:right; margin-top:16px; }
.wpcf7-form .wpcf7-submit {
    background:#003fa5; color:#fff; border:none; border-radius:4px;
    padding:14px 40px; font-size:14px; font-weight:900;
    text-transform:uppercase; letter-spacing:2px; cursor:pointer;
}
.wpcf7-form .wpcf7-submit:hover { background:#002d7a; }
