:root{
    --blue:#071c4d;
    --blue2:#0b3c91;
    --red:#ef3340;
    --white:#ffffff;
    --soft:#f3f6fb;
    --text:#0f172a;
    --muted:#64748b;
    --green:#15803d;
    --orange:#f97316;
    --shadow:0 24px 70px rgba(15,23,42,.14);
  }
  
  *{box-sizing:border-box}
  
  body{
    background:
      radial-gradient(circle at top right, rgba(239,51,64,.08), transparent 26%),
      linear-gradient(180deg,#f4f7fb 0%,#edf3fb 100%);
  }
  
  .rp-gallery{
    padding-top:78px;
  }
  
  /* HERO */
  .gallery-hero{
    position:relative;
    min-height:72vh;
    display:flex;
    align-items:center;
    overflow:hidden;
    background:#071c4d;
  }
  
  .gallery-hero__bg{
    position:absolute;
    inset:0;
    background:url('/img/noticias/feb.png') center/cover no-repeat;
    transform:scale(1.02);
  }
  
  .gallery-hero__shade{
    position:absolute;
    inset:0;
    background:
      linear-gradient(90deg, rgba(7,28,77,.96) 0%, rgba(7,28,77,.80) 48%, rgba(7,28,77,.28) 100%),
      radial-gradient(circle at right, rgba(239,51,64,.26), transparent 32%);
  }
  
  .gallery-hero__content{
    position:relative;
    z-index:2;
    width:min(1320px,calc(100% - 32px));
    margin:0 auto;
    color:#fff;
    padding:80px 0;
  }
  
  .gallery-eyebrow{
    display:inline-flex;
    background:var(--red);
    color:#fff;
    padding:9px 15px;
    border-radius:999px;
    font-weight:900;
    margin-bottom:22px;
  }
  
  .gallery-hero h1{
    margin:0;
    max-width:920px;
    font-size:clamp(3rem,7vw,6.4rem);
    line-height:.95;
    font-weight:900;
    letter-spacing:-.06em;
  }
  
  .gallery-hero p{
    max-width:720px;
    margin:26px 0 0;
    font-size:clamp(1rem,2vw,1.25rem);
    line-height:1.75;
    color:rgba(255,255,255,.88);
  }
  
  /* RESUMEN */
  .gallery-summary{
    width:min(1320px,calc(100% - 32px));
    margin:-58px auto 54px;
    position:relative;
    z-index:5;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
  }
  
  .gallery-summary article{
    background:#fff;
    border-radius:24px;
    padding:24px;
    box-shadow:var(--shadow);
  }
  
  .gallery-summary span{
    display:block;
    color:var(--red);
    font-size:2.2rem;
    font-weight:900;
    line-height:1;
  }
  
  .gallery-summary strong{
    display:block;
    margin:10px 0 6px;
    color:var(--blue);
    font-size:1.1rem;
  }
  
  .gallery-summary p{
    margin:0;
    color:var(--muted);
    line-height:1.6;
  }
  
  /* DIRECTORIO */
  .gallery-directory{
    width:min(1320px,calc(100% - 32px));
    margin:0 auto 54px;
    background:#fff;
    border-radius:34px;
    padding:34px;
    box-shadow:var(--shadow);
  }
  
  .gallery-head{
    margin-bottom:26px;
  }
  
  .gallery-label{
    display:inline-flex;
    color:var(--red);
    font-weight:900;
    margin-bottom:10px;
  }
  
  .gallery-head h2{
    margin:0 0 10px;
    color:var(--blue);
    font-size:clamp(2rem,4vw,4rem);
    line-height:1;
    letter-spacing:-.04em;
  }
  
  .gallery-head p{
    margin:0;
    color:var(--muted);
    line-height:1.75;
  }
  
  /* FILTROS */
  .gallery-filters{
    display:grid;
    grid-template-columns:1.3fr .9fr .45fr .45fr auto;
    gap:16px;
    margin-bottom:28px;
    align-items:end;
  }
  
  .gallery-filters div{
    display:flex;
    flex-direction:column;
    gap:8px;
  }
  
  .gallery-filters label{
    color:var(--blue);
    font-weight:900;
  }
  
  .gallery-filters input,
  .gallery-filters select{
    width:100%;
    min-height:54px;
    border:1px solid #dce8ff;
    border-radius:18px;
    padding:13px 16px;
    font-size:1rem;
    outline:none;
    background:#f8fbff;
  }
  
  .gallery-filters input:focus,
  .gallery-filters select:focus{
    border-color:var(--blue2);
    box-shadow:0 0 0 4px rgba(11,60,145,.10);
  }
  
  .filter-btn{
    min-height:54px;
    border:0;
    border-radius:999px;
    background:var(--red);
    color:#fff;
    font-weight:900;
    padding:0 24px;
    cursor:pointer;
    transition:.18s ease;
  }
  
  .filter-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(239,51,64,.22);
  }
  
  /* PROYECTOS */
  .project-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
  }
  
  .project-card{
    background:#fff;
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 18px 44px rgba(15,23,42,.10);
    border:1px solid #e4ebf6;
    transition:.18s ease;
  }
  
  .project-card:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow);
  }
  
  .project-image{
    height:250px;
    position:relative;
    display:block;
    background:linear-gradient(135deg,var(--blue),var(--blue2));
    overflow:hidden;
  }
  
  .project-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.28s ease;
  }
  
  .project-card:hover .project-image img{
    transform:scale(1.05);
  }
  
  .project-placeholder{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:rgba(255,255,255,.78);
    font-weight:900;
    font-size:1.3rem;
  }
  
  .project-badge{
    position:absolute;
    left:16px;
    top:16px;
    background:rgba(7,28,77,.88);
    color:#fff;
    padding:8px 13px;
    border-radius:999px;
    font-size:.82rem;
    font-weight:900;
    backdrop-filter:blur(8px);
  }
  
  .project-body{
    padding:24px;
  }
  
  .project-meta{
    color:var(--red);
    font-weight:900;
    font-size:.88rem;
  }
  
  .project-body h3{
    margin:10px 0;
    color:var(--blue);
    font-size:1.35rem;
    line-height:1.18;
    letter-spacing:-.02em;
  }
  
  .project-body p{
    margin:0 0 18px;
    color:var(--muted);
    line-height:1.6;
  }
  
  .project-body strong{
    color:var(--blue);
  }
  
  .project-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:11px 16px;
    border-radius:999px;
    background:var(--red);
    color:#fff;
    text-decoration:none;
    font-weight:900;
  }
  
  .empty-state{
    background:#f8fbff;
    border:1px dashed #cbdaf0;
    border-radius:24px;
    padding:28px;
    text-align:center;
    color:var(--muted);
    font-weight:900;
  }
  
  .loading-card{
    min-height:360px;
    border-radius:30px;
    background:
      linear-gradient(90deg,#f1f5f9 0%,#ffffff 50%,#f1f5f9 100%);
    background-size:200% 100%;
    animation:loading 1.2s infinite linear;
    border:1px solid #e4ebf6;
  }
  
  @keyframes loading{
    from{background-position:200% 0}
    to{background-position:-200% 0}
  }
  
  /* RESPONSIVE */
  @media(max-width:1100px){
    .gallery-summary,
    .project-grid{
      grid-template-columns:1fr;
    }
  
    .gallery-filters{
      grid-template-columns:1fr 1fr;
    }
  
    .filter-btn{
      grid-column:1 / -1;
    }
  }
  
  @media(max-width:900px){
    .rp-gallery{
      padding-top:68px;
    }
  
    .gallery-hero{
      min-height:640px;
    }
  
    .gallery-hero__shade{
      background:linear-gradient(180deg,rgba(7,28,77,.94),rgba(7,28,77,.72));
    }
  
    .gallery-summary{
      margin-top:-42px;
    }
  }
  
  @media(max-width:640px){
    .gallery-hero{
      min-height:560px;
    }
  
    .gallery-hero__content{
      padding:54px 0;
    }
  
    .gallery-directory{
      padding:22px;
      border-radius:24px;
    }
  
    .gallery-filters{
      grid-template-columns:1fr;
    }
  
    .gallery-summary article,
    .project-card{
      border-radius:22px;
    }
  
    .project-image{
      height:220px;
    }
  
    .project-body{
      padding:20px;
    }
  }