/* ============================================================
   AITAMAE de Kobe — Landing Styles
   Paleta Kobe + tipografía Poppins
   ============================================================ */

:root {
  --kobe-orange: #f36b21;
  --kobe-yellow: #f8b133;
  --kobe-black: #111111;
  --kobe-white: #ffffff;
  --kobe-purple: #5b2c83;
  --kobe-green: #4caf50;

  --shadow-soft: 0 10px 30px rgba(17, 17, 17, 0.18);
  --shadow-strong: 0 20px 60px rgba(17, 17, 17, 0.35);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--kobe-white);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;

  /* Fallback: gradiente naranja Kobe que se ve completo aunque la imagen no cargue.
     Cuando coloques assets/background-kobe.jpeg, la imagen se superpone encima. */
  background-color: var(--kobe-orange);
  background-image:
    url('assets/background-kobe.jpg'),
    radial-gradient(ellipse at 20% 20%, #ffb066 0%, transparent 55%),
    radial-gradient(ellipse at 80% 75%, #d8550e 0%, transparent 60%),
    linear-gradient(135deg, #f8b133 0%, #f36b21 45%, #d8550e 100%);
  background-size: cover, 60% 60%, 60% 60%, 100% 100%;
  background-position: center, top left, bottom right, center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Overlay para mejorar legibilidad, sin perder la identidad naranja */
.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(17, 17, 17, 0.15) 0%, rgba(17, 17, 17, 0.45) 60%, rgba(17, 17, 17, 0.7) 100%),
    linear-gradient(180deg, rgba(243, 107, 33, 0.0) 0%, rgba(17, 17, 17, 0.3) 100%);
  z-index: 0;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: relative;
  z-index: 2;
  padding: 28px 0 8px;
}

.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-link {
  display: inline-block;
  animation: fadeInDown 0.9s ease both;
}

.logo {
  height: 70px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

/* ============================================================
   MAIN / HERO
   ============================================================ */
.site-main {
  position: relative;
  z-index: 1;
  padding: 32px 0 80px;
}

.hero {
  text-align: center;
  padding: 48px 24px 56px;
  max-width: 900px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  margin-bottom: 22px;
  color: var(--kobe-white);
  background: rgba(17, 17, 17, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeInUp 0.9s ease 0.1s both;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--kobe-yellow) 0%, #ffd87a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.95);
  animation: fadeInUp 1s ease 0.35s both;
}

.hero-description {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  font-weight: 300;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.5s both;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--kobe-white);
  color: var(--kobe-black);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  animation: fadeInUp 1s ease 0.65s both;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  background: var(--kobe-yellow);
}

.cta-button svg {
  transition: transform 0.25s ease;
}

.cta-button:hover svg {
  transform: translateY(3px);
}

/* ============================================================
   AGENT SECTION
   ============================================================ */
.agent-section {
  margin-top: 24px;
  padding: 48px 24px 32px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.agent-section .agent-badge {
  margin-bottom: 18px;
}

/* Halo decorativo detrás del agente para que resalte sobre el fondo naranja */
.agent-section::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  background:
    radial-gradient(circle, rgba(255, 230, 170, 0.55) 0%, rgba(248, 177, 51, 0.25) 30%, transparent 65%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: haloPulse 6s ease-in-out infinite;
}

.agent-section > * {
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--kobe-white);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.section-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
}

.agent-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 251, 245, 0.96) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 30px 80px rgba(216, 85, 14, 0.45),
    0 10px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: cardIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  color: var(--kobe-black);
  overflow: hidden;
}

/* El widget de ElevenLabs llena toda la card en vertical */
.agent-card elevenlabs-convai {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 600px;
  display: block;
}

.agent-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--kobe-yellow) 0%, var(--kobe-orange) 50%, var(--kobe-yellow) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}

.agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--kobe-orange), var(--kobe-yellow));
  color: var(--kobe-white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(243, 107, 33, 0.45);
}

.agent-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: livePulse 1.6s infinite;
}

.agent-card-hint {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 18px auto 0;
  max-width: 420px;
}

.agent-card--pulse {
  animation: cardPulse 1.2s ease;
}

@keyframes cardPulse {
  0%   { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(248, 177, 51, 0.55); }
  50%  { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 18px rgba(248, 177, 51, 0); }
  100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(248, 177, 51, 0); }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 64px;
  padding: 0 24px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  animation: fadeInUp 0.9s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0.6s; }
.feature-card:nth-child(2) { animation-delay: 0.75s; }
.feature-card:nth-child(3) { animation-delay: 0.9s; }

.feature-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(248, 177, 51, 0.5);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--kobe-orange), var(--kobe-yellow));
  color: var(--kobe-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(243, 107, 33, 0.35);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--kobe-white);
}

.feature-card p {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

/* ============================================================
   ORIGIN — De dónde viene el nombre AITAMAE
   ============================================================ */
.origin {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-top: 96px;
  padding: 56px 36px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 247, 237, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 30px 80px rgba(216, 85, 14, 0.35),
    0 10px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--kobe-black);
  position: relative;
  overflow: hidden;
}

.origin::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 177, 51, 0.35), transparent 70%);
  pointer-events: none;
}

.origin-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.origin-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 24px;
  box-shadow:
    0 30px 60px rgba(216, 85, 14, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.origin-image:hover {
  transform: translateY(-6px) scale(1.02);
}

.origin-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 110%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(243, 107, 33, 0.45) 0%, transparent 65%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.origin-content {
  position: relative;
  z-index: 1;
}

.eyebrow--dark {
  color: var(--kobe-orange);
  border-color: rgba(243, 107, 33, 0.35);
  background: rgba(243, 107, 33, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.origin-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0 18px;
  color: var(--kobe-black);
}

.origin-title .accent {
  background: linear-gradient(135deg, var(--kobe-orange) 0%, var(--kobe-yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.origin-lead {
  font-size: 1.05rem;
  font-weight: 400;
  color: #374151;
  margin-bottom: 28px;
  line-height: 1.65;
}

.origin-lead strong {
  color: var(--kobe-orange);
  font-weight: 700;
}

.origin-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffeede 100%);
  border: 1px dashed rgba(243, 107, 33, 0.35);
  margin-bottom: 28px;
}

.origin-chip {
  flex: 1 1 0;
  min-width: 110px;
  padding: 14px 14px;
  border-radius: 14px;
  background: var(--kobe-white);
  border: 1px solid #f3d9c1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(216, 85, 14, 0.08);
}

.origin-chip-label {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--kobe-black);
}

.origin-chip-desc {
  font-size: 0.78rem;
  font-weight: 400;
  color: #6b7280;
  margin-top: 4px;
}

.origin-chip--result {
  background: linear-gradient(135deg, var(--kobe-orange), var(--kobe-yellow));
  border-color: transparent;
  color: var(--kobe-white);
  box-shadow: 0 10px 24px rgba(243, 107, 33, 0.45);
}

.origin-chip--result .origin-chip-label,
.origin-chip--result .origin-chip-desc {
  color: var(--kobe-white);
}

.origin-plus,
.origin-equals {
  align-self: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--kobe-orange);
  padding: 0 4px;
}

.origin-text {
  font-size: 0.98rem;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.7;
}

.origin-text strong {
  color: var(--kobe-black);
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 28px 0 36px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes haloPulse {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .origin {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 44px 28px;
    text-align: center;
  }

  .origin-image {
    max-width: 280px;
  }

  .origin-formula {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  .site-header {
    padding: 20px 0 4px;
  }

  .logo {
    height: 54px;
  }

  .hero {
    padding: 28px 18px 36px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    padding: 6px 14px;
  }

  .cta-button {
    padding: 14px 26px;
    font-size: 0.95rem;
  }

  .agent-card {
    padding: 20px 14px;
    border-radius: var(--radius-md);
    min-height: 560px;
  }

  .agent-card elevenlabs-convai {
    min-height: 520px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 48px;
  }

  .feature-card {
    padding: 22px 20px;
  }

  .origin {
    padding: 36px 20px;
    margin-top: 64px;
  }

  .origin-image {
    max-width: 220px;
  }

  .origin-formula {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
  }

  .origin-chip {
    min-width: 0;
  }

  .origin-plus,
  .origin-equals {
    align-self: center;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 18px;
  }

  .logo {
    height: 46px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .agent-card {
    padding: 22px 14px;
  }
}
