/* ============================================
   Proyectos — H2O Colombia SAS
   Portafolio de proyectos ejecutados
   ============================================ */

/* ---------- Navbar scroll ---------- */
.custom-navbar.scrolled {
    background: rgba(13, 59, 102, 0.95);
}

/* ============================================
   HERO — centrado, texto directo sobre imagen
   ============================================ */
.page-hero {
    position: relative;
    height: 560px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
        rgba(5, 31, 53, 0.75) 0%,
        rgba(0, 100, 180, 0.55) 50%,
        rgba(27, 182, 201, 0.35) 100%);
    z-index: 1;
}

/* Ola decorativa en la parte inferior */
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 30px;
    background: #ffffff;
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}

.page-hero .hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 700px;
    padding: 0 24px;
}

.page-hero .hero-eyebrow {
    display: inline-block;
    background: rgba(27,182,201,0.3);
    border: 1px solid rgba(27,182,201,0.6);
    color: #7de8f5;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.page-hero .hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.page-hero .hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

/* ============================================
   FILTROS — tabs de categoría
   ============================================ */
.filtros-section {
    background: #ffffff;
    padding: 72px 0 48px;
}

.filtros {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filtro-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid #0077b6;
    background: #ffffff;
    color: #0077b6;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    text-transform: uppercase;
}

.filtro-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 119, 182, 0.18);
}

.filtro-btn.active {
    background: linear-gradient(135deg, #1BB6C9 0%, #0077b6 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.3);
}

/* ============================================
   PROYECTOS GRID — tarjetas del portafolio
   ============================================ */
.proyectos-section {
    background: #f5fafd;
    padding: 0 0 100px;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── Tarjeta ── */
.proyecto-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 100, 180, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proyecto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 100, 180, 0.16);
}

/* ── Imagen ── */
.proyecto-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.proyecto-card:hover .proyecto-img {
    transform: scale(1.05);
}

/* ── Badge sector sobre la imagen ── */
.proyecto-sector {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #1BB6C9 0%, #0077b6 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 100, 180, 0.3);
    z-index: 1;
}

/* ── Info ── */
.proyecto-info {
    padding: 24px;
}

.proyecto-nombre {
    color: #0d3b66;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.proyecto-lugar {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b8da6;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.proyecto-lugar::before {
    content: '📍';
    font-size: 0.8rem;
}

.proyecto-desc {
    color: #3a6a88;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 18px;
}

.proyecto-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0077b6;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.proyecto-link:hover {
    color: #1BB6C9;
    gap: 14px;
}

/* ============================================
   STATS BAND — fondo oscuro full-width
   ============================================ */
.stats-band {
    background: linear-gradient(135deg, #0d3b66 0%, #051f35 100%);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

/* Ola superior */
.stats-band::before {
    content: '';
    position: absolute;
    top: -2px; left: 0; right: 0;
    height: 80px;
    background: #f5fafd;
    clip-path: ellipse(55% 100% at 50% 0%);
}

/* Círculos decorativos de fondo */
.stats-band::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    border-radius: 50%;
    border: 60px solid rgba(27,182,201,0.05);
    pointer-events: none;
}

.stats-band-inner {
    position: relative;
    z-index: 1;
}

.stats-band-header {
    text-align: center;
    margin-bottom: 60px;
}

.stats-band-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.stats-band-header p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.stat-item {
    text-align: center;
    padding: 40px 24px;
    position: relative;
}

/* Separador vertical entre stats */
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 25%; bottom: 25%;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.stat-item h4 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1BB6C9;
    margin: 0 0 10px;
    line-height: 1;
    letter-spacing: -2px;
}

.stat-item p {
    color: rgba(255,255,255,0.75);
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, #0d3b66 0%, #051f35 100%);
    color: white;
    padding: 60px 0 30px;
    border-top: 4px solid #00a8e8;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #00a8e8;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

.footer-section a {
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: #00a8e8;
    padding-left: 4px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }

.footer-bottom {
    border-top: 1px solid rgba(0,168,232,0.2);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-social { display: flex; gap: 20px; }

.social-icon {
    width: 36px; height: 36px;
    background: rgba(0,168,232,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a8e8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #00a8e8;
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ── Tablet grande (≤992px) ── */
@media (max-width: 992px) {
    .page-hero { height: 420px; }
    .page-hero .hero-title { font-size: 2.8rem; }

    .proyectos-grid { grid-template-columns: repeat(2, 1fr); }

    .stats-band { padding: 60px 0 70px; }
    .stats-band::before { height: 60px; }
    .stats-band-header { margin-bottom: 40px; }
    .stats-band-header h2 { font-size: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { padding: 32px 20px; }
    .stat-item h4 { font-size: 3rem; }
    .stat-item p { font-size: 0.9rem; }
    .stat-item:not(:last-child)::after { display: none; }

    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

/* ── Móvil (≤768px) ── */
@media (max-width: 768px) {
    .page-hero { height: 360px; }
    .page-hero .hero-title { font-size: 2.2rem; }

    .proyectos-grid { grid-template-columns: 1fr; }

    .stats-band { padding: 46px 0 56px; }
    .stats-band::before { height: 46px; }
    .stats-band-header { margin-bottom: 28px; }
    .stats-band-header h2 { font-size: 1.7rem; }
    .stats-band-header p { font-size: 0.95rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { padding: 24px 14px; text-align: center; }
    .stat-item::after { display: none; }
    .stat-item h4 { font-size: 2.4rem; letter-spacing: 0; }
    .stat-item p { font-size: 0.88rem; line-height: 1.3; }

    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Móvil pequeño (≤480px) ── */
@media (max-width: 480px) {
    .page-hero { height: 300px; }
    .page-hero .hero-title { font-size: 1.8rem; }
    .page-hero .hero-subtitle { font-size: 0.95rem; }
    .page-hero .hero-eyebrow { font-size: 0.7rem; padding: 4px 14px; }

    .stats-band { padding: 36px 0 48px; }
    .stats-band::before { height: 38px; }
    .stats-band-header { margin-bottom: 22px; }
    .stats-band-header h2 { font-size: 1.4rem; }
    .stats-band-header p { font-size: 0.85rem; }
    .stat-item { padding: 18px 10px; }
    .stat-item h4 { font-size: 2rem; margin-bottom: 6px; }
    .stat-item p { font-size: 0.82rem; line-height: 1.4; }
}
