/* ============================================
   VARIABLES Y RESET
============================================ */
:root {
  --color-primary: #6B9080;
  --color-primary-dark: #4F7263;
  --color-primary-light: #A4C3B2;
  --color-accent: #E8A87C;
  --color-accent-dark: #D68B5C;
  --color-bg: #FBFAF7;
  --color-bg-alt: #F4F1DE;
  --color-text: #2C3E50;
  --color-text-soft: #5A6B7A;
  --color-white: #FFFFFF;
  --color-whatsapp: #25D366;
  --color-phone: #6B9080;
  --color-email: #E8A87C;

  --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.06);
  --shadow-md: 0 8px 24px rgba(44, 62, 80, 0.08);
  --shadow-lg: 0 16px 40px rgba(44, 62, 80, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --gap: 1.5rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================
   HEADER
============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(107, 144, 128, 0.1);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
}
.logo__mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}
.logo__text { font-family: var(--font-display); }

.nav {
  display: none;
  gap: 2rem;
}
.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-soft);
  transition: color 0.2s ease;
  position: relative;
}
.nav__link:hover { color: var(--color-primary-dark); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__link--cta {
  background: var(--color-primary);
  color: white !important;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
}
.nav__link--cta:hover { background: var(--color-primary-dark); }
.nav__link--cta::after { display: none; }

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav móvil abierto */
.nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px; left: 0; right: 0;
  background: var(--color-bg);
  padding: 1.5rem;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   HERO
============================================ */
.hero {
  padding: 7rem 0 4rem;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(107,144,128,0.15), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero__inner {
  display: grid;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero__tag {
  display: inline-block;
  background: rgba(107, 144, 128, 0.12);
  color: var(--color-primary-dark);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: italic;
  color: var(--color-primary-dark);
  position: relative;
}
.hero__title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 8px;
  background: rgba(232, 168, 124, 0.35);
  z-index: -1;
  border-radius: 4px;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-soft);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__visual {
  display: grid;
  gap: 1rem;
}

.hero__card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-primary);
}
.hero__card--alt { border-left-color: var(--color-accent); }
.hero__card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.hero__card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.hero__card p { font-size: 0.92rem; color: var(--color-text-soft); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 6px 18px rgba(107, 144, 128, 0.35);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(107, 144, 128, 0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary);
  color: white;
}

/* ============================================
   SECCIONES GENERALES
============================================ */
.section { padding: 5rem 0; }
.section__header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__tag {
  display: inline-block;
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text);
}
.section__subtitle {
  color: var(--color-text-soft);
  font-size: 1.05rem;
}

/* ============================================
   SOBRE MÍ
============================================ */
.about { background: var(--color-bg); }
.about__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.about__image {
  position: relative;
  display: flex;
  justify-content: center;
}
.about__photo {
  width: 260px; height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  padding: 6px;
  box-shadow: var(--shadow-lg);
}
.about__photo-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.about__badge {
  position: absolute;
  bottom: 10px; right: 10px;
  background: var(--color-accent);
  color: white;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}
.about__content p {
  color: var(--color-text-soft);
  margin-bottom: 1rem;
}
.about__list {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.6rem;
}
.about__list li {
  font-weight: 500;
  color: var(--color-text);
}

/* ============================================
   SERVICIOS
============================================ */
.services { background: var(--color-bg-alt); }
.services__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.service-card {
  background: white;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-primary);
}
.service-card__icon {
  width: 54px; height: 54px;
  background: rgba(107, 144, 128, 0.12);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.service-card p {
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

/* ============================================
   METODOLOGÍA
============================================ */
.methodology { background: var(--color-bg); }
.methodology__steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.step {
  background: white;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.3s ease;
}
.step:hover { transform: translateY(-4px); }
.step__number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: 0.5rem;
  line-height: 1;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.step p { color: var(--color-text-soft); font-size: 0.95rem; }

/* ============================================
   CONTACTO
============================================ */
.contact {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}
.contact .section__tag { color: var(--color-accent); }
.contact .section__title { color: white; }
.contact .section__subtitle { color: rgba(255,255,255,0.85); }

.contact__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: white;
  color: var(--color-text);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-md);
}
.contact-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.contact-card__icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-card__icon svg { width: 28px; height: 28px; color: white; }

.contact-card--whatsapp .contact-card__icon { background: var(--color-whatsapp); }
.contact-card--phone .contact-card__icon { background: var(--color-phone); }
.contact-card--email .contact-card__icon { background: var(--color-email); }

.contact-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}
.contact-card__body p {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.contact-card__action {
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 0.9rem;
}

.contact__info {
  text-align: center;
  margin-top: 2.5rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: #1F2D2A;
  color: rgba(255,255,255,0.7);
  padding: 2rem 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: white;
  font-weight: 500;
}
.footer__copy { font-size: 0.85rem; }

/* ============================================
   WHATSAPP FLOTANTE
============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 58px; height: 58px;
  background: var(--color-whatsapp);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform 0.3s ease;
  animation: pulse 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.7), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .methodology__steps { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: repeat(3, 1fr); }
  .contact-card { flex-direction: column; text-align: center; }
}

@media (min-width: 900px) {
  :root { --gap: 2rem; }
  .container { padding: 0 2rem; }

  .burger { display: none; }
  .nav { display: flex; flex-direction: row; }

  .hero { padding: 9rem 0 6rem; }
  .hero__inner {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  .about__inner {
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
  }

  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .methodology__steps { grid-template-columns: repeat(4, 1fr); }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1200px) {
  .hero__title { font-size: 3.4rem; }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}