/* ============================= */
/*       GENERAL / BODY / HTML   */
/* ============================= */
body,
html {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.container {
    max-width: 1230px;
    width: 100%;
    margin-top: 10px !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Para pantallas >= 840px con puntero tÃ¡ctil (tabletas, mÃ³viles grandes) */
/*@media (min-width: 840px) and (pointer: coarse) {
    .container {
        max-width: 1000px;
        margin: 0 auto;
    }
}*/

/*    PARTE  DE   NAVBAR  NO MOVER*/


/* Login dropdown mejorado */
  .login-dropdown {
      position: relative;
      display: inline-block;
  }

  .menu-dropdown {
      display: none;
      position: absolute;
      right: 0;
      top: 120%;
      background-color: white;
      border-radius: 10px;
      padding: 8px 0;
      width: 220px;
      z-index: 999;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      font-family: 'Roboto', sans-serif;

      /* Para permitir interacciones sin cerrar al salir del icono */
      pointer-events: auto;
  }

  .login-dropdown:hover .menu-dropdown,
  .login-dropdown:focus-within .menu-dropdown {
      display: block;
  }

  /* Elementos del menú */
  .menu-item {
      display: flex;
      align-items: center;
      padding: 10px 16px;
      font-size: 14px;
      color: #202124;
      cursor: pointer;
      transition: background 0.2s;
  }

  .menu-item:hover {
      background-color: #f1f3f4;
  }

  .menu-icon {
      display: flex;
      align-items: center;
      margin-right: 10px;
  }

  .menu-divider {
      height: 1px;
      background-color: #e0e0e0;
      margin: 4px 0;
  }

  .material-icons {
      font-size: 18px;
  }

  /* Ícono de usuario */
  #userIcon {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      object-fit: cover;
      cursor: pointer;
  }

  /* Responsive ajustes */
  @media (max-width: 839px) {
      #mainHeader {
          padding: 6px 16px;
          border-bottom: none !important;
          box-shadow: none !important;
      }

      .navbar-brand img {
          height: 36px;
      }

      .project-name {
          font-size: 22px;
          margin-left: 6px;
      }

      nav.nav-menu {
          display: none;
      }

      .iconos-derecha i,
      .iconos-derecha a {
          font-size: 20px;
      }

      .icono-login {
          width: 26px;
          height: 26px;
      }
  }


/*AQUI TERMINA */

/*AQUI ESTAMOS AGREGANDO VALORACION Y ESTRELLAS */



.rating-box {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    max-width: 500px;
    margin: 20px auto;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.rating-box h3 {
    margin-bottom: 10px;
}

.stars {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.star {
    font-size: 28px;
    cursor: pointer;
    color: #ccc;
}

.star.selected {
    color: #fbc02d;
}

.comentario-titulo {
    display: inline-block;
    background-color: #5900ff;
    color: white;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: default;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 10px;
}


.boton-iphone {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: rgba(12, 110, 82, 0.137);
    color: #056449;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 30px;
    margin-top: 10px;

}



.boton-iphone:hover {
    background-color: rgba(5, 100, 73, 0.08);
    /* fondo semi-transparente */
}

/*AQUI VA EL NUMERO 4.6 Y  LOS  NUMERO DE BARRAS */

.rating-container-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
}

.rating-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.rating-score {
    font-size: 65px;
    font-weight: bold;
    color: #07090c;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    line-height: 1;
}

.stars-row {
    margin-top: 5px;
    color: #fbc02d;
}

.rating-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/*AQUI LOS NUMEROS VAN MAS APEGADOS */

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: -2px; /* MÁS CERCANO */
    margin-bottom: -4px;
}

.rating-number {
    font-size: 10px;
    font-weight: bold;
    width: 10px;
    text-align: right;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    color: #5F6368;
    margin-right: 0;

}

.bar-bg {
    flex: 1;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: #0f8b02;
    /* Azul fuerte */
    border-radius: 5px;
}

/*SECCION DE COMENTARIOS */

/* CONTENEDOR GENERAL */
#comentarioSection {
    display: none;
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.85);
    /* Blanco semitransparente */
    text-align: center;
    font-family: "Google Sans", Roboto, Arial, sans-serif;;
    position: relative;
    /* NECESARIO para el fondo */
    overflow: hidden;
    /* Por si el pseudo-elemento se sale */
}

/* Fondo translúcido detrás del contenido */
#comentarioSection::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    /* blanco transparente */
    z-index: 0;
    border-radius: 10px;
}

/* Para que el contenido quede encima del fondo semitransparente */
#comentarioSection>* {
    position: relative;
    z-index: 1;
}

#comentarioSection.visible {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 999 !important;
}

 /* USUARIO */
 .EGFGHd {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 10px;
     margin-bottom: 15px;
 }

 #imagenuser {
     width: 48px;
     height: 48px;
     border-radius: 50%;
     object-fit: cover;
 }

 .X5PpBb {
     font-weight: bold;
     font-size: 1rem;
 }

/* Todas las estrellas en gris por defecto */
#starContainer .star {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s ease;
}

#starContainer .estrella-activa {
    color: gold;
}

 /* TEXTAREA */
 textarea,
 #comentario {
     width: 100%;
     max-width: 100%;
     padding: 12px;
     font-size: 1rem;
     border: 2px solid #ccc;
     border-radius: 10px;
     resize: vertical;
     box-sizing: border-box;
     outline: none;
     margin-top: 10px;
     background-color: #fff;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
 }

 /* BOTÓN PRINCIPAL */
 #btnValorar {
     background-color: #5900ff;
     color: white;
     border: none;
     padding: 12px 24px;
     font-size: 1rem;
     border-radius: 15px;
     /* Ovalado */
     cursor: pointer;
     margin-top: 10px;
     transition: background-color 0.3s ease;
 }

 #btnValorar:hover {
     background-color: #2c7eea;
 }

 /* CONTENEDOR DEL BOTÓN */
 .comecms {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 10px;
     background-color: transparent;
     /* CAMBIO: ya no gris */
     padding-left: 9px;
     padding-right: 10px;
     padding-top: 1px;
     padding-bottom: 4px;
 }

 /* RESPONSIVE */
 @media (max-width: 768px) {
     .comecms {
         display: block;
         text-align: center;
     }

     .comecms button,
     .comecms #goog {
         width: 100%;
         margin: 10px 0;
     }

     #comentarioSection {
         max-width: 95%;
         padding: 15px;
     }
 }





 /* BOTÓN EXTRA (GOOG) */
 #goog {
     list-style: none;
     background-color: rgb(0, 0, 0);
     border-radius: 6px;
     color: rgb(255, 255, 255);
     padding: 10px 20px;
     cursor: pointer;
     transition: transform 0.2s ease, box-shadow 0.2s ease;
 }

 #goog:hover {
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
 }

 #goog:active {
     transform: scale(0.95);
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
 }

 #goog span {
     display: inline-flex;
     align-items: center;
 }
 
 
/* Estilo del menú de navegación principal */

 * {
       box-sizing: border-box;
   }

   body,
   html {
       margin: 0;
       padding: 0;
       font-family: "Google Sans", Roboto, Arial, sans-serif;
   }

 #mainHeader {
       display: flex;
       align-items: center;
       justify-content: space-between;
       padding: 8px 24px;
       position: fixed;
       top: 0;
       width: 100%;
       background: #ffffff;
       z-index: 1050;
       border-bottom: none !important;
       box-shadow: none !important;
   }

   .navbar-brand {
       display: flex;
       align-items: center;
       text-decoration: none;
       color: inherit;
   }

   .navbar-brand img {
       height: 50px;
   }

   .project-name {
       font-size: 25px;
       font-weight: 500;
       color: #5F6368;
       margin-left: 10px;
   }

   nav.nav-menu {
       display: flex;
       gap: 20px;
       margin-left: 40px;
       flex-grow: 1;
   }

   nav.nav-menu span {
       font-size: 14px;
       color: #5F6368;
       cursor: pointer;
       font-weight: 500;
       position: relative;
   }

   nav.nav-menu span.active {
       color: #01875F;
       font-weight: 700;
   }

   nav.nav-menu span.active::after {
       content: "";
       position: absolute;
       left: 0;
       height: 3px;
       bottom: -8px;
       width: 100%;
       background-color: #01875F;
       border-radius: 2px;
   }

   .iconos-derecha {
       display: flex;
       align-items: center;
       gap: 16px;
   }

   .iconos-derecha i,
   .iconos-derecha a {
       font-size: 24px;
       color: #5F6368;
       text-decoration: none;
   }

   

   .contenido-principal {
       margin-top: 70px;
       padding: 0px;
   }

  /* Login dropdown mejorado */
  .login-dropdown {
      position: relative;
      display: inline-block;
  }

  .menu-dropdown {
      display: none;
      position: absolute;
      right: 0;
      top: 120%;
      background-color: white;
      border-radius: 10px;
      padding: 8px 0;
      width: 220px;
      z-index: 999;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      font-family: 'Roboto', sans-serif;

      /* Para permitir interacciones sin cerrar al salir del icono */
      pointer-events: auto;
  }

  .login-dropdown:hover .menu-dropdown,
  .login-dropdown:focus-within .menu-dropdown {
      display: block;
  }

  /* Elementos del menú */
  .menu-item {
      display: flex;
      align-items: center;
      padding: 10px 16px;
      font-size: 14px;
      color: #202124;
      cursor: pointer;
      transition: background 0.2s;
  }

  .menu-item:hover {
      background-color: #f1f3f4;
  }

  .menu-icon {
      display: flex;
      align-items: center;
      margin-right: 10px;
  }

  .menu-divider {
      height: 1px;
      background-color: #e0e0e0;
      margin: 4px 0;
  }

  .material-icons {
      font-size: 18px;
  }

  /* Ícono de usuario */
  #userIcon {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      object-fit: cover;
      cursor: pointer;
  }

  /* Responsive ajustes */
  @media (max-width: 839px) {
      #mainHeader {
          padding: 6px 16px;
          border-bottom: none !important;
          box-shadow: none !important;
      }

      .navbar-brand img {
          height: 36px;
      }

      .project-name {
          font-size: 22px;
          margin-left: 6px;
      }

      nav.nav-menu {
          display: none;
      }

      .iconos-derecha i,
      .iconos-derecha a {
          font-size: 20px;
      }

      .icono-login {
          width: 26px;
          height: 26px;
      }
  }

  /* Overlay del buscador */
  .search-overlay {
      position: fixed;
      top: 0;
      left: 0;
      background: rgba(0, 0, 0, 0.8);
      width: 100%;
      height: 100vh;
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
  }
  
  




  /* --- Botones de categorías --- */
.category-button {
    display: inline-block;
    background-color: white;
    color: #5f6368;
    padding: 6px 16px;
    border-radius: 999px;
    /* Ovalado */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    border: 2px solid rgba(95, 99, 104, 0.4);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.category-button:hover {
    color: #000000;
    border-color: rgba(95, 99, 104, 0.4);
}


/* --- Diseño parte inferior después de COMENTARIOS--- */
.custom-link {
    color: #01875f !important;
    font-size: 1.4rem;
    font-weight: 900;
    text-decoration: none;
}

.custom-link:hover {
    color: #01875F!important;
    text-decoration: underline;
}

.custom-container {
    margin-top: 30px;
}

.custom-container strong {
    font-weight: 400;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    color: #5f6368;
    font-size: 0.9rem;
}

.custom-container a {
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-size: 0.85rem;
    color: #5f6368;
    font-weight: 400;
    text-decoration: none;
}

.custom-container a:hover {
    text-decoration: underline;
}


/* --- Rating section --- */
.rating-section {
    display: flex;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    flex-wrap: wrap;
    align-items: center;
    justify-content: start;
    gap: 2rem;
    margin-top: 20px;
    padding-top: 1rem;
    border-top: none;
    font-size: 12px;
}

.rating-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 85px; /*ESPACIO ENTRE ESTRALLAS  Y  DESRGAS */
}

.rating-block strong {
    font-size: 1.0rem;
    color: #333;
}

.rating-block i {
    color: #f5c518;
    /* amarillo estilo IMDb */
    font-size: 0.65rem;
    margin-left: 4px;
}

.rating-block small {
    font-size: 0.70rem;
    color: #777;
    margin-top: 4px;
}

.rating-block img {
    max-width: 50px;
    height: auto;
    margin-bottom: 5px;
}


/* Nota de anuncio */
.ads-note {
    font-size: 12px;
    color: #5F6368;
    margin-top: 4px;
}


.btn-custom {
    color: #01875F;
    font-weight: 500;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
    font-size: 15px;
    padding: 8px 12px;
    transition: background-color 0.2s, box-shadow 0.2s;
    margin-top: 15px;
}
 /*  BOTON COMPARTIR Y  ADD    */
.btn-custom:hover {
    margin-left: -15px;
    background-color: rgba(1, 135, 95, 0.08);
    box-shadow: 0 1px 3px rgba(1, 135, 95, 0.06);
    border-radius: 12px;
}

.d-flex.align-items-center a.btn-custom:last-child {
    margin-left: 2px !important;
}

/*  PORTE DE LOS BOTONOS  COMPARTIR Y ADD   */
.btn-custom svg {
    width: 20px;
    height: 20px;
    fill: #01875f;
}

@media (max-width: 839px) {
    .btn-custom {
        font-size: 15px;
        gap: 10px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 12px;
        padding-bottom: 4px;
    }

    .btn-custom span {
        display: inline;
        margin-left: 6px;
        white-space: nowrap;
        margin-top: 4px;
    }

    /* Forzar que ciertos flex no hagan wrap y centrar */
    .d-flex.align-items-center.gap-2.mt-3.flex-wrap {
        flex-wrap: nowrap !important;
        justify-content: center !important;
    }
}


/* Botones de dispositivo: Teléfono, TV, etc */
.device-btn {
    border: 1px solid rgba(60, 64, 67, 0.15);
    border-radius: 9999px;
    background-color: white;
    color: rgba(60, 64, 67, 0.75);
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 13.2px;
    padding: 6px 16px;
    margin-right: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: none;
}

.device-btn i.material-icons {
    font-size: 14px;
    color: inherit;
}

.device-btn i {
    font-size: 15px;
}

.device-btn span {
    color: inherit;
    line-height: 1;
}

.device-btn.active {
    background-color: #e9f5ef;
    color: #01875F;
    font-weight: 500;
    box-shadow: inset 0 0 0 1px #01875F20;
}



/* Íconos de Google Material */
.google-material-icons {
    font-family: 'Material Icons' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}


/* Botones que no deben tener acción */
.btn {
    cursor: pointer;
}

.btn[onclick="return false;"] {
    pointer-events: none;
}

.btn[onclick="return false;"]:hover {
    background-color: rgba(1, 135, 95, 0.1);
}

.btn[onclick="return false;"]:active {
    background-color: rgba(1, 135, 95, 0.3);
}

/* Botones de dispositivo ajustados para móvil */
   @media (max-width: 839px) {
       .solo-pc {
           margin-top: -75px;
           position: relative;
           z-index: 100;
           display: flex;
           padding-right: 30px;
       }

       .device-btn {
           position: relative;
           z-index: 99;
       }

       .solo-pc::after {
           content: "";
           flex: 0 0 20px;
           background: linear-gradient(to right, transparent, white);
       }
   }


 /* Texto personalizado de bienvenida para PC */
.custom-welcome {
    font-size: 60px;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-weight: 600;
    margin-top: 0;
    padding-top: 6px;
    color: #222;
    justify-content: flex-start;
    text-align: left;
    margin-right: 10px;
}


     /*LOGO HOME   ESTILOS PARA MÓVILES */

@media (max-width: 839px) {

    /* Ajustes icon-wrapper para móvil */
    .icon-wrapper {
        position: relative;
        align-items: flex-start;
        top: 15px;
        left: 0;  /* Ajustado: quitar desplazamiento a la izquierda */
        width: 70px;
        height: 70px;
        border-radius: 15px;
        font-size: 40px;
        margin-left: 20px; /* Corre el ícono un poco a la derecha */
        margin-right: 12px;
        order: 0;
        flex-shrink: 0;
        padding: 0;
    }

    .developer-icon {
        width: 100%;
        height: 100%;
        border-radius: 15px;
        object-fit: cover;
    }

    /* Ajustes layout main */
    .main-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
        padding-left: 0;
        margin-left: 0;
    }


    /* Texto personalizado de bienvenida para móviles */
    .custom-welcome {
        font-size: 25px !important;
        font-family: "Google Sans", Roboto, Arial, sans-serif;
        font-weight: 1000 !important;
        text-align: center;
        padding-top: -50;
        margin-top: -50 !important;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Nota de slogan */
.slo-note {
    font-size: 15px;
    color: #5F6368;
    margin-top: 4px;
}

@media (max-width: 839px) {
    
    /* Nota de slogan */
.slo-note {
    font-size: 15px;
    text-align: center;
    color: #5F6368;
    margin-top: 4px;
}


