/* ============================================================
   TRIBU ANIMAL — inversores.css
   Dirección: editorial financiero / luxury refined
   Elemento memorable: precio 995€ como tipografía monumental
   de fondo en el hero + animaciones escalonadas de entrada
   ============================================================ */

/* ---------- HERO ---------- */

.inv-hero {
  background: var(--c-cream);
  padding: 32px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-start;
}

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

/* Precio monumental de fondo — el elemento memorable */
.inv-hero::after {
  content: '995€';
  position: absolute;
  right: -3%;
  bottom: -8%;
  font-family: var(--f-display);
  font-size: clamp(180px, 22vw, 320px);
  font-weight: 400;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(61,92,58,0.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.03em;
}

.inv-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Animaciones entrada hero */
.inv-hero .section-eyebrow { opacity: 0; transform: translateY(16px); animation: inv-up 0.55s ease forwards 0s; }
.inv-hero h1                { opacity: 0; transform: translateY(16px); animation: inv-up 0.55s ease forwards 0.1s; }
.inv-hero-desc              { opacity: 0; transform: translateY(16px); animation: inv-up 0.55s ease forwards 0.2s; }
.inv-hero-actions           { opacity: 0; transform: translateY(16px); animation: inv-up 0.55s ease forwards 0.3s; }
.inv-domain-panel           { opacity: 0; transform: translateX(24px); animation: inv-right 0.6s ease forwards 0.2s; }

@keyframes inv-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes inv-right {
  to { opacity: 1; transform: translateX(0); }
}

.inv-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin: 18px 0 20px;
}

.inv-hero h1 em {
  font-style: italic;
  color: var(--c-moss);
}

.inv-hero-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-ink-mid);
  max-width: 480px;
  margin-bottom: 36px;
}

.inv-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Panel dominio ---------- */

.inv-domain-panel {
  background: var(--c-white);
  border: 0.5px solid var(--c-cream-border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 40px rgba(26,28,24,0.06);
}

.inv-domain-name {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.inv-domain-age {
  font-size: 11px;
  font-weight: 300;
  color: var(--c-ink-light);
  margin-bottom: 28px;
}

.inv-domain-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 0.5px solid var(--c-cream-border);
}

.inv-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inv-spec-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--c-ink-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.inv-spec-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-soft);
}

.inv-spec-val.good { color: var(--c-moss); }

.inv-price-block { margin-bottom: 20px; }

.inv-price-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-ink-light);
  margin-bottom: 6px;
}

.inv-price {
  font-family: var(--f-numeric);
  font-size: 48px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.inv-price-note {
  font-size: 11px;
  font-weight: 300;
  color: var(--c-ink-light);
  margin-top: 4px;
}

.inv-panel-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inv-panel-cta .btn-primary {
  justify-content: center;
  width: 100%;
}

.inv-panel-escrow {
  text-align: center;
  font-size: 10px;
  font-weight: 300;
  color: var(--c-ink-light);
}

/* ---------- Stats sector ---------- */

.inv-stats {
  background: var(--c-ink);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

/* Grain sobre fondo oscuro */
.inv-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
}

.inv-stats-inner {
  position: relative;
}

.inv-stats-eyebrow {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(254,252,248,0.45);
  text-align: center;
  margin-bottom: 48px;
}

.inv-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.inv-stat {
  text-align: center;
  padding: 0 24px;
  border-right: 0.5px solid rgba(254,252,248,0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.inv-stat.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.inv-stat:nth-child(1) { transition-delay: 0s; }
.inv-stat:nth-child(2) { transition-delay: 0.1s; }
.inv-stat:nth-child(3) { transition-delay: 0.2s; }
.inv-stat:nth-child(4) { transition-delay: 0.3s; border-right: none; }

.inv-stat-num {
  font-family: var(--f-numeric);
  font-size: 36px;
  font-weight: 600;
  color: var(--c-white);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.inv-stat-lbl {
  font-size: 12px;
  font-weight: 300;
  color: rgba(254,252,248,0.5);
  line-height: 1.5;
}

/* ---------- Secciones ---------- */

.inv-section     { padding: 80px 0; background: var(--c-white); }
.inv-section-alt { padding: 80px 0; background: var(--c-cream); }

.inv-section-header { margin-bottom: 48px; }

.inv-section-header .section-title {
  font-size: 36px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.inv-section-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--c-ink-mid);
  line-height: 1.75;
  max-width: 560px;
}

/* ---------- Separador vivo ---------- */

.inv-separator {
  height: 0.5px;
  background: var(--c-cream-border);
  margin: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.inv-separator.is-visible {
  transform: scaleX(1);
}

/* ---------- Cards "Por qué" ---------- */

.inv-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.inv-why-card {
  background: var(--c-cream);
  border: 0.5px solid var(--c-cream-border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.inv-why-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.inv-why-card:nth-child(1) { transition-delay: 0s; }
.inv-why-card:nth-child(2) { transition-delay: 0.1s; }
.inv-why-card:nth-child(3) { transition-delay: 0.2s; }

.inv-why-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,28,24,0.07);
}

.inv-why-card.is-visible:hover {
  transform: translateY(-2px);
}

/* Número decorativo de fondo en cada card */
.inv-card-bg-num {
  position: absolute;
  right: -8px;
  bottom: -20px;
  font-family: var(--f-display);
  font-size: 96px;
  font-weight: 400;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(61,92,58,0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.03em;
}

.inv-card-num {
  font-family: var(--f-numeric);
  font-size: 10px;
  font-weight: 500;
  color: var(--c-moss);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.inv-why-card h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--c-ink);
  margin-bottom: 12px;
  line-height: 1.3;
}

.inv-why-card p {
  font-size: 13px;
  color: var(--c-ink-mid);
  line-height: 1.8;
  position: relative;
}

/* ---------- Cards proyecto ---------- */

.inv-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.inv-project-card {
  border: 0.5px solid var(--c-cream-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.inv-project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,28,24,0.07);
}

.inv-project-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: unset;
}

.inv-project-thumb svg {
  width: 36px;
  height: 36px;
  opacity: 0.45;
}

.inv-project-body { padding: 24px; }

.inv-project-body h3 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--c-ink);
  margin: 10px 0;
  line-height: 1.3;
}

.inv-project-body p {
  font-size: 13px;
  color: var(--c-ink-mid);
  line-height: 1.75;
  margin-bottom: 18px;
}

/* ---------- Cards "Para quién" ---------- */

.inv-forwhom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.inv-forwhom-card {
  background: var(--c-white);
  border: 0.5px solid var(--c-cream-border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.inv-forwhom-card h3 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--c-ink);
  margin: 10px 0;
  line-height: 1.3;
}

.inv-forwhom-card p {
  font-size: 13px;
  color: var(--c-ink-mid);
  line-height: 1.8;
}

/* ---------- Bloque contacto directo ---------- */

.inv-contact {
  background: var(--c-cream);
  padding: 80px 0;
  border-top: 0.5px solid var(--c-cream-border);
}

.inv-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.inv-contact-text h2 {
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 400;
  color: var(--c-ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 14px 0 16px;
}

.inv-contact-desc {
  font-size: 14px;
  color: var(--c-ink-mid);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 400px;
}

.inv-contact-reasons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin-bottom: 0;
}

.inv-contact-reasons li {
  font-size: 13px;
  font-weight: 400;
  color: var(--c-ink-mid);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.inv-contact-reasons li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-moss);
  opacity: 0.6;
}

.inv-contact-escrow-note {
  margin-top: 24px;
  font-size: 12px;
  font-weight: 300;
  color: var(--c-ink-light);
  line-height: 1.7;
  max-width: 400px;
  padding-top: 20px;
  border-top: 0.5px solid var(--c-cream-border);
}

.inv-contact-escrow-note a {
  color: var(--c-moss);
  font-weight: 400;
  border-bottom: 0.5px solid rgba(61,92,58,0.3);
  padding-bottom: 1px;
  transition: border-color var(--transition), color var(--transition);
}

.inv-contact-escrow-note a:hover {
  color: #2e4529;
  border-color: var(--c-moss);
}

.inv-contact-panel {
  background: var(--c-white);
  border: 0.5px solid var(--c-cream-border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 2px 40px rgba(26,28,24,0.04);
}

/* Formulario contacto */
.inv-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.inv-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.inv-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inv-form-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink-soft);
}

.inv-form-input {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--c-ink);
  background: var(--c-white);
  border: 0.5px solid var(--c-cream-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}

.inv-form-input::placeholder {
  color: var(--c-ink-light);
  font-weight: 300;
}

.inv-form-input:focus {
  border-color: var(--c-moss);
  box-shadow: 0 0 0 3px rgba(61,92,58,0.08);
}

.inv-form-input.inv-error { border-color: var(--c-terra); }

.inv-form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.inv-form-submit {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.inv-submit-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition);
}

.inv-form-submit:hover .inv-submit-icon { transform: translateX(3px); }

.inv-submit-spinner {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  animation: inv-spin 0.8s linear infinite;
}

@keyframes inv-spin { to { transform: rotate(360deg); } }

.inv-form-rgpd {
  font-size: 10px;
  font-weight: 300;
  color: var(--c-ink-light);
  text-align: center;
  line-height: 1.6;
}

.inv-form-success {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--c-moss-light);
  border: 0.5px solid var(--c-moss);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.inv-form-success svg {
  width: 20px;
  height: 20px;
  stroke: var(--c-moss);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.inv-form-success p {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-moss);
  line-height: 1.5;
}

/* ---------- CTA final ---------- */

.inv-cta {
  background: var(--c-moss);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

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

/* Año decorativo de fondo en el CTA */
.inv-cta::after {
  content: '2009';
  position: absolute;
  left: -1%;
  bottom: -10%;
  font-family: var(--f-display);
  font-size: clamp(160px, 20vw, 280px);
  font-weight: 400;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(254,252,248,0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.03em;
}

.inv-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
}

.inv-cta h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: var(--c-white);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.inv-cta h2 em { font-style: italic; opacity: 0.7; }

.inv-cta-desc {
  font-size: 14px;
  font-weight: 300;
  color: rgba(254,252,248,0.72);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 24px;
}

.inv-cta-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.inv-cta-trust span {
  font-size: 12px;
  font-weight: 400;
  color: rgba(254,252,248,0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}

.inv-cta-trust span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(254,252,248,0.35);
  flex-shrink: 0;
}

.inv-cta-panel {
  background: rgba(254,252,248,0.1);
  border: 0.5px solid rgba(254,252,248,0.18);
  border-radius: 16px;
  padding: 36px 32px;
  min-width: 240px;
  text-align: center;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.inv-cta-price-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(254,252,248,0.5);
  margin-bottom: 6px;
}

.inv-cta-price {
  font-family: var(--f-numeric);
  font-size: 52px;
  font-weight: 600;
  color: var(--c-white);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.inv-cta-price-note {
  font-size: 11px;
  font-weight: 300;
  color: rgba(254,252,248,0.45);
  margin-bottom: 28px;
}

.btn-inv-white {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--c-moss);
  background: var(--c-white);
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
}

.btn-inv-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.inv-cta-escrow {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 300;
  color: rgba(254,252,248,0.35);
}

/* ---------- Floating CTA ---------- */

.inv-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-moss);
  color: var(--c-white);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 13px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 24px rgba(61,92,58,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.inv-floating:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(61,92,58,0.45);
}

.inv-floating svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Utilidad ---------- */

.inv-hidden { display: none !important; }

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .inv-hero::after       { font-size: 140px; right: -5%; bottom: -4%; }
  .inv-hero-grid         { grid-template-columns: 1fr; gap: 40px; }
  .inv-hero h1           { font-size: 36px; }
  .inv-stats-grid        { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .inv-stat              { border-right: none; border-bottom: 0.5px solid rgba(254,252,248,0.1); padding-bottom: 28px; }
  .inv-stat:nth-child(odd)   { border-right: 0.5px solid rgba(254,252,248,0.1); }
  .inv-stat:nth-child(3),
  .inv-stat:last-child        { border-bottom: none; }
  .inv-why-grid,
  .inv-project-grid,
  .inv-forwhom-grid,
  .inv-contact-grid      { grid-template-columns: 1fr; }
  .inv-cta-inner         { grid-template-columns: 1fr; }
  .inv-cta h2            { font-size: 28px; }
  .inv-section-header .section-title { font-size: 28px; }
}

@media (max-width: 600px) {
  .inv-hero              { padding: 64px 0 56px; min-height: auto; }
  .inv-hero::after       { display: none; }
  .inv-hero h1           { font-size: 28px; }
  .inv-hero-actions      { flex-direction: column; align-items: flex-start; }
  .inv-hero-actions .btn-primary,
  .inv-hero-actions .btn-ghost { width: 100%; justify-content: center; }
  .inv-floating          { bottom: 16px; right: 16px; font-size: 12px; padding: 11px 16px; }
  .inv-contact-panel     { padding: 24px; }
  .inv-form-row          { grid-template-columns: 1fr; }
}
