/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fdfdfc;
  color: #333;
  line-height: 1.6;
}

/* ===================== HEADER ===================== */
header {
  background-color: #fff;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 55px;
  width: auto;
}

/* ===================== NAV ===================== */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #c59fcf;
}

/* ===================== HAMBURGER ===================== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: #444;
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===================== HERO ===================== */
.hero {
  padding: 80px 40px;
  text-align: center;
  background-color: #f7f4f9;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #5a4b6f;
}

.hero p {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 30px;
}

/* ===================== ABOUT ===================== */
.about-hero {
  padding: 90px 40px;
  background-color: #f7f4f9;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* 🔹 imagen debajo */
  align-items: center;
  text-align: center;
  gap: 40px;
}

.about-text h1 {
  font-size: 2.4rem;
  color: #5a4b6f;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Imagen About */
.team-photo {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  padding: 6px;
  background-color: #f1eaf6;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);

  /* Animación entrada */
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: all 0.9s ease;
}

.team-photo.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.team-photo:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
}

/* ===================== SERVICES ===================== */
.services-section {
  padding: 80px 40px;
  background-color: #f7f4f9;
  text-align: center;
}

.services-section h2 {
  font-size: 2.2rem;
  color: #5a4b6f;
  margin-bottom: 10px;
}

.services-intro {
  max-width: 700px;
  margin: 0 auto 60px;
  color: #555;
  font-size: 1.1rem;
}

/* Cada servicio */
.service-item {
  max-width: 900px;
  margin: 0 auto 80px;
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column; /* 🔹 imagen siempre debajo */
  align-items: center;
  text-align: center;

  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.service-item.show {
  opacity: 1;
  transform: translateY(0);
}

.service-content h3 {
  color: #5a4b6f;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.service-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto 25px;
}

.service-item img {
  width: 50%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-item img:hover {
  transform: scale(1.03);
}

/* ===================== CONTACTO ===================== */
.contact-section {
  padding: 60px 40px;
  text-align: center;
  background-color: #fdfdfc;
}

.contact-section h2 {
  color: #5a4b6f;
  margin-bottom: 10px;
}

.contact-section p {
  color: #555;
  margin-bottom: 10px;
}

.btn-whatsapp {
  display: inline-block;
  background-color: #c59fcf;
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  margin: 25px 0;
  transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #a88bb3;
}

.btn-ventas {
  display: inline-block;
  background-color: #c59fcf;
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  margin: 15px 0 35px 0;
  transition: background-color 0.3s ease;
}

.btn-ventas:hover {
  background-color: #a88bb3;
}

/* Formulario */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.btn-enviar {
  background-color: #c59fcf;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
}

.btn-enviar:hover {
  background-color: #a88bb3;
}

#form-status {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #5a4b6f;
}

/* ===================== FOOTER ===================== */
footer {
  text-align: center;
  padding: 30px 20px;
  background-color: #fff;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #999;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  nav ul {
    position: absolute;
    top: 80px;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    gap: 15px;
    border-left: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}


/* PRODUCTOS / VENTAS */
.product-item {
  max-width: 420px;
  margin: 0 auto 70px;
  text-align: center;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  aspect-ratio: 4/3;
  background-color: #f1eaf6;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
  
}

.carousel-track img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

/* Botones carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.3em 0.6em;
  cursor: pointer;
  z-index: 5;
}

.carousel-btn:hover {
  background-color: #fff;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Info producto */
.product-info {
  margin-top: 18px;
}

.product-info h3 {
  color: #5a4b6f;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* Etiquetas */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
}

.badge.venta {
  background-color: #c59fcf;
  color: #fff;
}

.badge.alquiler {
  background-color: #a88bb3;
  color: #fff;
}

.badge.ambos {
  background-color: #5a4b6f;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .product-item {
    max-width: 90%;
  }
}
.carousel-track {
  will-change: transform;
}

/* Precios producto */
.product-prices {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.price {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  color: #574a6c;
}

.price-nota {
  width: 100%;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  font-style: italic;

}

/* ===== HERO CAROUSEL FADE ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 800px;        
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}

/* Proporción del carrusel */
.hero-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;     /* ⬅ evita formato panorámico */
}

/* Imágenes */
.hero-carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; 
  background-color: #a88bb3;  
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

/* Imagen activa */
.hero-carousel-track img.active {
  opacity: 1;
}

/* Overlay oscuro */
.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
  border-radius: 24px;
}

/* Capas */
.hero-carousel-track img {
  z-index: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-carousel-track {
    aspect-ratio: 4 / 3; 
  }
}

/* Carrusel dentro de servicios */
.service-carousel {
  width: 100%;
  max-width: 420px;
  margin-bottom: 25px;
}

/* Ajuste visual para servicios */
.service-item .carousel {
  aspect-ratio: 4 / 3;
}

/* ===== ANIMACION CORAZO ABOUTUS ===== */

/* Capa inicial */
#intro-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

/* Corazón */
.heart {
  width: 100px;
  height: 90px;
  position: relative;
  background: #594b6e;
  transform: rotate(-45deg);
  animation: heartbeat 1s ease-in-out infinite;
}

.heart::before,
.heart::after {
  content: "";
  width: 100px;
  height: 90px;
  position: absolute;
  background: #594b6e;
  border-radius: 50%;
}

.heart::before {
  top: -50px;
  left: 0;
}

.heart::after {
  left: 50px;
  top: 0;
}

/* Latido */
@keyframes heartbeat {
  0% { transform: rotate(-45deg) scale(1); }
  25% { transform: rotate(-45deg) scale(1.1); }
  50% { transform: rotate(-45deg) scale(1); }
  75% { transform: rotate(-45deg) scale(1.1); }
  100% { transform: rotate(-45deg) scale(1); }
}

/* Expansión final */
.expand {
  animation: expandHeart 2.5s forwards;
}

@keyframes expandHeart {
  to {
    transform: rotate(-45deg) scale(15);
    opacity: 0.75;
    filter: blur(50px);
  }
}

/* ===================== REVIEWS ===================== */
.reviews-section {
  padding: 80px 40px;
  background-color: #f7f4f9;
  text-align: center;
}

.reviews-section h2 {
  font-size: 2.2rem;
  color: #5a4b6f;
  margin-bottom: 15px;
}

.reviews-intro {
  max-width: 650px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: #555;
}

.reviews-widget {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 30px;
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}