/* ================= VARIABLES ================= */
:root {
  --rosa: #f8e8f8;
  --verde: #3e6b3e;
  --txt: #333;
  --txt-light: #555;
  --whatsapp: #25d366;
}

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

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--txt);
  background: var(--rosa);
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
}

/* ================= FONDO ANIMADO ================= */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(248,232,248,0.4) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(62,107,62,0.1) 0%, transparent 50%);
  z-index: -1;
  animation: floatFlowers 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatFlowers {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-20px, -10px) rotate(1deg); }
  66% { transform: translate(20px, 10px) rotate(-1deg); }
}

/* ================= ACCESIBILIDAD ================= */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--verde);
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ================= LAYOUT ================= */
.container {
  max-width: 900px;
  margin: 0 auto;
}

section {
  padding: 2rem 0;
  margin: 2rem 0;
}

/* ================= HEADER ================= */
header {
  text-align: center;
  background: #fff;
  border-radius: 0 0 20px 20px;
  padding: 3rem 1rem;
  margin: 0 -1rem 2rem -1rem;
  position: relative;
}

header img {
  margin-bottom: 1rem;
  border-radius: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  color: var(--verde);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  margin: 0.5rem 0 1.5rem;
}

/* Onda decorativa en header */
header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(45deg, var(--rosa) 25%, transparent 25%),
              linear-gradient(-45deg, var(--rosa) 25%, transparent 25%);
  background-size: 40px 40px;
  z-index: 1;
}

/* ================= BOTÓN WHATSAPP ================= */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--whatsapp);
  color: #fff;
  padding: 1rem 2rem;
  min-height: 48px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  max-width: 300px;
  margin: 1rem auto;
}

.btn-wa:hover,
.btn-wa:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-wa:active {
  transform: translateY(0);
}

/* Efecto pulso */
.btn-wa::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* ================= TIPOGRAFÍA ================= */
h2 {
  margin: 2rem 0 1rem;
  color: var(--verde);
  text-align: center;
}

h3 {
  color: var(--verde);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

h4 {
  color: var(--verde);
  margin-bottom: 1rem;
}

/* ================= LISTAS ================= */
ol {
  margin-left: 1.5rem;
}

ol li {
  margin: 0.5rem 0;
}

ul {
  list-style: none;
  padding: 0;
}

/* ================= PLANES ================= */
#planes {
  background: #fff;
  padding: 4rem 0;
  border-radius: 12px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.plan-card {
  background: #f8e8f8;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
  will-change: transform;
  animation: fadeInUp 0.8s ease-out backwards;
  animation-delay: calc(var(--index) * 0.1s);
}

.plan-card:hover {
  transform: translateY(-8px);
  will-change: auto;
}

/* Efecto onda al hover */
.plan-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 0;
  pointer-events: none;
}

.plan-card:hover::before {
  width: 300px;
  height: 300px;
}

.plan-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: block;
}

.plan-card h3 {
  position: relative;
  z-index: 1;
}

.plan-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.plan-card ul {
  margin: 0 0 1.5rem 0;
  text-align: left;
  position: relative;
  z-index: 1;
}

.plan-card li {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: var(--txt-light);
}

.plan-card small {
  display: block;
  margin: 1rem 0;
  color: #666;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.plan-card .btn-wa {
  margin-top: 1rem;
  width: 100%;
  max-width: 280px;
  position: relative;
  z-index: 1;
}

/* ================= PLAN BOTÁNICO ================= */
.plan-card.botanico {
  background: linear-gradient(135deg, #f8e8f8 0%, #e8f5e9 100%);
  border: 2px solid var(--verde);
}

/* Borde animado superior */
.plan-card.botanico::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--whatsapp), transparent);
  animation: borderSlide 3s linear infinite;
  z-index: 2;
}

@keyframes borderSlide {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.plan-card.botanico .price {
  color: var(--verde);
  font-weight: 700;
}

/* ================= CICLOS INFO ================= */
.cycle-info {
  background: #e8f5e9;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.cycle-info p {
  margin: 0.5rem 0;
  color: var(--txt);
}

/* ================= TESTIMONIOS ================= */
blockquote {
  background: #fff;
  padding: 1.5rem;
  border-left: 5px solid var(--verde);
  border-radius: 8px;
  font-style: italic;
  animation: fadeInUp 0.8s ease-out;
}

blockquote p {
  margin-bottom: 1rem;
}

blockquote footer {
  margin-top: 1rem;
  font-weight: 600;
  font-style: normal;
}

/* ================= TESTIMONIO EMPRESARIAL ================= */
#testi-empresarial {
  background: #fff;
  padding: 4rem 0;
  border-radius: 12px;
}

.testi-emp {
  background: #f8e8f8;
  border-left: 5px solid var(--verde);
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  font-style: italic;
  animation: fadeInUp 0.8s ease-out;
}

.testi-emp p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testi-emp footer {
  font-weight: 600;
  font-style: normal;
  color: var(--txt-light);
}

/* ================= CTA ================= */
#cta {
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

#cta .btn-wa {
  animation: fadeInUp 0.8s ease-out;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: var(--txt-light);
}

footer a {
  color: var(--verde);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ================= ANIMACIONES ================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= RESPONSIVE ================= */
@media (min-width: 768px) {
  html {
    font-size: 18px;
  }

  .plans-grid {
    max-width: 900px;
    margin: 2rem auto;
  }

  section {
    padding: 2rem 0;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  .btn-wa {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card img {
    height: 200px;
  }
}

/* ================= IMÁGENES RESPONSIVAS ================= */
img {
  max-width: 100%;
  height: auto;
}

picture img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}