:root {
  --primary: #6b8f71;
  --light: #f4f7f5;
  --dark: #2f3e34;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* ================= HEADER ================= */
.header {
  background: white;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-weight: 600;
}

.nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--dark);
}

.menu-toggle {
  display: none;
  background: none;
  font-size: 24px;
  border: none;
}

/* ================= HERO PREMIUM ================= */
.hero {
  height: 95vh;
  background: url('../assets/hero.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    background: url('../assets/hero-mobile.jpg') center/cover no-repeat;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0.3)
  );
}

.hero-content {
  position: relative;
  color: white;
  max-width: 650px;
  margin-left: 5%;
  z-index: 2;
}

.hero-label {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.8;
}

.hero h1 {
  font-family: 'Playfair Display';
  font-size: 52px;
  margin: 16px 0;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  max-width: 520px;
}

.rotating-text {
  margin-top: 16px;
  font-style: italic;
  opacity: 0.8;
  transition: opacity 0.5s;
}

.hero-actions {
  margin-top: 32px;
}

/* ================= FRASES FLOTANTES ================= */
.tips-floating {
  position: absolute;
  right: 5%;
  bottom: 15%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.tip-card {
  background: white;
  padding: 18px 22px;
  border-radius: 14px;
  max-width: 260px;
  font-size: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  animation: float 4s ease-in-out infinite;
}

.tip-card:nth-child(2) { animation-delay: 1s; }
.tip-card:nth-child(3) { animation-delay: 2s; }

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ================= SECCIONES ================= */
.section {
  padding: 80px 0;
}

.bg-light {
  background: var(--light);
}

.section-title {
  font-family: 'Playfair Display';
  font-size: 36px;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

.services {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: white;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.steps li {
  margin-bottom: 12px;
}

.testimonial {
  max-width: 600px;
  font-style: italic;
}

.testimonial span {
  display: block;
  margin-top: 12px;
  font-weight: 500;
}

/* ================= BOTONES ================= */
.btn-primary {
  background: white;
  color: var(--dark);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
}

/* ================= CTA ================= */
.cta {
  text-align: center;
  background: var(--primary);
  color: white;
}

.cta-note {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.8;
}

/* ================= FOOTER ================= */
.footer {
  background: var(--dark);
  color: white;
  padding: 60px 0;
}

.footer-content {
  display: grid;
  gap: 40px;
  text-align: center;
}

.footer-info {
  opacity: 0.7;
  font-size: 14px;
}

.footer-cta strong {
  font-size: 20px;
  display: block;
  margin-bottom: 8px;
}

.footer-cta span {
  display: block;
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 20px;
}

.footer-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-footer {
  background: white;
  color: var(--dark);
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-social img {
  width: 28px;
  opacity: 0.8;
  transition: 0.3s;
}

.footer-social img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ================= WHATSAPP FLOAT ================= */
.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #25D366;
  color: white;
  padding: 16px;
  border-radius: 50%;
  font-size: 22px;
  text-decoration: none;
}

/* ================= ANIMACIONES ================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= NAV MOBILE ================= */
.nav.active {
  display: flex;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    display: none;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .nav a {
    margin: 16px 0;
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-content {
    margin-left: 0;
    padding: 0 5%;
  }

  .tips-floating {
    display: none;
  }
}

/* Desktop footer layout */
@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    text-align: left;
  }

  .footer-cta {
    text-align: center;
  }

  .footer-social {
    justify-content: flex-end;
  }
}
