﻿/* ============================================================
   styles.css — AMI Florería  (solo modo claro)
   Paleta: blanco · crema · rosa floral
   ============================================================ */

/* ── Variables de marca ─────────────────────────────────── */
:root {
  --primary:      #E05B7F;
  --primary-dark: #C04868;
  --primary-soft: #FAE8EF;
  --bg:           #FFFFFF;
  --bg-cream:     #FAF5F0;
  --bg-rose:      #FDF0F4;
  --text:         #1A1A1A;
  --text-muted:   #777777;
  --text-light:   #AAAAAA;
  --border:       #EDEDED;
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.09);
  --shadow-rose:  0 12px 40px rgba(224, 91, 127, 0.18);
}

/* ── Reset / base ───────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

/* ── Hero split ──────────────────────────────────────────── */
#hero { min-height: 100svh; }

.hero-content-panel { background: var(--bg-rose); }

.hero-image-panel {
  position: relative;
  overflow: hidden;
  min-height: 65vw;
}
@media (min-width: 1024px) { .hero-image-panel { min-height: 0; } }

.hero-bg { animation: ken-burns 22s ease-in-out infinite alternate; }
@keyframes ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge    { animation: fade-up 0.5s ease both; animation-delay: 0.2s; }
.hero-headline { animation: fade-up 0.6s ease both; animation-delay: 0.38s; }
.hero-sub      { animation: fade-up 0.6s ease both; animation-delay: 0.55s; }
.hero-ctas     { animation: fade-up 0.6s ease both; animation-delay: 0.7s; }
.hero-stats    { animation: fade-up 0.6s ease both; animation-delay: 0.85s; }

@keyframes scroll-drop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { opacity: 0.5; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}
.hero-scroll-line { animation: scroll-drop 2.2s ease-in-out infinite; }

/* ── WhatsApp flotante ───────────────────────────────────── */
#whatsapp-float { animation: pulse-green 3s infinite; }
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
}

/* ── Tab buttons ─────────────────────────────────────────── */
.tab-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Product card ────────────────────────────────────────── */
.product-card {
  border-radius: 1.125rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}
.product-card:hover { box-shadow: var(--shadow-rose); transform: translateY(-5px); }
.product-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-cream); }
.product-card-body { padding: 1.375rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 { color: var(--text); margin-bottom: 0.375rem; }
.product-card-body p { color: var(--text-muted); }

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 9999px;
  padding: 0.45rem 1.1rem;
  text-decoration: none;
  width: fit-content;
  transition: background 0.2s, color 0.2s;
}
.product-cta:hover { background: var(--primary); color: #fff; }

.tab-panel { animation: fade-up 0.35s ease both; }

/* ── Servicios ───────────────────────────────────────────── */
.service-card-featured {
  background: var(--primary);
  color: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.service-card-featured .service-icon { color: rgba(255,255,255,0.9); }
.service-card-featured p { color: rgba(255,255,255,0.82); }

.service-card {
  background: var(--bg);
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}
.service-card p { color: var(--text-muted); }
.service-card:hover, .service-card-featured:hover { box-shadow: var(--shadow-rose); transform: translateY(-4px); }
.service-card .service-icon { color: var(--primary); }

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  opacity: 0.85;
  transition: opacity 0.2s, gap 0.2s;
}
.service-cta:hover { opacity: 1; gap: 0.75rem; }

.trust-item { display: flex; flex-direction: column; align-items: center; }

/* ── Testimonios ─────────────────────────────────────────── */
.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.carousel-arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.testimonial-card {
  flex: 0 0 min(100%, 420px);
  background: var(--bg);
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-stars { color: var(--primary); font-size: 0.9rem; letter-spacing: 0.08em; }
.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-style: italic; font-weight: 400; line-height: 1.75;
  color: var(--text); margin: 0; flex: 1;
}
.testimonial-footer {
  display: flex; align-items: center; gap: 0.75rem;
  padding-top: 0.75rem; border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600; flex-shrink: 0;
}
.testimonial-name { font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 600; color: var(--text); margin: 0; }
.testimonial-location { font-family: 'Inter', sans-serif; font-size: 0.75rem; color: var(--text-muted); margin: 0; }

.carousel-dot {
  height: 0.5rem; width: 0.5rem; border-radius: 9999px;
  border: none; background: var(--border);
  cursor: pointer; transition: background 0.25s, width 0.25s; padding: 0;
}
.carousel-dot.active { background: var(--primary); width: 1.5rem; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item {
  border-radius: 0.875rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.faq-item.open { box-shadow: var(--shadow-rose); border-color: rgba(224,91,127,0.35); }

.faq-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.375rem 1.5rem;
  background: transparent; border: none; cursor: pointer;
  text-align: left; font-family: 'Inter', sans-serif;
  font-size: 0.9375rem; font-weight: 500; color: var(--text);
  transition: color 0.2s;
}
.faq-trigger:hover, .faq-item.open .faq-trigger { color: var(--primary); }
.faq-item.open .faq-icon svg { transform: rotate(45deg); }
.faq-icon { flex-shrink: 0; color: var(--primary); }

.faq-body { display: none; }
.faq-item.open .faq-body { display: block; }
.faq-answer {
  font-family: 'Inter', sans-serif; font-size: 0.9rem; line-height: 1.75;
  color: var(--text-muted); padding: 0 1.5rem 1.375rem; margin: 0;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer-social-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Inter', sans-serif; font-size: 0.8125rem;
  color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s;
}
.footer-social-link:hover { color: #fff; }

.footer-nav-link {
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s;
}
.footer-nav-link:hover { color: rgba(255,255,255,0.9); }
