@font-face {
    font-family: "Bauhaus";
    src: url('../css/fonts/Bauhaus.woff') , url('../css/fonts/Bauhaus.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root{
      --bg: #f7f3ee;
      --surface: rgba(255,255,255,0.7);
      --surface-strong: rgba(255,255,255,0.92);
      --text: #1d1a17;
      --muted: #6f665d;
      --line: rgba(29,26,23,0.12);
      --accent: #b45c3b;
      --accent-2: #264653;
      --shadow: 0 20px 60px rgba(38, 70, 83, 0.12);
      --radius: 24px;
      --radius-sm: 18px;
      --max: 1200px;
    }

    *{
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html{
      scroll-behavior: smooth;
    }

    body{
      min-height: 100vh;
      font-family: Bauhaus;
      /*font-family: "Space Grotesk", sans-serif;*/
      color: var(--text);
      background:
        radial-gradient(circle at 10% 20%, rgba(180, 92, 59, 0.12), transparent 20%),
        radial-gradient(circle at 90% 10%, rgba(38, 70, 83, 0.10), transparent 24%),
        linear-gradient(180deg, #fbf8f4 0%, var(--bg) 100%);
      overflow-x: hidden;
    }

    .page-shell{
      width: min(var(--max), calc(100% - 32px));
      margin: 0 auto;
      padding: 32px 0 64px;
    }

    .hero{
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 28px;
      align-items: end;
      padding: 24px 0 36px;
    }

    .eyebrow{
      display: inline-block;
      font-size: 0.82rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 14px;
    }

    h1{
      /*font-family: "Syne", sans-serif;*/
      font-size: clamp(2.4rem, 6vw, 5.6rem);
      line-height: 0.92;
      letter-spacing: -0.04em;
      max-width: 10ch;
    }

    .hero-copy p{
      margin-top: 18px;
      max-width: 55ch;
      color: var(--muted);
      font-size: 1rem;
      line-height: 1.7;
    }

    .hero-panel{
      min-height: 240px;
      border-radius: var(--radius);
      background:
        linear-gradient(135deg, rgba(255,255,255,0.65), rgba(255,255,255,0.35)),
        linear-gradient(135deg, #d9b08c, #8ab0ab);
      border: 1px solid rgba(255,255,255,0.55);
      box-shadow: var(--shadow);
      position: relative;
      overflow: visible;
      backdrop-filter: blur(14px);
      animation: revealUp 0.8s ease both;
      animation-delay: 0.15s;
    }
    .hero-panel img{
      width: 32px;
      height: 32.px;
    }

    .hero-panel::before,
    .hero-panel::after{
      content: "";
      position: absolute;
      border-radius: 50%;
      filter: blur(4px);
    }

    .hero-panel::before{
      width: 180px;
      height: 180px;
      right: -40px;
      top: -30px;
      background: rgba(255,255,255,0.38);
    }

    .hero-panel::after{
      width: 220px;
      height: 220px;
      left: -70px;
      bottom: -80px;
      background: rgba(38,70,83,0.18);
    }

    .hero-ornament{
      position: absolute;
      inset: 18px;
      border: 1px solid rgba(255,255,255,0.4);
      border-radius: calc(var(--radius) - 8px);
      display: grid;
      place-items: center;
    }

    .hero-ornament svg{
      width: min(80%, 320px);
      height: auto;
      opacity: 0.92;
    }

    .catalogo-wrap{
      margin-top: 8px;
      background: var(--surface);
      border: 1px solid rgba(255,255,255,0.65);
      border-radius: 32px;
      padding: 22px;
      backdrop-filter: blur(16px);
      box-shadow: var(--shadow);
    }

    .catalogo-head{
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 16px;
      padding: 10px 6px 24px;
      border-bottom: 1px solid var(--line);
    }

    .catalogo-head h2{
      /*font-family: "Syne", sans-serif;*/
      font-size: clamp(1.5rem, 3vw, 2.5rem);
      line-height: 1;
      letter-spacing: -0.03em;
    }

    .catalogo-head p{
      color: var(--muted);
      max-width: 40ch;
      line-height: 1.6;
    }

    .catalogo{
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 18px;
      padding-top: 24px;
    }

    .articulo{
      grid-column: span 4;
      display: grid;
      grid-template-rows: 220px auto;
      text-decoration: none;
      color: inherit;
      border-radius: var(--radius-sm);
      overflow: overlay;
      background: var(--surface-strong);
      border: 1px solid rgba(29,26,23,0.08);
      box-shadow: 0 10px 30px rgba(29, 26, 23, 0.06);
      position: relative;
      isolation: isolate;
      transform: translateY(18px);
      opacity: 0;
      animation: revealUp 0.8s ease forwards;
    }

    .articulo:nth-child(1){ animation-delay: 0.10s; }
    .articulo:nth-child(2){ animation-delay: 0.20s; }
    .articulo:nth-child(3){ animation-delay: 0.30s; }
    .articulo:nth-child(4){ animation-delay: 0.40s; }
    .articulo:nth-child(5){ animation-delay: 0.50s; }
    .articulo:nth-child(6){ animation-delay: 0.60s; }

    .articulo:hover{
      transform: translateY(-8px);
      box-shadow: 0 24px 50px rgba(29, 26, 23, 0.12);
      transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
      border-color: rgba(180,92,59,0.25);
    }

    .articulo:active{
      transform: translateY(-2px) scale(0.99);
    }

    .articulo-media{
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg, #d6c2b2, #f0e2d3);
    }

    .articulo:hover .articulo-media svg{
      transform: scale(1.06) rotate(-1deg);
      transition: transform 0.6s ease;
    }

    .articulo-media svg{
      width: 100%;
      height: 100%;
      display: block;
      transition: transform 0.6s ease;
    }

    .articulo-body{
      padding: 18px 18px 20px;
      display: grid;
      gap: 10px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.96));
    }

    .tag{
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--accent);
      font-weight: 700;
    }

    .articulo-body h3{
      /*font-family: "Syne", sans-serif;*/
      font-size: 1.25rem;
      line-height: 1.05;
      letter-spacing: -0.03em;
    }
     .articulo-body h4{
      /*font-family: "Syne", sans-serif;*/
      font-size: 0.96rem;
      line-height: 1.05;
      letter-spacing: -0.03em;
      color: rgba(233, 16, 16, 0.8)

    }

    .articulo-body p{
      color: var(--muted);
      line-height: 1.6;
      font-size: 0.96rem;
    }

    .articulo-meta{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 6px;
      padding-top: 12px;
      border-top: 1px solid var(--line);
      font-size: 0.92rem;
    }
    .fecha{
      font-weight: 700;
      color: var(--accent-2);
    }

    .ver-mas{
      color: var(--accent);
      font-weight: 700;
      position: relative;
    }

    .ver-mas::after{
      content: "→";
      margin-left: 6px;
      transition: transform 0.25s ease;
      display: inline-block;
    }

    .articulo:hover .ver-mas::after{
      transform: translateX(4px);
    }

    .reveal-on-scroll{
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-on-scroll.visible{
      opacity: 1;
      transform: translateY(0);
    }

    @keyframes revealUp{
      from{
        opacity: 0;
        transform: translateY(24px);
      }
      to{
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 980px){
      .hero{
        grid-template-columns: 1fr;
      }

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

      .articulo{
        grid-column: span 1;
      }
    }

    @media (max-width: 640px){
      .page-shell{
        width: min(100% - 20px, var(--max));
        padding-top: 22px;
      }

      .catalogo-head{
        flex-direction: column;
        align-items: flex-start;
      }

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

      .catalogo-wrap{
        padding: 16px;
        border-radius: 24px;
      }

      .articulo{
        grid-template-rows: 200px auto;
      }
    }