/*
    Theme Name: Landing ofertas yuhmak
    Theme URI: 
    Author: ismael isa
    Author URI: ismael.isa02@gmail.com
    Description: Theme Diseñado para la landing de ofertas yuhmak
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: motos, ofertas, flexbox, css grid, mobile first
    Text Domain: landingofertasmotos
*/
@import url('https://fonts.googleapis.com/css2?family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

html {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
}

.header-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 10px 20px;
    background-color: #00a541;
    height: 3rem;
}

.spacer-left {
    width: 50px;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu {
    display: flex;
    align-items: center;
}

.btn-menu-hamburguesa{
  background-color: #00a541;
  border: none;
  cursor: pointer;
  svg{
    width: 3rem;
  }
}

/* ESTO ES EL OFFCANVAS*/
.sidebar-container {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background-color: #f3f3f3;
    color: black;
    padding: 1rem 1rem 1rem 1rem;
    transition: left 0.3s ease;
    z-index: 9999;
    box-sizing: border-box;
    overflow-y: auto;

    a{
      text-decoration: none;
      color: black;
    }
}

.sidebar-container.active {
    left: 0;
}

.sidebar-container ul {
    list-style: none;
    padding: 0;
}

.sidebar-container li {
    padding: 10px 0;
    border-bottom: 1px solid #555;
    margin: .5rem;
    img{
      margin: .5rem;
      width: 2.5rem;
      transform: translateY(1rem);
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: black;
    background: none;
    border: none;
    cursor: pointer;
}

.title-sidebar{
  margin-top: 2rem;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
}
/**/


.home-banner {
  position: relative;
  width: 100%;
  background-color: #00a541;
}

.banner-img img {
  width: 100%;
  height: auto;
  display: block;
}

.form-overlay {
  padding: 1.3rem;
  color: white;
  position: absolute;
  top: 50%;
  right: 1%;
  transform: translateY(-50%);
  backdrop-filter: blur(30px);
  border-radius: 8px;
  width: 20rem;
  max-width: 90vw;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

  .form-title {
    font-weight: 600;
    margin: .5rem;
    font-size: 1.1rem;
    text-align: center;
  }

  .container-inputs {
    display: flex;
    flex-direction: column;

    input {
      width: 100%;
      height: 1.5rem;
      margin: .2rem;
      font-weight: 600;
    }

    select {
      width: 102%;
      height: 2rem;
      margin: .2rem;
      background-color: white;
      border: none;
      font-weight: 500;
    }

    .btn-asesoramiento-form {
      color: white;
      width: 100%;
      background-color: #002a50;
      border: none;
      border-radius: 50px;
      cursor: pointer;
      font-size: 1rem;
      font-weight: 600;
      padding: .7rem;
      margin-top: .5rem;
    }

  }
}

.input-name-last-name {
  display: flex;
  gap: 1rem;
}

/* section banner y form en mobile */
@media (max-width: 768px) {
  .form-overlay {
    position: static;
    transform: none;
    max-width: 100vw;
    box-shadow: none;
    background-color: #fff;
    background-color: #00a541;
  }

  .home-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}



/* FILTROS */
.filtros-container {
  display: flex;
  justify-content: center;
  gap: 5rem;
  margin: 1rem;

  form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
}

.filtro-bloque label {
  font-weight: 600;
}

.filtro-bloque select {
  color: white;
  border: none;
  padding: .3rem;
  border-radius: .3rem;
  font-weight: 600;
  background-color: #00a541;
  width: 7rem;
}

@media (max-width: 768px) {
  .filtros-container {
    flex-direction: column;
    gap: 1rem;
  }
}

/*POST-LIST*/
.post-list {
  display: flex;
  justify-content: center;

  ul {
    display: grid;
    padding: 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

}

.post-list ul li {
  padding: 0;
  list-style: none;
}

@media (max-width: 768px) {
  .post-list ul {
    grid-template-columns: 1fr !important;
    justify-items: center;
  }

  .post-list ul {
    width: 100%;
    box-sizing: border-box;
  }
}

/*CARD-MOTOS*/
.card-motos {
  position: relative;
  background: white;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 450px;
  border-radius: 10px;
}

.header-card {
  border-radius: 10px 10px 0px 0px;
  background-image: linear-gradient(to right top, #00a541 37%, #0567c0 142%);
  color: white;
  padding: 1px;
  margin-bottom: .5rem;
}

/* Marca (izquierda superior) */
.logo-marca {
  position: absolute;
  left: 15px;
  width: 6rem;
}

/* Cucarda (derecha superior) */
.cucarda {
  position: absolute;
  right: 15px;
  width: 6rem;
}

.logo-marca img,
.cucarda img {
  width: 100%;
  height: auto;
}

/* Imagen principal de la moto */
.img-card-moto img {
  width: 350px;
  height: auto;
}

.img-regalo {
  position: absolute;
  margin: 2.5rem 0 0 .5rem;
  animation: mover 6s infinite 0s ease-in-out;
}

@keyframes mover {
  0% {
    transform: rotate(0deg);
    width: 65px;
    height: 65px;
  }

  4% {
    transform: rotate(30deg);
    width: 75PX;
    height: 75PX;
  }

  9% {
    transform: rotate(-30deg);
    width: 75PX;
    height: 75PX;
  }

  14% {
    transform: rotate(0deg);
    width: 75PX;
    height: 75PX;
  }

  17% {
    transform: rotate(0deg);
    width: 65px;
    height: 65px;
  }

  100% {
    transform: rotate(0deg);
    width: 65px;
    height: 65px;
  }
}

.img-regalo img {
  width: 4rem;
}

.texto-oferta {
  color: red;
  font-weight: 600;
  font-size: 1.5rem;
  margin: .3rem;
}

.monto {
  color: #00a541;
  font-weight: 600;
  font-size: 2rem;
  margin: .3rem;
}

.btn-asesoramiento {
  color: white;
  background-color: #002a50;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: .7rem;
  width: 80%;
  margin-top: .5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .card-motos {
    transform: scale(0.9);
    margin-top: -1rem;
    margin-bottom: -1rem;
    width: 25rem;
  }
}


.footer-container {
  text-align: center;
  background-color: #00a541;
  color: white;
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: auto;
  font-weight: 500;

  ul li {
    list-style: none;
    margin: .4rem;
  }
}

.lista-redes-sociales {
  padding-top: 2rem;
  margin-left: -1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lista-redes-sociales svg {
  width: 3rem;
  display: inline-block;
}

/* INCIO DE ANIMACION HOVER */
.lista-redes-sociales li a svg {
  transition: fill 0.3s ease;
  fill: #ffffff;
}

.icon-facebook:hover svg {
  fill: #1877f2;
}

.icon-youtube:hover svg {
  fill: #ff0000;
}

.icon-instagram:hover svg {
  fill: #e1306c;
}

.icon-linkedin:hover svg {
  fill: #0077b5;
}

/* FIN DE ANIMACION HOVER */
.logo-footer svg {
  width: 9rem;
}

.derechos-footer {
  padding: 1.5rem;
}

.info-footer {
  padding: 1.5rem;

  a {
    color: white;
    text-decoration: none;
  }
  ul{
    margin-left: -2rem;
  }
}

@media (max-width: 768px) {
  .footer-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
  }
  .redes-sociales-footer{
    margin: 0;
    padding: 0;
    text-align: center;
  }
  .derechos-footer{
    margin: 0;
    padding: 0;
    text-align: center;
  }
  .info-footer{
    margin: 0;
    padding: 0;
    text-align: center;
  }
}

.footer-banner {
  background-color: black;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .footer-banner img {
    width: 95%;
  }
}

/* TABLETS */
@media (min-width: 769px) and (max-width: 1024px) {}

/*ESTILOS PARA MODAL DEL FORM*/
.modal-asesoramiento {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-asesoramiento.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* - - - */
.modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  .form-title{
    text-align: center;
    font-weight: 600;
    margin: .5rem;
    font-size: 1.1rem;;
  }

  .input-info-container {
    display: flex;
    flex-direction: column;
    margin: .5rem;
  }

  .input-name-last-name {
    margin: .5rem;
    gap: 1rem;
  }

  .btn-asesoramiento-form {
    color: white;
    width: 100%;
    background-color: #002a50;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: .7rem;
    margin-top: .5rem;
  }

  input {
    width: 100%;
    height: 1.5rem;
    margin: .2rem;
    font-weight: 600;
  }

  select {
    width: 102%;
    height: 2rem;
    margin: .2rem;
    background-color: white;
    border: 1px solid grey;
    font-weight: 500;
  }
}

.seccion-registrado {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f0f4f8, #ffffff);
    text-align: center;
}

.contenido-registrado h1 {
    font-size: 1.8rem;
    max-width: 800px;
    line-height: 1.5;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 600;
}

.btn-registrado-back {
    margin-top: 1rem;
}

.MiBotonLoco {
    background-color: #00a541;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.MiBotonLoco:hover {
    background-color: #00943b;
    transform: scale(1.05);
}

.site-footer-yuhmak {
    background-color: #00a541;
    color: #333;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    border-top: 1px solid #ddd;
}

.footer-container-texto {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.footer-container-texto p {
    margin: 0;
    font-weight: 400;
    color: #444;
}

.site-footer-yuhmak a {
    color: #cc0000;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .site-footer-yuhmak {
        font-size: 0.85rem;
        padding: 1.5rem 1rem;
    }

    .footer-container-texto {
        padding: 0;
    }
}
