@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

    body {
      margin: 0;
      font-size: 18px;
      box-sizing: border-box;
      font-family: "Poppins", sans-serif;
      background-color: #c7eaff;
      overflow-x: hidden;
    }

    html {
      overflow-x: hidden;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    @keyframes slideInLeft {
      from {
        transform: translateX(-100%);
        /* Empieza desde fuera de la pantalla, a la izquierda */
        opacity: 0;
      }

      to {
        transform: translateX(0);
        /* Llega a su posición original */
        opacity: 1;
      }
    }

    @keyframes slideInRight {
      from {
        transform: translateX(100%);
        /* Empieza desde fuera de la pantalla, a la izquierda */
        opacity: 0;
      }

      to {
        transform: translateX(0);
        /* Llega a su posición original */
        opacity: 1;
      }
    }

    header {
      height: auto;
      width: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 5%;
      animation: fadeIn 2s ease-in-out;
    }

    .menu {
      background-color: #004aad;
      border-radius: 20px;
      display: flex;
    }

    .menu a {
      text-decoration: none;
      color: #fff;
    }

    .menu-item {
      padding: 3px 15px;
      margin: 8px;
      position: relative;
      cursor: pointer;
      z-index: 2;
    }

    .menu-item::after {
      content: "";
      position: absolute;
      background-color: #fff;
      height: 100%;
      width: 100%;
      border-radius: 20px;
      top: 100%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: -1;
      opacity: 0;
      transition: top 0.5s, opacity 0.5s;
    }

    .menu-item:hover::after {
      top: 50%;
      opacity: 1;
    }

    .menu-item a:hover {
      color: #000;
    }

    .logo-cabecera {
      height: 150px;
      width: auto;
      margin: 20px 0;
    }

    .social-icon {
      height: auto;
      width: 45px;
      margin: 0 5px;
    }

    .portada {
      display: flex;
      position: relative;
      align-items: center;
      justify-content: center;
      padding: 0 5%;
      margin-bottom: 5%;
      animation: slideInRight 1.9s ease-out;
    }

    .imagen-portada {
      width: 100%;
      height: 500px;
      object-fit: cover;
      object-position: center bottom;
      opacity: 0.8;
    }

    .text-portada {
      position: absolute;
      padding: 20px 60px;
      color: #004aad;
      background-color: #c7eaff;
      opacity: 0.7;
      text-align: center;
    }

    video {
      width: 60%;
      height: auto; 
    }

    .boton-titulo {
      display: inline-block;
      padding: 10px 20px;
      border: 2px solid #e76868;
      border-radius: 50px;
      background-color: transparent;
      color: #e76868;
      margin: 50px 0;
    }

    .sobre-nosotros {
      padding: 0 5%;
      margin-bottom: 5%;
      animation: slideInLeft 1.9s ease-out;
    }

    .datos {
      display: flex;
      /*flex-wrap: wrap;*/
      justify-content: space-between;
    }

    .dato {
      display: inline-block;
      text-align: center;
      width: 400px;
      color: #004aad;
    }

    .dato img {
      width: 150px;
      height: auto;
    }

    .linea-celeste {
      background-color: #e76868;
      height: 5px;
      width: 50px;
      border-radius: 50px;
      margin: auto;
    }

    .nuestros-servicios {
      padding: 0 5%;
      margin-bottom: 5%;
    }

    .productos {
      display: flex;
      flex-wrap: wrap;
      /* los productos pasan a la siguiente línea si no caben en el ancho de la pantalla */
      justify-content: center;
      gap: 20px;
      /* agrega un espacio de 20px entre cada producto */
    }

    .producto {
      position: relative;
      /* permite posicionar elementos hijos de forma absoluta dentro de este contenedor */
      width: 30%;
      height: auto;
    }

    .producto-imagen {
      width: 100%;
      padding-bottom: 50px;
      display: block;
      border-radius: 10px;
    }

    .turno-btn {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      background: #a6a6a6;
      color: #fff;
      padding: 10px 0;
      text-align: center;
      cursor: pointer;
      border-radius: 0 0 10px 10px;
      opacity: 0;
      font-weight: bold;
      transition: opacity 0.3s ease-in-out;
    }

    .saber-mas {
      display: none;
    }

    .checkbox {
      display: none;
    }

    .overlay {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(0, 0, 0, 0.4);
      border-radius: 10px;
      color: #fff;
      padding: 10px;
      font-size: 14px;
      text-align: center;
      width: 80%;
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .producto:hover .turno-btn {
      opacity: 1;
    }

    .producto:hover .overlay {
      opacity: 1;
    }

    .producto:hover .producto-imagen {
      opacity: 0.7;
    }

    .promociones {
      padding: 0 5%;
    }

    .promocion {
      width: 50%;
      height: auto;
    }

    .contactanos {
      padding: 0 5%;
      margin-bottom: 5%;
    }

    .info-contacto {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      justify-content: center;
      margin: auto;
      align-items: center;
    }

    .datos-contacto {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      text-align: center;
    }

    .full-dato-contacto {
      grid-column: span 2;
      background-color: #e76868;
      color: #c7eaff;
      padding: 30px 0;
    }

    .dato-contacto {
      background-color: #e76868;
      color: #c7eaff;
      padding: 30px 0;
    }

    .dato-contacto h4,
    p {
      margin: 5px 0;
    }

    .full-dato-contacto h4,
    p {
      margin: 5px 0;
    }

    .icon-contacto {
      width: 50px;
      height: auto;
    }

    .galeria-casos {
      padding: 0 5%;
      margin-bottom: 20%;
    }

    .carrusel {
      position: relative;
      margin: 0 auto;
      overflow: visible;
      width: 90%;
    }

    .carrusel-contenedor {
      display: flex;
      transition: transform 0.5s ease-in-out;
    }

    .item {
      width: calc(100% / 3);
      flex-shrink: 0;
    }

    .carrusel input {
      display: none;
    }

    /* Estado 1 (slide1): se ve image1, image2, image3 */
    #slide1:checked ~ .carrusel-contenedor {
      transform: translateX(0);
    }

    /* Estado 2 (slide2): se desplaza un 33.333% a la izquierda mostrando image2, image3, image4 */
    #slide2:checked ~ .carrusel-contenedor {
      transform: translateX(-33.333%);
    }

    .flecha {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      display: none;
    }

    .flecha img {
      width: 50px;
    }

    .flecha-izq {
      left: -50px;
    }

    .flecha-der {
      right: -50px;
    }

    /* Muestra las flechas para slide1 */
    #slide1:checked ~ .flecha1 {
      display: block;
    }

    /* Muestra las flechas para slide2 */
    #slide2:checked ~ .flecha2 {
      display: block;
    }

    /* Muestra las flechas para slide3 */
    #slide3:checked ~ .flecha3 {
      display: block;
    }

    /* Muestra las flechas para slide4 */
    #slide4:checked ~ .flecha4 {
      display: block;
    }

    footer {
      background-color: #e76868;
      text-align: center;
      color: #fff;
      padding: 0 5%;
    }

    .boton-titulo-footer {
      display: inline-block;
      padding: 10px 20px;
      border: 2px solid #fff;
      border-radius: 50px;
      background-color: transparent;
      color: #fff;
      margin: 50px 0;
    }

    .marcas-img-compu {
      width: 90%;
      margin-bottom: 30px;
    }

    .marcas-img-celu {
      display: none;
    }

    .social-section {
      border: 2px solid #fff;
      border-radius: 50px;
      display: inline-block;
      padding: 15px;
      margin-bottom: 30px;
    }

    footer p {
      margin: 30px 0;
    }

    .gabi-coder-img {
      width: 150px;
      height: auto;
      margin-bottom: 30px;
    }

    html {
      scroll-behavior: smooth;
    }

    /* Checkbox oculto */
    .chat-toggle {
      display: none;
    }

    /* Estilos del botón flotante */
    .chat-button {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #f27c7c;
      border: 3px solid #fff;
      color: white;
      padding: 10px 20px;
      border-radius: 20px;
      cursor: pointer;
      font-weight: bold;
      display: flex;
      align-items: center;
      animation: slideInRight 1.5s ease-out;
    }

    .chat-button img {
      width: 30px;
      height: auto;
      margin-right: 10px;
    }

    .chat-button:hover {
      background: #e06464;
    }

    /* Contenedor del chat */
    .chat-container {
      position: fixed;
      bottom: 80px;
      right: 20px;
      background: white;
      border-radius: 15px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      display: none;
      flex-direction: column;
      max-width: 350px;
    }

    /* Mostrar chat cuando el checkbox está activo */
    .chat-toggle:checked ~ .chat-container {
      display: flex;
    }

    /* Encabezado del chat */
    .chat-header {
      background: #f27c7c;
      color: white;
      padding: 15px;
      display: flex;
      align-items: center;
      /* Alinear verticalmente */
      gap: 8px;
      /* Espacio entre la imagen y el nombre */
      border-radius: 15px 15px 0 0;
      position: relative;
      /* Necesario para mover la "X" */
    }

    .chat-header h3 {
      margin: 0;
      margin-top: 10px;
    }

    .chat-logo {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      margin-right: 10px;
    }

    .status {
      font-size: 12px;
    }

    /* Botón de cerrar el chat */
    .close-chat {
      position: absolute;
      top: 5px;
      /* Mover más arriba */
      right: 10px;
      /* Ajustar la posición a la derecha */
      background: none;
      border: none;
      color: white;
      font-size: 22px;
      cursor: pointer;
    }

    /* Ocultar chat cuando se cierra */
    .chat-toggle:not(:checked) ~ .chat-container {
      display: none;
    }

    /* Cuerpo del chat */
    .chat-body {
      background: #cbe7ff;
      padding: 25px 15px;
    }

    .chat-message {
      background: white;
      padding: 10px;
      border-radius: 10px;
      font-size: 14px;
    }

    /* Pie del chat */
    .chat-footer {
      display: flex;
      align-items: center;
      padding: 10px;
      background: #ffffff;
      border-radius: 0 0 15px 15px;
      max-width: 100%;
      width: 94%;
    }

    .chat-footer input {
      border: none;
      padding: 10px;
      border-radius: 5px;
      color: gray;
      background: #e0e0e0;
      box-sizing: border-box;
      font-family: "Poppins", sans-serif;
      width: 320px;
    }

    .send-btn {
      background: none;
      border: none;
      font-size: 20px;
      cursor: pointer;
      margin-left: 10px;
      margin-right: 5px;
      box-sizing: border-box;
    }

    @media screen and (max-width: 1400px) {
      html {
        overflow-x: hidden;
      }

      .turno-btn {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60%;
        background: #a6a6a6;
        color: #fff;
        padding: 10px 0;
        text-align: center;
        cursor: pointer;
        border-radius: 0 0 0 10px;
        font-weight: bold;
        border-right: 2px solid #fff;
        opacity: 1;
        font-size: 17px;
      }

      .saber-mas {
        display: flex;
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40%;
        background: #a6a6a6;
        color: #fff;
        padding: 10px 0;
        text-align: center;
        justify-content: center;
        cursor: pointer;
        border-radius: 0 0 10px 0;
        font-weight: bold;
        font-size: 17px;
      }

      .overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.4);
        border-radius: 10px;
        color: #fff;
        padding: 10px;
        font-size: 13px;
        text-align: center;
        width: 80%;
        display: none;
        transition: opacity 0.4s ease;
      }

      .checkbox {
        display: none;
      }

      /* Mostrar el texto cuando el checkbox esté marcado */
      .checkbox:checked + .saber-mas + .overlay {
        display: block;
        opacity: 1;
      }
    }

    @media screen and (max-width: 1200px) {
      body {
        font-size: 17px;
      }

      html {
        overflow-x: hidden;
      }

      header {
        flex-direction: column;
        align-items: center;
        height: auto;
      }

      .menu {
        order: 1;
        margin: 15px 0;
      }

      .social-media {
        order: 2;
        margin: 15px 0;
      }

      .logo-cabecera {
        margin: 10px 0;
        height: 160px;
        width: auto;
      }

      .datos {
        flex-direction: column;
        display: flex;
        align-items: center;
      }

      .dato {
        margin: 20px;
      }

      .producto {
        width: 45%;
      }

      .turno-btn {
        padding: 15px 0;
        font-size: 18px;
      }

      .saber-mas {
        padding: 15px 0;
        font-size: 18px;
      }

      .overlay {
        padding: 15px;
        font-size: 14px;
      }
  
      .promocion {
        width: 100%;
        height: auto;
      }

      video {
        width: 90%;
      }

      .item {
        width: calc(100% / 2);
        flex-shrink: 0;
      }

      #slide2:checked ~ .carrusel-contenedor {
        transform: translateX(-50%);
      }

      #slide3:checked ~ .carrusel-contenedor {
        transform: translateX(-100%);
      }

      .marcas-img-compu {
        display: none;
      }

      .marcas-img-celu {
        display: block;
        width: 90%;
        margin-bottom: 50px;
      }
    }

    @media screen and (max-width: 900px) {
      body {
        font-size: 20px;
      }

      html {
        overflow-x: hidden;
      }

      .portada {
        display: inline-block;
      }

      .imagen-portada {
        width: 100%;
        height: 300px;
        object-fit: cover;
        object-position: center bottom;
        opacity: 0.8;
      }

      .text-portada {
        justify-content: center;
        position: static;
        opacity: 1;
      }

      .productos {
        flex-direction: column;
      }

      .producto {
        width: 100%;
      }

      .overlay {
        padding: 15px;
        font-size: 20px;
      }

      .info-contacto {
        display: flex;
        flex-direction: column;
      }

      .datos-contacto {
        width: 100%;
      }

      video {
        width: 90%;
      }

      .item {
        width: 100%;
        flex-shrink: 0;
      }

      #slide2:checked ~ .carrusel-contenedor {
        transform: translateX(-100%);
      }

      #slide3:checked ~ .carrusel-contenedor {
        transform: translateX(-200%);
      }

      #slide4:checked ~ .carrusel-contenedor {
        transform: translateX(-300%);
      }

      .chat-button {
        font-size: 20px;
      }

      .chat-container {
        max-width: 450px;
        width: 90%;
      }

      .chat-header {
        background: #f27c7c;
        padding: 20px;
        font-size: 20px;
      }

      .chat-header h3 {
        margin: 0;
        margin-top: 10px;
        font-size: 25px;
      }

      .close-chat {
        padding: 20px;
      }

      .status {
        font-size: 20px;
      }

      .chat-message {
        font-size: 20px;
      }

      .chat-footer {
        padding: 10px;

      }

      .chat-footer input {
        font-size: 20px;
        width: 380px;
      }

      .marcas-img-celu {
        width: 100%;
      }
    }

    @media screen and (max-width: 600px) {
      body {
        font-size: 15px;
      }

      html {
        overflow-x: hidden;
      }

      .menu a {
        font-size: 15px;
      }

      .menu-item {
        padding: 3px 5px;
      }

      .dato {
        width: 300px;
      }

      .overlay {
        padding: 10px;
        font-size: 15px;
      }

      .carrusel {
        width: 80%;
      }

      .chat-button {
        font-size: 16px;
      }

      .chat-container {
        max-width: 370px;
        width: 90%;
      }

      .chat-header {
        padding: 20px;
        font-size: 20px;
      }

      .chat-header h3 {
        margin: 0;
        margin-top: 10px;
        font-size: 20px;
      }

      .close-chat {
        padding: 20px;
      }

      .status {
        font-size: 16px;
      }

      .chat-message {
        font-size: 16px;
      }
    
      .chat-footer input {
        font-size: 16px;
        width: 300px;
      }
    
      .chat-footer .send-btn {
        width: 10%;
        border: none;
        padding: 10px;
        border-radius: 10px;
      }
    }

    @media screen and (max-width: 400px) {
      .chat-button {
        font-size: 15px;
      }

      .chat-container {
        max-width: 340px;
        width: 90%;
      }

      .chat-header {
        padding: 20px;
        font-size: 20px;
      }

      .chat-header h3 {
        margin: 0;
        margin-top: 10px;
        font-size: 18px;
      }

      .close-chat {
        padding: 18px;
      }

      .status {
        font-size: 15px;
      }

      .chat-message {
        font-size: 15px;
      }

      .chat-footer {
        flex-wrap: wrap;
        max-width: 100%;
        width: 90%;
      }

      .chat-footer input {
        font-size: 15px;
        width: 270px;
      }

      .social-section {
        padding: 10px;
      }

      .social-icon {
        width: 40px;
        height: auto;
      }
    }