/* ===================================================
   Estilos específicos de galeria.html
   Los estilos globales (nav, footer, animaciones, etc.)
   están en stylesheet.css
   =================================================== */

    /* RESET Y ESTILOS BASE */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Montserrat Alternates', sans-serif;
      background-color: #111111;
      color: #ffffff;
      line-height: 1.6;
      padding: 20px;
      min-height: 100vh;
    }

    .container {
      max-width: 1400px;
      margin: 0 auto;
      background: linear-gradient(145deg, #1a1a1a, #151515);
      border-radius: 20px;
      padding: 40px;
      border: 1px solid #333;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      animation: fadeIn 0.8s ease-out;
    }

    .header {
      text-align: center;
      margin-bottom: 40px;
      padding-bottom: 30px;
      border-bottom: 2px solid rgb(255, 153, 0);
      animation: slideDown 0.6s ease-out;
    }

    .logo {
      font-size: 4rem;
      margin-bottom: 20px;
      animation: bounceIn 1s ease-out;
    }

    h1 {
      color: rgb(255, 153, 0);
      font-size: 2.8rem;
      margin-bottom: 15px;
      font-weight: bold;
      text-shadow: 0 2px 10px rgba(255, 153, 0, 0.3);
    }

    .subtitle {
      color: #cccccc;
      font-size: 1.3rem;
      margin-bottom: 10px;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }

    /* DISEÑO BENTO MEJORADO */
    .bento-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-auto-rows: minmax(200px, auto);
      gap: 20px;
      margin: 40px 0;
    }

    .bento-item {
      border-radius: 16px;
      overflow: hidden;
      position: relative;
      background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
      border: 1px solid rgba(255, 153, 0, 0.2);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
      transition: all 0.4s ease;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 25px;
    }

    .bento-item:hover {
      transform: translateY(-8px);
      border-color: rgb(255, 153, 0);
      box-shadow: 0 12px 30px rgba(255, 153, 0, 0.2);
    }

    .bento-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.85));
      z-index: 1;
      transition: all 0.4s ease;
    }

    .bento-item:hover::before {
      background: linear-gradient(to bottom, transparent 10%, rgba(0,0,0,0.95));
    }

    .bento-content {
      position: relative;
      z-index: 2;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }

    .bento-icon {
      font-size: 2.8rem;
      margin-bottom: 15px;
      color: rgb(255, 153, 0);
      text-shadow: 0 0 15px rgba(255, 153, 0, 0.5);
      transition: all 0.4s ease;
      opacity: 1;
      transform: translateY(0);
    }

    .bento-title {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 12px;
      color: white;
      transition: all 0.4s ease;
      opacity: 1;
      transform: translateY(0);
    }

    .bento-description {
      font-size: 1rem;
      color: #cccccc;
      line-height: 1.5;
      margin-bottom: 15px;
      transition: all 0.4s ease;
      opacity: 1;
      transform: translateY(0);
    }

    .bento-year {
      display: inline-block;
      background: rgb(255, 153, 0);
      color: black;
      padding: 6px 15px;
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: bold;
      align-self: flex-start;
      transition: all 0.4s ease;
      opacity: 1;
      transform: translateY(0);
    }

    /* EFECTO HOVER - OCULTAR TODO EL CONTENIDO */
    .bento-item.hide-text .bento-icon,
    .bento-item.hide-text .bento-title,
    .bento-item.hide-text .bento-description,
    .bento-item.hide-text .bento-year {
      opacity: 0;
      transform: translateY(20px);
    }

    /* EXPANDIR ELEMENTO */
    .bento-item.expanded {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) !important;
      width: 90vw;
      height: 90vh;
      max-width: 1200px;
      max-height: 800px;
      z-index: 1000;
      background-size: cover !important;
      background-position: center !important;
      border: 2px solid rgb(255, 153, 0);
      box-shadow: 0 0 50px rgba(255, 153, 0, 0.5);
      border-radius: 20px;
      overflow: hidden;
    }

    .bento-item.expanded::before {
      background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.95));
    }

    .bento-item.expanded .bento-content {
      justify-content: flex-start;
      padding: 40px;
      height: 100%;
      overflow-y: auto;
    }

    .bento-item.expanded .bento-icon {
      font-size: 4rem;
      margin-bottom: 25px;
      opacity: 1 !important;
      transform: translateY(0) !important;
    }

    .bento-item.expanded .bento-title {
      font-size: 2.5rem;
      margin-bottom: 20px;
      opacity: 1 !important;
      transform: translateY(0) !important;
    }

    .bento-item.expanded .bento-description {
      font-size: 1.3rem;
      line-height: 1.8;
      margin-bottom: 25px;
      opacity: 1 !important;
      transform: translateY(0) !important;
    }

    .bento-item.expanded .bento-year {
      opacity: 1 !important;
      transform: translateY(0) !important;
    }

    .bento-item.expanded .expanded-content {
      display: block;
      font-size: 1.1rem;
      line-height: 1.7;
      color: #cccccc;
      margin-top: 20px;
      padding-right: 15px;
    }

    .expanded-content {
      display: none;
    }

    /* BOTÓN CERRAR */
    .close-btn {
      position: absolute;
      top: 20px;
      right: 20px;
      background: rgb(255, 153, 0);
      color: black;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      font-size: 1.2rem;
      cursor: pointer;
      z-index: 1001;
      display: none;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .bento-item.expanded .close-btn {
      display: flex;
    }

    .close-btn:hover {
      background: white;
      transform: scale(1.1);
    }

    /* OVERLAY PARA EXPANDIDO */
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      z-index: 999;
      display: none;
    }

    .overlay.active {
      display: block;
    }

    /* TAMAÑOS BENTO */
    .bento-large {
      grid-column: span 2;
      grid-row: span 2;
    }

    .bento-medium {
      grid-column: span 2;
      grid-row: span 1;
    }

    .bento-small {
      grid-column: span 1;
      grid-row: span 1;
    }

    .bento-tall {
      grid-column: span 1;
      grid-row: span 2;
    }

    .bento-wide {
      grid-column: span 2;
      grid-row: span 1;
    }

    /* COLORES BENTO MEJORADOS */
    .bento-orange {
      background: linear-gradient(135deg, rgba(255, 153, 0, 0.2), rgba(255, 136, 0, 0.15));
    }

    .bento-dark {
      background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(40, 40, 40, 0.8));
    }

    .bento-gradient-1 {
      background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    }

    .bento-gradient-2 {
      background: linear-gradient(135deg, #2c003e, #512b58, #533483);
    }

    .bento-gradient-3 {
      background: linear-gradient(135deg, #2d4059, #206a5d, #1f4068);
    }

    .bento-gradient-4 {
      background: linear-gradient(135deg, #3d087b, #6e44ff, #b892ff);
    }

    .bento-gradient-5 {
      background: linear-gradient(135deg, #ff6b6b, #ffa36c, #ffd166);
    }

    .bento-gradient-6 {
      background: linear-gradient(135deg, #1e3c72, #2a5298, #1e3c72);
    }

    .bento-gradient-7 {
      background: linear-gradient(135deg, #614385, #516395, #614385);
    }

    .bento-gradient-8 {
      background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fad0c4);
    }

    .bento-gradient-9 {
      background: linear-gradient(135deg, #a1c4fd, #c2e9fb, #a1c4fd);
    }

    .bento-gradient-10 {
      background: linear-gradient(135deg, #ffecd2, #fcb69f, #ffecd2);
    }

    /* IMÁGENES DE FONDO PARA CADA CAJA EXPANDIDA */
    .bento-item[data-id="creacion"].expanded {
      background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') !important;
    }

    .bento-item[data-id="equipo"].expanded {
      background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') !important;
    }

    .bento-item[data-id="estreno"].expanded {
      background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1517604931442-7e0c8ed2963c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') !important;
    }

    .bento-item[data-id="guion"].expanded {
      background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') !important;
    }

    .bento-item[data-id="sonido"].expanded {
      background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') !important;
    }

    .bento-item[data-id="postproduccion"].expanded {
      background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1593359677879-a4bb92f829d1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') !important;
    }

    .bento-item[data-id="iluminacion"].expanded {
      background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') !important;
    }

    .bento-item[data-id="familia"].expanded {
      background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1511632765486-a01980e01a18?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') !important;
    }

    .bento-item[data-id="animacion"].expanded {
      background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1635070041078-e363dbe005cb?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') !important;
    }

    .bento-item[data-id="documental"].expanded {
      background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') !important;
    }

    /* SECCIÓN DE TEXTO INSPIRADOR */
    .inspiration-section {
      background: rgba(255, 153, 0, 0.05);
      border-radius: 16px;
      padding: 40px;
      margin: 50px 0;
      border: 1px solid rgba(255, 153, 0, 0.2);
      animation: fadeInUp 0.8s ease-out 0.4s both;
    }

    .quote {
      font-style: italic;
      text-align: center;
      padding: 25px;
      margin: 30px 0;
      background-color: rgba(255, 153, 0, 0.08);
      border-radius: 12px;
      font-size: 1.1rem;
      line-height: 1.8;
    }

    .highlight {
      font-weight: bold;
      color: rgb(255, 153, 0);
      text-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
    }

    /* SECCIÓN DEL CARRUSEL */
    .carousel-section {
      margin: 80px 0;
      padding: 40px 0;
      border-top: 2px solid rgba(255, 153, 0, 0.3);
      border-bottom: 2px solid rgba(255, 153, 0, 0.3);
    }

    .section-title {
      text-align: center;
      color: rgb(255, 153, 0);
      font-size: 2.5rem;
      margin-bottom: 40px;
      font-weight: bold;
    }

    .carousel-container {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      border: 2px solid rgba(255, 153, 0, 0.3);
      width: 100%;
      max-width: 100%;
      height: 600px;
      margin: 0 auto;
      transition: all 0.3s ease;
    }

    .carousel-container:hover {
      border-color: rgb(255, 153, 0);
      box-shadow: 0 0 25px rgba(255, 153, 0, 0.4);
    }

    .carousel {
      display: flex;
      transition: transform 0.5s ease;
      height: 100%;
      width: 100%;
    }

    .carousel-item {
      min-width: 100%;
      height: 100%;
      position: relative;
      flex-shrink: 0;
      overflow: hidden;
    }

    .carousel-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: all 0.5s ease;
      background-color: #000;
    }

    .carousel-caption {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(transparent, rgba(0,0,0,0.95));
      color: white;
      padding: 15px 20px;
      font-size: 1.1rem;
      text-align: center;
      transform: translateY(0);
      transition: all 0.4s ease;
      backdrop-filter: blur(3px);
      min-height: 60px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .caption-title {
      font-weight: 600;
      margin-bottom: 5px;
      font-size: 1.1rem;
      line-height: 1.3;
    }

    .caption-description {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease;
      font-size: 0.9rem;
      line-height: 1.4;
      opacity: 0;
      margin: 0;
    }

    .carousel-caption.expanded {
      background: linear-gradient(transparent, rgba(0,0,0,0.98));
      padding: 15px 20px 20px;
    }

    .carousel-caption.expanded .caption-description {
      max-height: 150px;
      opacity: 1;
      margin-top: 10px;
      overflow-y: auto;
    }

    /* NAVEGACIÓN DEL CARRUSEL */
    .carousel-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255, 153, 0, 0.8);
      border: none;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      font-size: 1.5rem;
      color: black;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      z-index: 10;
      opacity: 0.7;
    }

    .carousel-nav:hover {
      background: rgb(255, 153, 0);
      box-shadow: 0 0 15px rgba(255, 153, 0, 0.8);
      transform: translateY(-50%) scale(1.1);
      opacity: 1;
    }

    .carousel-prev {
      left: 20px;
    }

    .carousel-next {
      right: 20px;
    }

    .carousel-dots {
      display: flex;
      justify-content: center;
      margin-top: 20px;
      gap: 10px;
    }

    .carousel-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #444;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .carousel-dot::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: rgb(255, 153, 0);
      transition: left 0.3s ease;
    }

    .carousel-dot:hover::before {
      left: 0;
    }

    .carousel-dot.active {
      background: rgb(255, 153, 0);
      transform: scale(1.3);
    }

    .carousel-dot.active::before {
      left: 0;
    }

    /* BOTONES FIJOS */
    .fixed-buttons-container {
      position: fixed;
      bottom: 30px;
      right: 30px;
      display: flex;
      flex-direction: row;
      gap: 10px;
      z-index: 999;
    }

    .custom-btn-fixed-scroll {
      display: flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, rgb(255, 153, 0), rgb(255, 136, 0));
      color: black;
      text-decoration: none;
      border: none;
      border-radius: 25px;
      padding: 12px 20px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px);
    }

    .custom-btn-fixed-scroll.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .custom-btn-fixed-scroll:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
    }

    .custom-btn-fixed-scroll:active {
      transform: translateY(-1px);
    }

    /* ANIMACIONES */
    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

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

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes bounceIn {
      0% {
        opacity: 0;
        transform: scale(0.3);
      }
      50% {
        opacity: 1;
        transform: scale(1.05);
      }
      70% {
        transform: scale(0.9);
      }
      100% {
        opacity: 1;
        transform: scale(1);
      }
    }

    /* FOOTER */
    .footer {
      text-align: center;
      margin-top: 60px;
      padding-top: 30px;
      border-top: 1px solid #333;
      color: #888;
      animation: fadeIn 0.8s ease-out 0.8s both;
    }

    .footer-quote {
      font-style: italic;
      margin-top: 20px;
      font-size: 1.1rem;
      color: #cccccc;
    }

    /* ===== RESPONSIVE DESIGN MEJORADO ===== */

    /* Para tablets pequeñas (481px a 768px) */
    @media screen and (max-width: 768px) {
      .container {
        padding: 25px;
      }
      
      .header {
        margin-bottom: 30px;
        padding-bottom: 20px;
      }
      
      .logo {
        font-size: 3rem;
      }
      
      h1 {
        font-size: 2.2rem;
      }
      
      .subtitle {
        font-size: 1.1rem;
      }
      
      .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 30px 0;
      }
      
      .bento-large {
        grid-column: span 2;
      }
      
      .bento-medium {
        grid-column: span 2;
      }
      
      .bento-tall {
        grid-column: span 1;
      }
      
      .bento-wide {
        grid-column: span 2;
      }
      
      .bento-item {
        padding: 20px;
      }
      
      .bento-icon {
        font-size: 2.2rem;
      }
      
      .bento-title {
        font-size: 1.3rem;
      }
      
      .bento-description {
        font-size: 0.9rem;
      }
      
      .carousel-section {
        margin: 50px 0;
        padding: 30px 0;
      }
      
      .section-title {
        font-size: 2rem;
        margin-bottom: 25px;
      }
      
      .carousel-container {
        height: 350px;
        border-radius: 10px;
      }
      
      .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
      }
      
      .carousel-prev {
        left: 10px;
      }
      
      .carousel-next {
        right: 10px;
      }
      
      .carousel-caption {
        padding: 12px 15px;
        font-size: 1rem;
        min-height: 50px;
      }
      
      .caption-title {
        font-size: 1rem;
      }
      
      .carousel-dots {
        margin-top: 15px;
      }
      
      .carousel-dot {
        width: 10px;
        height: 10px;
      }
      
      .inspiration-section {
        padding: 30px;
        margin: 40px 0;
      }
      
      .quote {
        padding: 20px;
        font-size: 1rem;
      }
      
      .fixed-buttons-container {
        bottom: 20px;
        right: 20px;
      }
      
      .custom-btn-fixed-scroll {
        padding: 10px 16px;
        font-size: 0.9rem;
      }
    }

    /* Para móviles (hasta 480px) */
    @media screen and (max-width: 480px) {
      body {
        padding: 10px;
      }
      
      .container {
        padding: 20px 15px;
        border-radius: 15px;
      }
      
      .header {
        margin-bottom: 25px;
        padding-bottom: 15px;
      }
      
      .logo {
        font-size: 2.5rem;
        margin-bottom: 15px;
      }
      
      h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
      }
      
      .subtitle {
        font-size: 1rem;
        line-height: 1.4;
      }
      
      .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(150px, auto);
        gap: 12px;
        margin: 25px 0;
      }
      
      .bento-large,
      .bento-medium,
      .bento-small,
      .bento-tall,
      .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
      }
      
      .bento-item {
        padding: 15px;
        border-radius: 12px;
      }
      
      .bento-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
      }
      
      .bento-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
      }
      
      .bento-description {
        font-size: 0.85rem;
        margin-bottom: 10px;
      }
      
      .bento-year {
        font-size: 0.75rem;
        padding: 4px 10px;
      }
      
      .bento-item.expanded {
        width: 95vw;
        height: 95vh;
        max-width: none;
        max-height: none;
        border-radius: 15px;
      }
      
      .bento-item.expanded .bento-content {
        padding: 25px 20px;
      }
      
      .bento-item.expanded .bento-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
      }
      
      .bento-item.expanded .bento-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
      }
      
      .bento-item.expanded .bento-description {
        font-size: 1rem;
        margin-bottom: 15px;
      }
      
      .bento-item.expanded .expanded-content {
        font-size: 0.95rem;
        line-height: 1.6;
      }
      
      .close-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: 15px;
        right: 15px;
      }
      
      .carousel-section {
        margin: 40px 0;
        padding: 20px 0;
      }
      
      .section-title {
        font-size: 1.7rem;
        margin-bottom: 20px;
      }
      
      .carousel-container {
        height: 250px;
        border-radius: 8px;
      }
      
      .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        opacity: 0.8;
      }
      
      .carousel-prev {
        left: 8px;
      }
      
      .carousel-next {
        right: 8px;
      }
      
      .carousel-caption {
        padding: 10px 12px;
        font-size: 0.9rem;
        min-height: 45px;
      }
      
      .caption-title {
        font-size: 0.95rem;
      }
      
      .carousel-dots {
        gap: 8px;
        margin-top: 12px;
      }
      
      .carousel-dot {
        width: 8px;
        height: 8px;
      }
      
      .inspiration-section {
        padding: 20px;
        margin: 30px 0;
        border-radius: 12px;
      }
      
      .quote {
        padding: 15px;
        font-size: 0.95rem;
        margin: 20px 0;
      }
      
      .fixed-buttons-container {
        bottom: 15px;
        right: 15px;
        gap: 8px;
      }
      
      .custom-btn-fixed-scroll {
        padding: 8px 14px;
        font-size: 0.85rem;
      }
      
      .footer {
        margin-top: 40px;
        padding-top: 20px;
      }
      
      .footer-quote {
        font-size: 1rem;
        margin-top: 15px;
      }
    }

    /* Para iPhone SE y dispositivos muy pequeños (hasta 375px) */
    @media screen and (max-width: 375px) {
      body {
        padding: 8px;
      }
      
      .container {
        padding: 15px 12px;
        border-radius: 12px;
      }
      
      .header {
        margin-bottom: 20px;
        padding-bottom: 12px;
      }
      
      .logo {
        font-size: 2.2rem;
        margin-bottom: 12px;
      }
      
      h1 {
        font-size: 1.6rem;
        margin-bottom: 8px;
      }
      
      .subtitle {
        font-size: 0.9rem;
        line-height: 1.3;
      }
      
      .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(130px, auto);
        gap: 10px;
        margin: 20px 0;
      }
      
      .bento-item {
        padding: 12px;
        border-radius: 10px;
      }
      
      .bento-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
      }
      
      .bento-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
      }
      
      .bento-description {
        font-size: 0.8rem;
        margin-bottom: 8px;
        line-height: 1.3;
      }
      
      .bento-year {
        font-size: 0.7rem;
        padding: 3px 8px;
      }
      
      .bento-item.expanded {
        width: 96vw;
        height: 96vh;
        border-radius: 12px;
      }
      
      .bento-item.expanded .bento-content {
        padding: 20px 15px;
      }
      
      .bento-item.expanded .bento-icon {
        font-size: 2rem;
        margin-bottom: 12px;
      }
      
      .bento-item.expanded .bento-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
      }
      
      .bento-item.expanded .bento-description {
        font-size: 0.9rem;
        margin-bottom: 12px;
      }
      
      .bento-item.expanded .expanded-content {
        font-size: 0.85rem;
        line-height: 1.5;
      }
      
      .close-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        top: 12px;
        right: 12px;
      }
      
      .carousel-section {
        margin: 30px 0;
        padding: 15px 0;
      }
      
      .section-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
      }
      
      /* CARRUSEL OPTIMIZADO PARA IPHONE SE */
      .carousel-container {
        height: 200px;
        border-radius: 6px;
      }
      
      .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        opacity: 0.8;
      }
      
      .carousel-prev {
        left: 6px;
      }
      
      .carousel-next {
        right: 6px;
      }
      
      .carousel-caption {
        padding: 8px 10px;
        font-size: 0.8rem;
        min-height: 40px;
      }
      
      .caption-title {
        font-size: 0.85rem;
        line-height: 1.2;
      }
      
      .caption-description {
        font-size: 0.75rem;
        line-height: 1.2;
      }
      
      .carousel-dots {
        gap: 6px;
        margin-top: 10px;
      }
      
      .carousel-dot {
        width: 7px;
        height: 7px;
      }
      
      .inspiration-section {
        padding: 15px;
        margin: 25px 0;
        border-radius: 10px;
      }
      
      .quote {
        padding: 12px;
        font-size: 0.85rem;
        margin: 15px 0;
        line-height: 1.4;
      }
      
      .fixed-buttons-container {
        bottom: 10px;
        right: 10px;
        gap: 6px;
      }
      
      .custom-btn-fixed-scroll {
        padding: 6px 12px;
        font-size: 0.75rem;
      }
      
      .footer {
        margin-top: 30px;
        padding-top: 15px;
      }
      
      .footer-quote {
        font-size: 0.9rem;
        margin-top: 12px;
      }
    }

    /* MEDIA QUERY ESPECÍFICA PARA IPHONE XR */
    @media screen and (min-width: 414px) and (max-width: 896px) and (orientation: portrait) {
      body {
        padding: 12px;
        background-color: #000;
      }
      
      .container {
        padding: 20px;
        border-radius: 18px;
        margin-bottom: 20px; /* Espacio para el notch */
      }
      
      .header {
        margin-bottom: 25px;
        padding-bottom: 15px;
      }
      
      .logo {
        font-size: 3.2rem;
        margin-bottom: 15px;
      }
      
      h1 {
        font-size: 2.2rem;
        margin-bottom: 12px;
      }
      
      .subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
      }
      
      .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 30px 0;
      }
      
      .bento-item {
        padding: 18px;
        border-radius: 14px;
        min-height: 180px;
      }
      
      .bento-icon {
        font-size: 2.2rem;
        margin-bottom: 12px;
      }
      
      .bento-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
      }
      
      .bento-description {
        font-size: 0.95rem;
        margin-bottom: 12px;
        line-height: 1.4;
      }
      
      .bento-year {
        font-size: 0.8rem;
        padding: 5px 12px;
      }
      
      /* Ajustes específicos para expansión en iPhone XR */
      .bento-item.expanded {
        width: 92vw;
        height: 85vh;
        max-width: none;
        max-height: none;
        border-radius: 18px;
        top: 52%; /* Ajuste para notch */
      }
      
      .bento-item.expanded .bento-content {
        padding: 25px 20px;
      }
      
      .bento-item.expanded .bento-icon {
        font-size: 3rem;
        margin-bottom: 20px;
      }
      
      .bento-item.expanded .bento-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
      }
      
      .bento-item.expanded .bento-description {
        font-size: 1.1rem;
        margin-bottom: 20px;
      }
      
      .bento-item.expanded .expanded-content {
        font-size: 1rem;
        line-height: 1.6;
      }
      
      .close-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        top: 15px;
        right: 15px;
      }
      
      /* Ajustes del carrusel para iPhone XR */
      .carousel-section {
        margin: 50px 0;
        padding: 25px 0;
      }
      
      .section-title {
        font-size: 2rem;
        margin-bottom: 25px;
      }
      
      .carousel-container {
        height: 380px;
        border-radius: 12px;
      }
      
      .carousel-nav {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
      }
      
      .carousel-prev {
        left: 12px;
      }
      
      .carousel-next {
        right: 12px;
      }
      
      .carousel-caption {
        padding: 15px;
        font-size: 1rem;
        min-height: 60px;
      }
      
      .caption-title {
        font-size: 1.1rem;
      }
      
      .carousel-dots {
        margin-top: 18px;
      }
      
      .carousel-dot {
        width: 12px;
        height: 12px;
      }
      
      /* Ajustes de sección de inspiración */
      .inspiration-section {
        padding: 25px;
        margin: 40px 0;
        border-radius: 14px;
      }
      
      .quote {
        padding: 20px;
        font-size: 1.05rem;
        margin: 25px 0;
        line-height: 1.6;
      }
      
      /* Botones fijos optimizados para iPhone XR */
      .fixed-buttons-container {
        bottom: 25px;
        right: 25px;
        gap: 12px;
      }
      
      .custom-btn-fixed-scroll {
        padding: 12px 18px;
        font-size: 1rem;
        min-height: 44px; /* Tamaño mínimo para toque */
      }
      
      .footer {
        margin-top: 50px;
        padding-top: 25px;
      }
      
      .footer-quote {
        font-size: 1.05rem;
        margin-top: 18px;
      }
      
      /* Asegurar que el contenido no quede detrás del notch */
      @supports(padding: max(0px)) {
        body {
          padding-left: max(12px, env(safe-area-inset-left));
          padding-right: max(12px, env(safe-area-inset-right));
          padding-top: max(12px, env(safe-area-inset-top));
          padding-bottom: max(12px, env(safe-area-inset-bottom));
        }
      }
    }

    /* MEDIA QUERY PARA IPHONE XR EN HORIZONTAL */
    @media screen and (min-width: 896px) and (max-width: 1000px) and (orientation: landscape) {
      .bento-grid {
        grid-template-columns: repeat(3, 1fr);
      }
      
      .carousel-container {
        height: 320px;
      }
      
      .bento-item.expanded {
        height: 80vh;
        width: 90vw;
      }
      
      .fixed-buttons-container {
        bottom: 20px;
        right: 20px;
      }
    }

    /* Para pantallas grandes */
    @media screen and (min-width: 1600px) {
      .carousel-container {
        height: 700px;
      }
    }

    /* Mejoras de usabilidad táctil */
    @media (pointer: coarse) {
      .carousel-nav,
      .carousel-dot,
      .close-btn,
      .custom-btn-fixed-scroll {
        min-width: 44px;
        min-height: 44px;
      }
      
      .carousel-dot {
        width: 16px;
        height: 16px;
      }
    }

    /* Deshabitar hover effects en dispositivos táctiles */
    @media (hover: none) and (pointer: coarse) {
      .carousel-item:hover .carousel-img {
        transform: none;
      }
      
      .carousel-nav:hover {
        transform: translateY(-50%) !important;
      }
      
      .bento-item:hover {
        transform: none;
      }
    }

    /* Safe area para iPhone XR */
    .safe-area-inset {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: env(safe-area-inset-top);
      background: #111111;
      z-index: 9999;
      pointer-events: none;
    }

    /* Ajustar el padding-top del container para el safe area */
    @media screen and (min-width: 414px) and (max-width: 896px) and (orientation: portrait) {
      .container {
        padding-top: calc(20px + env(safe-area-inset-top));
      }
    }