/* ═══════════════════════════════════════════
   TurisOnRoad — Hero & Bento Grid
   Carga este fichero en head.php:
   <link rel="stylesheet" href="css/hero.css">
═══════════════════════════════════════════ */

/* ─── Variables ─── */
    :root {
      --hero-bg:      #07111e;
      --blue-dark:    #1a3a5c;
      --blue-mid:     #15304e;
      --green-dark:   #1a3d20;
      --green-ico:    rgba(255,255,255,.12);
      --accent:       #7db8f5;
      --gap:          6px;
      --radius-lg:    16px;
      --radius-md:    12px;
      --radius-sm:    10px;
    }

    /* ─── Base ─── */
    *, *::before, *::after { box-sizing: border-box; }
    body {
      font-family: 'DM Sans', sans-serif;
      background: #f4f4f0;
      margin: 0;
      padding: 0;
    }

    /* ─── Navbar ─── */
    .tor-navbar {
      background: var(--hero-bg);
      padding: .9rem 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 100;
      border-bottom: 0.5px solid rgba(255,255,255,.07);
    }
    .tor-logo {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem;
      font-weight: 700;
      color: #fff;
      letter-spacing: -.01em;
      text-decoration: none;
    }
    .tor-logo span { color: var(--accent); }
    .tor-nav-links {
      display: flex;
      gap: 1.8rem;
      list-style: none;
      margin: 0; padding: 0;
    }
    .tor-nav-links a {
      font-size: .8rem;
      font-weight: 400;
      color: rgba(255,255,255,.5);
      text-decoration: none;
      letter-spacing: .06em;
      text-transform: uppercase;
      transition: color .2s;
    }
    .tor-nav-links a:hover { color: #fff; }
    .tor-hamburger {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      flex-direction: column;
      gap: 5px;
    }
    .tor-hamburger span {
      display: block;
      width: 22px;
      height: 1.5px;
      background: rgba(255,255,255,.7);
      border-radius: 2px;
      transition: all .3s;
    }

    /* ─── Hero section wrapper ─── */
    .tor-section {
      max-width: 1320px;
      margin: 0 auto;
      padding: 1.5rem 1rem 2rem;
    }

    /* ─── Bento grid ─── */
    /* Dos módulos principales (Qué visitar / Qué hacer) a ancho completo,
       cada uno ocupando media columna. Altura = 375px, igual que la suma
       de las dos celdas del layout anterior (200 + 175 + gap). */
    .bento {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 375px;
      gap: var(--gap);
      border-radius: var(--radius-lg);
      overflow: hidden;
    }

    /* ─── Hero principal (slider) ─── */
    .bento-hero {
      grid-column: 1 / 2;
      grid-row: 1 / 3;
      position: relative;
      overflow: hidden;
      cursor: pointer;
    }
    .bento-hero-slides {
      position: absolute;
      inset: 0;
    }
    .bento-hero-slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity .9s ease;
      background-size: cover;
      background-position: center 30%;
    }
    .bento-hero-slide.active { opacity: 1; }
    /* Fotos del slider — sustitúyelas por las tuyas */
    .slide-1 { background-image: url('../img/slides_bg/bg01.webp'); }
    .slide-2 { background-image: url('../img/slides_bg/bg02.webp'); }
    .slide-3 { background-image: url('../img/slides_bg/bg04.webp');  }
    .slide-4 { background-image: url('../img/slides_bg/bg05.webp'); }

    .bento-hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.28) 50%, rgba(0,0,0,.05) 100%);
      z-index: 1;
    }
    .bento-hero-content {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      z-index: 2;
      padding: 1.6rem;
    }
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      background: rgba(16, 37, 75);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 20px;
      padding: .28rem .8rem;
      font-size: .65rem;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: #fff;
      margin-bottom: .7rem;
    }
    .hero-title {
      font-family: 'Playfair Display', serif;
      font-size: 2rem;
      font-weight: 400;
      color: #f5c518;
      line-height: 1.1;
      letter-spacing: -.02em;
      margin: 0 0 .3rem;
    }
    .hero-title b { font-weight: 700; }
    .hero-sub {
      font-size: 1.1em;
      color: #fff;
      line-height: 1.5;
      margin: 0;
    }
    .hero-dots {
      display: flex;
      gap: 5px;
      margin-top: .9rem;
      align-items: center;
    }
    .hero-dot {
      display: block;
      width: 5px; height: 5px;
      border-radius: 50%;
      background: rgba(255,255,255,.3);
      cursor: pointer;
      border: none;
      padding: 0;
      transition: all .3s;
    }
    .hero-dot.active {
      background: #fff;
      width: 18px;
      border-radius: 3px;
    }

    /* ─── Celdas Qué ver / Qué hacer ─── */
    .bento-cell {
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 1.8rem;
      cursor: pointer;
      text-decoration: none;
      transition: filter .3s;
    }
    .bento-cell:hover { filter: brightness(1.1); }
    .bento-cell-img {
      position: absolute;
      inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: center;
      /* Quita este display:none cuando añadas tu foto real */
      /* display: none; */
    }
    /* Cuando haya foto, muéstrala: quita el display:none del img */
    .bento-cell-overlay {
      position: absolute;
      inset: 0;
    }

    /* ── Azules: difuminado suave de color, listo para foto ── */
    .cell-blue-1 {
      grid-column: 1 / 2;
      grid-row: 1 / 2;
      /* Color base visible sin foto */
      background: linear-gradient(145deg, #1e4a78 0%, #0d2240 60%, #07131f 100%);
    }
    .cell-blue-1 .bento-cell-overlay {
      /* Con foto: oscurece suavemente preservando la imagen */
      background: linear-gradient(to top,
        rgba(7, 18, 35, 0.82) 0%,
        rgba(14, 35, 65, 0.45) 45%,
        rgba(20, 50, 90, 0.15) 100%);
    }
    .cell-blue-2 {
      grid-column: 2 / 3;
      grid-row: 1 / 2;
      background: linear-gradient(145deg, #163d6a 0%, #091c38 60%, #050f1c 100%);
    }
    .cell-blue-2 .bento-cell-overlay {
      background: linear-gradient(to top,
        rgba(5, 15, 30, 0.82) 0%,
        rgba(10, 28, 55, 0.45) 45%,
        rgba(16, 42, 80, 0.15) 100%);
    }
    .bento-cell-content {
      position: relative;
      z-index: 2;
    }
    .bento-cell-icon {
      font-size: 1.2rem;
      margin-bottom: .25rem;
      display: block;
    }
    .bento-cell-name {
      font-family: 'Rajdhani', sans-serif;
      font-size: 2.2rem;
      font-weight: 700;
      letter-spacing: .03em;
      color: #fff;
      margin: 0;
      line-height: 1.1;
    }
    .bento-cell-sub {
      color: #fff;
      font-size: 1.05em;
      text-transform: uppercase;
      letter-spacing: .07em;
      margin: .3rem 0 0;
      opacity: .9;
    }

    /* ─── Strip inferior verde ─── */
    .green-strip {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--gap);
      margin-top: var(--gap);
    }
    /* ── Verdes: difuminado suave, icono centrado, texto debajo ── */
    .green-card {
      position: relative;
      overflow: hidden;
      border-radius: var(--radius-md);
      padding: 1.4rem .8rem 1.2rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: .55rem;
      text-align: center;
      text-decoration: none;
      cursor: pointer;
      transition: filter .25s, transform .2s;
      /* Verde más vivo: arranca claro y baja suavemente */
      /* background: linear-gradient(150deg, #52be67 0%, #33894a 45%, #1a5228 100%); */
      background: linear-gradient(150deg, #1a5fbe 0%, #10254b 45%, #071530 100%);
    }
    .green-card:hover {
      filter: brightness(1.1);
      transform: translateY(-2px);
    }
    /* Foto opcional — quita display:none cuando la añadas */
    .green-card-img {
      position: absolute;
      inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: center;
      display: none;
    }
    .green-card-overlay {
      position: absolute;
      inset: 0;
      
      /* background: linear-gradient(to bottom,
        rgba(20,60,28,.15) 0%,
        rgba(8,25,12,.55) 100%); */
     background: linear-gradient(to bottom,
      rgba(10,30,70,.15) 0%,
      rgba(5,15,40,.55) 100%);   
        }
    .green-card-ico {
      position: relative;
      z-index: 2;
      width: 44px; height: 44px;
      border-radius: 11px;
      /* background: rgba(255,255,255,.15); */
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.35rem;
      flex-shrink: 0;
    }
    .green-card-name {
      font-family: 'Rajdhani', sans-serif;
      position: relative;
      z-index: 2;
      font-size: 1.4rem;
      font-weight: 700;
      letter-spacing: .03em;
      color: #fff;
      margin: 0;
      line-height: 1.1;
    }

    /* ─── Hover en bento hero ─── */
    .bento-hero:hover .bento-hero-overlay {
      background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.32) 50%, rgba(0,0,0,.08) 100%);
    }

    /* ════════════════════════════════
       RESPONSIVE — Mobile (<768px)
    ════════════════════════════════ */
    @media (max-width: 767.98px) {

      .tor-nav-links { display: none; }
      .tor-hamburger { display: flex; }
      .tor-nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--hero-bg);
        padding: 1rem 1.5rem 1.5rem;
        gap: 1rem;
        border-bottom: 0.5px solid rgba(255,255,255,.08);
        z-index: 99;
      }

      .tor-section { padding: .75rem .75rem 1.5rem; }

      /* Bento en mobile: columna única, dos celdas apiladas */
      .bento {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 200px;
      }
      .cell-blue-1  { grid-column: 1; grid-row: 1; }
      .cell-blue-2  { grid-column: 1; grid-row: 2; }

      .bento-cell-name { font-size: 1.7rem; }
      .bento-cell-sub  { font-size: .9em; }

      /* Strip verde en mobile: 3 columnas iguales */
      .green-strip {
        grid-template-columns: repeat(3, 1fr);
      }
      .green-card {
        padding: 1rem .4rem;
      }
      .green-card-ico {
        width: 38px; height: 38px;
        font-size: 1.1rem;
      }
      .green-card-name {
        font-size: 1rem;
      }
    }

    /* Tablet (768px–991px): proporciones ajustadas */
    @media (min-width: 768px) and (max-width: 991.98px) {
      .bento {
        grid-template-rows: 320px;
      }
      .bento-cell-name { font-size: 1.9rem; }
    }

    /* ─── Animación de entrada ─── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .cell-blue-1        { animation: fadeUp .7s ease both; }
    .cell-blue-2        { animation: fadeUp .7s .08s ease both; }
    .green-card:nth-child(1) { animation: fadeUp .7s .16s ease both; }
    .green-card:nth-child(2) { animation: fadeUp .7s .24s ease both; }
    .green-card:nth-child(3) { animation: fadeUp .7s .32s ease both; }