/* === FUENTES Y GENERAL === */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@700&family=Raleway:wght@400;600;700;800&display=swap');

body {
    font-family: 'Raleway', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden; /* Evita scroll horizontal en móviles */
}


h1, h2, h3, .font-heading {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
}

/* === HEADER (NAVBAR) === */
.navbar {
    background-color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: transform 0.3s;
}
.navbar-brand:hover img { transform: scale(1.05); }

.nav-link {
    font-weight: 600;
    color: #333 !important;
    margin: 0 10px;
    transition: 0.3s;
}
.nav-link:hover { color: #2e7d32 !important; }

/* Botones del menú */
.btn-nav-action {
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-nav-primary {
    background-color: #2e7d32;
    color: white !important;
    border: 2px solid #2e7d32;
}
.btn-nav-primary:hover {
    background-color: white;
    color: #2e7d32 !important;
}

.btn-nav-outline {
    background-color: transparent;
    border: 2px solid #2e7d32;
    color: #2e7d32 !important;
}
.btn-nav-outline:hover {
    background-color: #2e7d32;
    color: white !important;
}

/* === FOOTER (PIE DE PÁGINA) === */
/* Esto fuerza el ancho completo real */
.footer-full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: white;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-top: auto;
}

/* === COMPONENTES DEL BUSCADOR (INDEX) === */
.search-pill-container {
    background: white; border-radius: 50px; padding: 10px 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex; align-items: center; justify-content: space-between;
    max-width: 900px; margin: 0 auto 40px auto;
}

.search-input-group { flex: 1; border-right: 1px solid #eee; padding: 0 15px; }
.search-input-group:last-child { border-right: none; }

.search-label { font-size: 12px; font-weight: bold; color: #333; display: block; }
.search-control { border: none; outline: none; width: 100%; color: #666; background: transparent; font-size: 14px; }

.btn-search-circle {
    width: 45px; height: 45px; background-color: #2e7d32; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: none; transition: 0.3s; cursor: pointer;
}
.btn-search-circle:hover { background-color: #1b5e20; transform: scale(1.05); }

/* === TARJETAS DE SERVICIO === */
.service-card {
    background: white; border-radius: 16px; overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s;
    height: 100%; border: none; display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

.card-img-top { width: 100%; height: 200px; object-fit: cover; }

.btn-naranja {
    background: linear-gradient(to bottom, #fd7e14, #e67e22);
    color: white; border: none; box-shadow: 0 4px 10px rgba(230, 126, 34, 0.4);
    transition: 0.3s; text-decoration: none;
}
.btn-naranja:hover {
    background: #d35400; color: white;
    box-shadow: 0 6px 15px rgba(211, 84, 0, 0.5);
}

/* === RESPONSIVE (MÓVILES) === */
@media (max-width: 768px) {
    .search-pill-container {
        flex-direction: column;
        border-radius: 20px;
        gap: 10px;
        align-items: stretch;
    }
    .search-input-group {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
    }
    .btn-search-circle {
        width: 100%;
        border-radius: 10px;
        margin-top: 10px;
    }
    
    /* Ajuste footer móvil */
    .footer-full-width {
        padding: 15px;
        text-align: center;
    }
}


/* SERVICIOS */


    /* --- ESTILOS DEL BUSCADOR (Los mismos que ya tenÃ­as) --- */
    .search-bar-wrapper {
        background: white; border-radius: 40px; border: 1px solid #e0e0e0;
        box-shadow: 0 6px 16px rgba(0,0,0,0.08); display: flex; align-items: center;
        max-width: 900px; margin: 0 auto 40px auto; position: relative;
    }
    .search-section { flex: 1; padding: 14px 24px; position: relative; cursor: pointer; border-radius: 30px; transition: 0.2s; }
    .search-section:hover { background-color: #f7f7f7; }
    .divider { width: 1px; height: 30px; background-color: #e0e0e0; }
    
    .lbl-search { font-size: 12px; font-weight: 800; color: #333; display: block; margin-bottom: 2px; }
    .val-search { font-size: 14px; color: #717171; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .val-search.active { color: #222; font-weight: 600; }

    .search-btn-container { padding: 8px; }
    .btn-search-big {
        width: 48px; height: 48px; background-color: #65a35e; color: white;
        border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center;
        cursor: pointer; transition: 0.2s;
    }
    .btn-search-big:hover { background-color: #548c4d; transform: scale(1.05); }

    /* Dropdowns */
    .dropdown-panel {
        position: absolute; top: 80px; left: 0; background: white;
        border-radius: 32px; box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        padding: 20px; z-index: 1000; display: none; min-width: 300px;
    }
    .dropdown-date { left: 50%; transform: translateX(-50%); width: auto; padding: 10px; }
    .dropdown-right { right: 0; left: auto; }

    .option-list { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; }
    .option-item { padding: 12px 16px; cursor: pointer; border-radius: 8px; display: flex; gap: 10px; align-items: center; }
    .option-item:hover { background-color: #f7f7f7; }
    .icon-box { background: #f0f0f0; padding: 8px; border-radius: 8px; color: #333; }

    .flatpickr-calendar { box-shadow: none !important; margin: 0 !important; border: none !important; background: white !important; }
    
    /* Tarjeta Resultado */
    .service-card {
        background: white; border-radius: 16px; overflow: hidden;
        box-shadow: 0 6px 15px rgba(0,0,0,0.05); transition: transform 0.2s;
        height: 100%; border: none; display: flex; flex-direction: column; text-decoration: none; color: inherit;
    }
    .service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }




/* NEW */


      
        /* HEADER GRID (Centrado perfecto) */
        .header-wrapper {
            position: absolute; top: 0; left: 0; width: 100%; z-index: 1000;
            padding: 20px 0;
        }
        .header-grid {
            display: grid;
            grid-template-columns: 1fr auto 1fr; 
            align-items: center;
            max-width: 1200px; margin: 0 auto; padding: 0 20px;
        }
        .col-left { display: flex; justify-content: flex-end; padding-right: 15px; }
        .col-center { display: flex; justify-content: center; }
        .col-right { display: flex; justify-content: flex-start; padding-left: 15px; }

        /* ISLAS */
        .nav-pill-group {
            background-color: <?= $is_home ? 'rgba(255,255,255,0.1)' : '#60A646' ?>;
            backdrop-filter: <?= $is_home ? 'blur(10px)' : 'none' ?>;
            border: <?= $is_home ? '1px solid rgba(255,255,255,0.2)' : 'none' ?>;
            border-radius: 50px; padding: 5px; display: inline-flex; align-items: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .nav-custom-link {
            color: white !important; font-weight: 700; text-decoration: none; 
            padding: 10px 25px; border-radius: 40px; transition: all 0.3s ease; 
            font-size: 16px; display: inline-block; white-space: nowrap;
        }
        .nav-custom-link:hover { background-color: rgba(255,255,255,0.2); }
        .nav-custom-link.active { background-color: white; color: <?= $is_home ? '#2e7d32' : '#4a6b36' ?> !important; }

        .logo-island {
            background: white; padding: 8px 40px; border-radius: 40px;
            display: flex; align-items: center; justify-content: center; 
            box-shadow: 0 4px 15px rgba(0,0,0,0.05); height: 70px;
        }
        .logo-img { height: 45px; width: auto; }

        /* Perfil Usuario */
        .user-profile-pill { display: flex; align-items: center; gap: 10px; padding: 5px 20px 5px 5px; cursor: pointer; }
        .user-avatar {
            width: 35px; height: 35px; background-color: rgba(255,255,255,0.3); color: white;
            border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px;
        }

        .page-spacer { height: <?= $is_home ? '0' : '140px' ?>; }

        @media (max-width: 992px) { .header-pc { display: none !important; } .header-mobile { display: flex !important; } }
        @media (min-width: 993px) { .header-pc { display: block !important; } .header-mobile { display: none !important; } }




