/* ============================================
   Compromiso — H2O Colombia SAS
   Diseño visual · Fondos dramáticos · Impacto
   ============================================ */

/* ---------- 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;
}

/* ============================================
   CONTENIDO GENERAL
   ============================================ */
.page-content {
    padding: 80px 0 0;
    background: #ffffff;
}

/* ============================================
   INTRO — dos columnas: imagen circular + texto
   ============================================ */
.intro-split {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 100px;
}

.intro-image-wrap {
    position: relative;
    flex-shrink: 0;
}

.intro-image-wrap img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(0, 100, 180, 0.2);
    border: 8px solid #f0f8ff;
    outline: 3px solid rgba(0,168,232,0.2);
    outline-offset: 8px;
}

/* Burbuja decorativa sobre la imagen */
.intro-image-wrap::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1BB6C9, #0077b6);
    opacity: 0.5;
}

.intro-image-wrap::after {
    content: '';
    position: absolute;
    bottom: -10px; left: -10px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c0e8, #1f66a3);
    opacity: 0.35;
}

.intro-text .eyebrow {
    display: inline-block;
    color: #00a8e8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.intro-text h2 {
    color: #0d3b66;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}

.intro-text p {
    color: #3a6a88;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ============================================
   PILARES — tarjetas de color sólido / gradiente
   ============================================ */
.pilares-section {
    margin-bottom: 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0d3b66;
    margin-bottom: 0;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #1BB6C9, #0077b6);
}

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

.pilar-card {
    border-radius: 24px;
    padding: 48px 36px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pilar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.18);
}

.pilar-card--1 {
    background: linear-gradient(145deg, #0d3b66 0%, #1f4f80 100%);
    box-shadow: 0 12px 32px rgba(13, 59, 102, 0.3);
}

.pilar-card--2 {
    background: linear-gradient(145deg, #0077b6 0%, #005f8e 100%);
    box-shadow: 0 12px 32px rgba(0, 119, 182, 0.3);
}

.pilar-card--3 {
    background: linear-gradient(145deg, #1BB6C9 0%, #0099ad 100%);
    box-shadow: 0 12px 32px rgba(27, 182, 201, 0.3);
}

/* Forma decorativa de fondo */
.pilar-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.pilar-card::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -30px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.pilar-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease;
}

.pilar-card:hover .pilar-icon {
    transform: scale(1.14) rotate(-5deg);
    background: rgba(255,255,255,0.28);
}

.pilar-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: white;
}

.pilar-card p {
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    font-size: 0.97rem;
    margin: 0;
}

/* ============================================
   POLÍTICAS — cards con icono grande centrado
   ============================================ */
.politicas-section {
    background: linear-gradient(160deg, #f0f8ff 0%, #e8f5fb 50%, #f7fbfe 100%);
    border-radius: 28px;
    padding: 72px 56px;
    margin-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.politicas-section::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    border: 40px solid rgba(0,168,232,0.07);
    pointer-events: none;
}

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

.politica-card {
    background: white;
    border-radius: 20px;
    padding: 36px 24px;
    text-align: center;
    border: 1px solid rgba(0,168,232,0.15);
    box-shadow: 0 4px 20px rgba(0,100,180,0.07);
    transition: all 0.3s ease;
    position: relative;
}

.politica-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,100,180,0.14);
    border-color: rgba(27, 182, 201, 0.35);
}

.politica-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 2rem;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.politica-card:hover .politica-icon {
    transform: scale(1.16) rotate(-6deg);
}

.politica-icon--green  { background: linear-gradient(135deg, #d4f5e2, #a8e6c1); }
.politica-icon--blue   { background: linear-gradient(135deg, #dbeeff, #b3d8f5); }
.politica-icon--yellow { background: linear-gradient(135deg, #fff3d4, #ffe8a0); }
.politica-icon--purple { background: linear-gradient(135deg, #ede0ff, #d4b8ff); }

.politica-card h4 {
    color: #0d3b66;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.politica-card p {
    color: #3a6a88;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

/* ============================================
   CERTIFICACIONES — badges en grid
   ============================================ */
.certs-section {
    margin-bottom: 0;
    padding-bottom: 100px;
}

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

.cert-badge {
    background: white;
    border: 1px solid #deeef8;
    border-radius: 16px;
    padding: 28px 28px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    box-shadow: 0 4px 16px rgba(0,100,180,0.07);
    transition: all 0.3s ease;
}

.cert-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,100,180,0.13);
    border-color: rgba(0,168,232,0.4);
}

.cert-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00c0e8, #0077b6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,160,210,0.3);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

.cert-badge:hover .cert-badge-icon {
    transform: scale(1.15) rotate(-6deg);
    box-shadow: 0 10px 24px rgba(0,160,210,0.5);
}

.cert-badge-text strong {
    display: block;
    color: #0d3b66;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cert-badge-text span {
    color: #3a6a88;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ============================================
   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: #ffffff;
    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 ---------- */
@media (max-width: 1100px) {
    .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

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

    .intro-split { grid-template-columns: 1fr; gap: 40px; margin-bottom: 60px; }
    .intro-image-wrap { max-width: 320px; margin: 0 auto; }

    .pilares-grid { grid-template-columns: 1fr; }
    .pilares-section { margin-bottom: 60px; }

    .politicas-grid { grid-template-columns: repeat(2, 1fr); }
    .politicas-section { padding: 50px 30px; margin-bottom: 60px; }

    .certs-grid { grid-template-columns: 1fr; }
    .certs-section { padding-bottom: 60px; }

    /* Stats */
    .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; }

    .intro-text h2 { font-size: 1.7rem; }

    /* Pilares */
    .pilar-card { padding: 32px 22px; }
    .pilar-card h3 { font-size: 1.2rem; }
    .pilar-icon { width: 58px; height: 58px; }

    /* Políticas */
    .politicas-grid { grid-template-columns: 1fr; }
    .politicas-section { padding: 36px 16px; }
    .politica-card { padding: 26px 18px; }
    .politica-icon { width: 64px; height: 64px; }

    /* Certs */
    .cert-badge { padding: 20px; gap: 14px; }

    /* Stats */
    .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; }
    .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; }

    .intro-text h2 { font-size: 1.4rem; }
    .intro-text p { font-size: 0.95rem; }

    /* Pilares */
    .pilar-card { padding: 24px 16px; }
    .pilar-card h3 { font-size: 1.05rem; }
    .pilar-card p { font-size: 0.88rem; }
    .pilar-icon { width: 50px; height: 50px; border-radius: 14px; }

    /* Políticas */
    .politicas-section { padding: 26px 12px; }
    .politica-card { padding: 20px 14px; }
    .politica-icon { width: 56px; height: 56px; font-size: 1.6rem; }
    .politica-card h4 { font-size: 0.95rem; }
    .politica-card p { font-size: 0.85rem; }

    /* Certs */
    .cert-badge { padding: 16px; gap: 12px; }
    .cert-badge-text strong { font-size: 0.88rem; }
    .cert-badge-text span { font-size: 0.8rem; }

    /* Stats */
    .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; }
}
