/* =============================================================
   INDEX.CSS — Estilos específicos del home (Origen y Sentido)
   ============================================================= */

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(167, 124, 82, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 82% 18%, rgba(201, 164, 127, 0.14), transparent 50%),
    linear-gradient(180deg, var(--warm-100) 0%, var(--bg-page) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__left {
  max-width: 620px;
  animation: fadeInUp 1s var(--ease-out) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero__left h1 {
  font-family: var(--font-heading);
  font-size: clamp(50px, 6vw, 82px);
  margin-bottom: 24px;
  color: var(--warm-900);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 750;
  max-width: 620px;
}

.lead {
  font-size: clamp(18px, 1.85vw, 20px);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.72;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.micro {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.micro::before {
  content: '✦';
  color: var(--accent);
  font-size: 12px;
}

.hero__right {
  position: relative;
  height: min(75vh, 680px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: fadeIn 1.2s var(--ease-out) 0.3s forwards;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero__image {
  width: 100%;
  height: 100%;
  background: url("../img/hero.jpeg") center center / cover no-repeat;
  position: relative;
}

.hero__right::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 35%, rgba(69, 51, 39, 0.14) 100%);
  pointer-events: none;
}

.hero__decoration {
  position: absolute;
  right: -100px;
  top: 18%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 124, 82, 0.18) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%       { opacity: 0.75; transform: scale(1.08); }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    padding: 60px 1.2rem 60px;
  }
  .hero__right {
    height: min(55vw, 420px);
  }
}

@media (max-width: 600px) {
  .hero__left h1 {
    font-size: clamp(42px, 12vw, 58px);
  }
  .hero__right {
    height: 280px;
  }
}

/* ── Actividades grid (home) ──────────────────────────────── */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.activity-card {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  transition: all 0.5s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.activity-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.00) 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
  opacity: 1;
  transition: opacity 0.35s ease;
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(167, 124, 82, 0.24);
}

.activity-card:hover::before {
  opacity: 0.9;
}

.activity-card__content {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 249, 0.46) 0%,
    rgba(255, 253, 249, 0.58) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px 20px;
  border-radius: 22px;
  margin: -10px;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 22px rgba(60, 40, 20, 0.08);
  transition: all 0.4s ease;
}

.activity-card:hover .activity-card__content {
  background: rgba(255, 253, 249, 0.96);
  transform: translateY(-5px);
}

.activity-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #000000;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.activity-card p {
  color: #000000;
  font-size: 15px;
  line-height: 1.6;
}

.activity-card__arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--warm-800);
  color: #fffdf9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.4s var(--ease-spring);
  opacity: 0;
  transform: scale(0.8);
  box-shadow: var(--shadow-sm);
}

.activity-card:hover .activity-card__arrow {
  opacity: 1;
  transform: scale(1);
}

/* ── Escritos grid (home) ─────────────────────────────────── */
.writings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.writing-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--surface-light) 0%, var(--surface-cream) 100%);
  border: 1px solid var(--border-light);
  padding: 40px 30px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: all 0.5s var(--ease-smooth);
  box-shadow: var(--shadow-sm);
}

.writing-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: var(--font-heading);
  font-size: 120px;
  color: var(--accent);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
  transition: all 0.5s ease;
}

.writing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(167, 124, 82, 0.22);
}

.writing-card:hover::before {
  opacity: 0.22;
  transform: translateY(-5px);
}

.writing-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.writing-card__tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.writing-card__quote {
  font-size: 22px;
  font-style: normal;
  line-height: 1.45;
  color: var(--warm-800);
  position: relative;
  z-index: 1;
  margin: 0;
}

/* ── Soft panel CTA ───────────────────────────────────────── */
.soft-panel {
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(120, 92, 69, 0.03);
  padding: 50px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.soft-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
}

.soft-panel__title {
  font-size: 40px;
  margin-bottom: 12px;
  color: var(--warm-900);
  line-height: 1.02;
}

.soft-panel__text {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.soft-panel__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.section--soft .btn--primary {
  background: linear-gradient(135deg, var(--warm-800) 0%, var(--warm-900) 100%);
  color: #fffdf9;
  box-shadow: var(--shadow-md);
}

.section--soft .btn--primary:hover {
  box-shadow: var(--shadow-lg);
}

.section--soft .btn--ghost {
  border-color: rgba(120, 92, 69, 0.14);
  color: var(--warm-900);
  background: rgba(255, 255, 255, 0.55);
}

.section--soft .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(120, 92, 69, 0.24);
}

/* ── Sobre Mí ─────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.about__card {
  background: linear-gradient(180deg, var(--surface-light) 0%, var(--surface-cream) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.about__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-smooth);
}

.about__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(167, 124, 82, 0.18);
}

.about__card:hover::before {
  transform: scaleX(1);
}

.about__card h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--warm-900);
  line-height: 1.02;
}

.about__card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.about__icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
  color: #fffdf9;
  box-shadow: 0 10px 24px rgba(167, 124, 82, 0.18);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .activities-grid,
  .writings-grid,
  .about {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .activities-grid,
  .writings-grid,
  .about {
    grid-template-columns: 1fr;
  }

  .soft-panel {
    padding: 40px 24px;
  }
}
