@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  align-items: center;
  text-align: center;
}
.header{
   background-color: #FF4000;
  color:white;
  width: 100%;
  font-size: 4vw;

}
body{
    margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Tahoma', Geneva, Verdana, sans-serif;

}
/* TESLATRONICO'S LOGO */
.logo{
  width: 7vw;
  height: 7vw;
}
/* RAINBOW TITLE "TRONICO" */
.rainbow {
  background: linear-gradient(60deg, red, orange, yellow, green, blue, indigo, violet, red);
  background-size: 60% 99%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowAnimation 0.5s linear infinite; /* cambio rápido */
  font-size: 6vw;

}
.rainbowWhite{
  background-size: 60% 100%;
  font-size: 6vw;
}

/* PRODUCT SECTION */
.container_product{
  overflow: hidden;
border: 2px solid orangered;
text-align: center;
}
a{
text-decoration: none;
color:black;
}
.title_product{
  /*START ANIMATION */
  transform: scale(0.95);
  opacity: 0;

  animation: scaleUp 0.8s forwards;
  animation: fadeIn 2s forwards;
 /* END ANIMATION */

 font-family: 'Montserrat', sans-serif;
  font-weight: 700;        /* negrita para destacar */
  font-size: 3.5rem;       /* tamaño grande para resaltar */
  color: #222222;          /* color oscuro y elegante */
  text-transform: uppercase; /* opcional: mayúsculas */
  letter-spacing: 2px;      /* espaciado entre letras para mayor impacto */
  text-align: center;       /* centrado */
  margin: 10px 0;
  transition: transform 0.3s ease, color 0.3s ease; /* efecto al hover */
}

.img_product{
    width: 400px;
    height: 400px;
    float:left;
}
.descripcion{
    float:center;
    font-family: 'Open Sans', sans-serif; 
    font-weight: 400;
    font-size: 1.1rem;

}
.current_price{
  color: green;
  font-size: 4rem;
  display: inline-block; 
  animation: crecer 0.5s ease-in-out infinite;

}

.last_price{
  color: red;
  margin-right: 25px;
  font-size: 4rem;
  display: inline-block; 
  animation: decrecer 5s ease-in-out infinite;
}

.texto-saltar span {
  display: inline-block;
  animation: saltar 0.5s ease-in-out infinite;
  text-align: center;
}

/* ANIMATION JUMPING STARS OF PRODUCTS */
@keyframes saltar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); } /* altura del salto */
}

/* FOOTER    */
.footer {
  background-color: #111;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1 1 250px;
  margin: 10px;
}

.footer-section h3, .footer-section h4 {
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #27ae60; /* verde Teslatrónico */
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #444;
  padding-top: 15px;
  font-size: 0.9rem;
}

/* -------------------- MEDIA QUERYS ---------------------------- /*


/* MEDIAQUERYS PARA MOVILES GRANDES */
@media (max-width: 800px) {
  logo{
  width: 15vw;
  height: 15vw;
}
/* RAINBOW TITLE "TRONICO" */
.rainbow {
  font-size: 9vw;

}
.rainbowWhite{
  font-size: 9vw;
}
}




/* ANIMATION RAINBOW TITLE "TRONICO" */ 
@keyframes rainbowAnimation {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}

/* ANIMATION INCREASE SIZE PRICE */
@keyframes crecer {
  0% {
    transform: scale(1); /* Tamaño original */
  }
  50% {
    transform: scale(1.4); /* Un poquito más grande */
     color: darkgreen;


  }
  100% {
    transform: scale(1); /* Vuelve al tamaño original */
    color: green;
  }
}

/* ANIMATION DECREASE SIZE PRICE */
@keyframes decrecer {
  0% {
    transform: scale(1); /* Tamaño original */
  }
  50% {
    transform: scale(0.6); /* Un poquito más grande */
     color: darkred;
  }
  100% {
    transform: scale(1); /* Vuelve al tamaño original */
    color: red;
  }
}
@keyframes scaleUp {
  to {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes fadeIn {
  to { opacity: 1; }
}