/* ===== Reset y Base ===== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #0e0e0e;
  color: #e0e0e0;
}

/* ===== Top Bar ===== */
.top-bar {
  background-color: #1a1717;
  color: #d0cfc9;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  padding: 5px 15px;
}

.top-info,
.top-social {
  display: flex;
  gap: 15px;
  align-items: center;
}

.top-icon {
  height: 1em;
  margin-right: 5px;
}

/* ===== Header / Logo / Navegación ===== */
header {
  background-color: #030202;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #2a2a2a;
}

.logo img {
  height: 200px;
  width: auto;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .logo img { height: 120px; }
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #e0e0e0;
  font-weight: bold;
  font-family: 'Playfair Display', serif;
  padding-bottom: 4px;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #8c7a5d;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ===== Botones ===== */
.btn-flores,
.btn-contacto,
.btn-general {
  background-color: #2e2e2e;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-flores:hover,
.btn-contacto:hover,
.btn-general:hover {
  background-color: #444444;
  transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.hero-container img.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: fadeInOut 25s linear infinite both;
}

.hero-container img.hero-img:nth-of-type(1){animation-delay:0s}
.hero-container img.hero-img:nth-of-type(2){animation-delay:5s}
.hero-container img.hero-img:nth-of-type(3){animation-delay:10s}
.hero-container img.hero-img:nth-of-type(4){animation-delay:15s}
.hero-container img.hero-img:nth-of-type(5){animation-delay:20s}

@keyframes fadeInOut {
  0%,100%{opacity:0}
  4%,16%{opacity:1}
  20%{opacity:0}
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50px;
  transform: translateY(-70%);
  color: #fff;
  text-shadow: 0 0 10px rgba(0,0,0,.7);
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
}

.divider {
  font-size: 2rem;
  color: #8c7a5d;
}

.hero-content p {
  max-width: 500px;
  font-size: .9rem;
  color: #dcdcdc;
}

/* ===== Texto centrado ===== */
.hero-text-centered {
  max-width: 800px;
  margin: 50px auto;
  text-align: center;
  font-family: 'Playfair Display', serif;
}

/* ===== Productos ===== */
.productos-memoriales {
  padding: 40px 20px;
  text-align: center;
}

.lista-productos {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 20px;
  max-width: 1000px;
}

/* ===== Footer ===== */
footer {
  background: #111;
  padding: 30px 15px;
  border-top: 1px solid #2a2a2a;
  text-align: center;
}

.footer-logo img {
  height: 80px;
  opacity: .85;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* =====================================================
   ✅ WHATSAPP FLOTANTE – FIX DEFINITIVO (NO SE CORTA)
   ===================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 72px;
  height: 72px;
  z-index: 9999;
}

.whatsapp-float a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,.4);
}

.whatsapp-float img {
  width: 70%;
  height: 70%;
  object-fit: contain;   /* 🔥 CLAVE: NO CORTA */
  display: block;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    gap: 15px;
  }

  nav {
    flex-direction: column;
  }

  .hero-container {
    height: 70vh;
  }

  .hero-content {
    left: 0;
    padding: 20px;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
  }

  .whatsapp-float {
    width: 60px;
    height: 60px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float img {
    width: 52%;
    height: 52%;
	object-fit: contain;
  }
}