/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  text-align: center;
  padding: 20px 0;
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.back-link {
  display: inline-block;
  margin-bottom: 10px;
  color: #ddd;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: white;
}

.model-name {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Carrusel */
.carousel-section {
  margin: 30px 0;
}

.container1 {
  text-align: center;
}

.carousel-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 400px;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-image {
  min-width: 100%;
  height: 100%;
 
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
}


.carousel-image.active {
  opacity: 1;
  position: relative;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Secciones de información */
.info-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
}

.price-box {
  flex: 1 1 300px;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-top: 5px solid #233367;
}

.price-box p {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.price-box strong {
  color: #2c3e50;
}

.technical-specs {
  flex: 2 1 500px;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.technical-specs h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #233367;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.technical-specs ul {
  list-style: none;
}

.technical-specs li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  flex-wrap: wrap;
}

.technical-specs li span {
  font-weight: 700;
  min-width: 120px;
  color: #2980b9;
}

/* Condiciones de entrega */
.delivery-conditions,
.rooms-and-measurement {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 30px 0;
}

.delivery-conditions h2,
.rooms-and-measurement h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #233367;
  border-bottom: 2px solid #27ae60;
  padding-bottom: 10px;
}

.delivery-conditions p {
  margin-bottom: 10px;
  color: #555;
}

.rooms-and-measurement ul {
  list-style: none;
}

.rooms-and-measurement li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  flex-wrap: wrap;
}

.rooms-and-measurement li span {
  font-weight: 700;
  min-width: 150px;
  color: #27ae60;
}

/* Footer */
.contact-info img {
  max-width: 100px;
  margin-bottom: 15px;
}

.contact-info {
  background: linear-gradient(135deg, #1a2530, #2c3e50);
  color: white;
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #fff;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.3s;
}

.social-links img:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .header {
    padding: 15px;
  }

  .model-name {
    font-size: 2rem;
  }

  .carousel-section h2 {
    font-size: 1.5rem;
  }

  .carousel-container {
    margin: 0 10px;
  }
  

  .carousel-track {
    height: 300px;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .prev,
  .next {
    left: 5px;
    right: 5px;
  }

  .info-section {
    flex-direction: column;
  }

  .price-box,
  .technical-specs {
    flex: 1 1 100%;
  }

  .delivery-conditions,
  .rooms-and-measurement {
    padding: 20px;
  }

  .contact-info {
    padding: 20px;
  }

  .contact-info h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .model-name {
    font-size: 1.7rem;
  }

 

  .carousel-section h2 {
    font-size: 1.3rem;
  }

  .carousel-track {
    height: 250px;
  }

  .price-box p,
  .technical-specs li,
  .rooms-and-measurement li {
    font-size: 0.95rem;
  }

  .contact-info p {
    font-size: 0.95rem;
  }
}