/* ============ IAmind — Design tokens ============ */
:root {
  --c-dark-1: #3A2213;
  --c-dark-2: #6B3410;
  --c-accent-1: #F97316;
  --c-accent-2: #EF4444;
  --c-light: #FDF7F1;
  --c-card: #FFFBF5;
  --c-alt: #F6DEC4;
  --c-border: #F0D2AE;
  --c-mist: #9C7A5E;
  --c-text-dark: #2B1B10;

  --c-page-text: #2B1B10;
  --c-page-text-muted: #6E4A2E;
  --c-eyebrow: #C2410C;
  --text-shadow-soft: 0 1px 4px rgba(255,255,255,0.55);

  --gradient-accent: linear-gradient(135deg, #F97316 0%, #EF4444 100%);
  --gradient-page: linear-gradient(45deg, #FDF7F1 0%, #FCEBCF 30%, #F9AE6C 65%, #F97316 100%);

  --font-heading: "Fraunces", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius: 16px;
  --shadow-glow: 0 0 40px rgba(249,115,22,0.35);
  --container-w: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--c-text-dark);
  background: var(--c-light);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.section, .section-alt, .section-dark, .hero {
  padding: 140px 0;
  position: relative;
  background: var(--gradient-page);
  color: var(--c-page-text);
}

.eyebrow, .section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-eyebrow);
  text-shadow: var(--text-shadow-soft);
  margin-bottom: 12px;
}

.section-head { max-width: 680px; margin: 0 auto 72px; text-align: center; position: relative; }
.section-head h2 { font-size: clamp(34px, 5vw, 50px); font-weight: 500; margin-bottom: 18px; color: var(--c-page-text); text-shadow: var(--text-shadow-soft); }
.section-head p { color: var(--c-page-text-muted); font-size: 18px; text-shadow: var(--text-shadow-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(197,84,15,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-outline {
  background: rgba(255,255,255,0.35);
  color: var(--c-page-text);
  border: 1.5px solid rgba(43,27,16,0.35);
}
.btn-outline:hover { border-color: var(--c-accent-1); color: var(--c-eyebrow); background: rgba(255,255,255,0.6); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(rgba(255,252,247,0.82), rgba(255,252,247,0.82)), var(--gradient-page);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(43,27,16,0.08);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font-family: var(--font-heading); font-weight: 700; font-size: 19px; color: var(--c-page-text); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--c-page-text);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--c-accent-1); }

.nav-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--c-page-text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 190px 0 160px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -180px; top: -120px;
  background: radial-gradient(circle, rgba(249,115,22,0.28) 0%, rgba(239,68,68,0.08) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  margin-bottom: 28px;
  text-shadow: var(--text-shadow-soft);
}
.hero h1 .accent { color: var(--c-eyebrow); }
.hero p.lead {
  font-size: 18px;
  color: var(--c-page-text-muted);
  max-width: 560px;
  margin-bottom: 34px;
  text-shadow: var(--text-shadow-soft);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img {
  width: 100%;
  max-width: 380px;
  border-radius: 50%;
  filter: drop-shadow(0 10px 40px rgba(150,80,20,0.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 68px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--c-page-text);
  text-shadow: var(--text-shadow-soft);
}
.hero-stats div span { color: var(--c-page-text-muted); font-size: 14px; }

/* ---------- Photo gallery (Qué hacemos) ---------- */
.gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  margin: 0 0 40px;
}
.gallery-track {
  position: relative;
  width: 220px;
  height: 220px;
}
.gallery-photo {
  position: absolute;
  left: 0;
  top: 0;
  width: 220px;
  height: 220px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(150,80,20,0.28);
  cursor: grab;
  transform: translate(0,0) rotate(0deg) scale(1);
  transition: transform 0.7s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  will-change: transform;
}
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.gallery-photo:active { cursor: grabbing; }
.gallery-cta { display: flex; justify-content: center; margin-top: 8px; }

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 14px 14px;
  background: linear-gradient(to top, rgba(20,10,4,0.92) 0%, rgba(20,10,4,0.65) 55%, rgba(20,10,4,0) 100%);
  color: #FFF6EA;
  pointer-events: none;
}
.gallery-icon { display: block; font-size: 18px; margin-bottom: 4px; }
.gallery-caption h3 {
  font-size: 14px;
  font-weight: 700;
  color: #FFF6EA;
  margin-bottom: 4px;
  line-height: 1.2;
}
.gallery-caption p {
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(255,246,234,0.88);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 960px) {
  .gallery-stage { height: 220px; }
  .gallery-track { width: 160px; height: 160px; }
  .gallery-photo { width: 160px; height: 160px; border-radius: 22px; }
  .gallery-caption { padding: 10px 10px 10px; }
  .gallery-icon { font-size: 15px; margin-bottom: 2px; }
  .gallery-caption h3 { font-size: 11.5px; margin-bottom: 2px; }
  .gallery-caption p { font-size: 9.5px; -webkit-line-clamp: 2; }
}
@media (max-width: 640px) {
  .gallery-stage { height: 160px; }
  .gallery-track { width: 110px; height: 110px; }
  .gallery-photo { width: 110px; height: 110px; border-radius: 16px; }
  .gallery-caption { padding: 7px 7px 7px; }
  .gallery-icon { font-size: 12px; margin-bottom: 1px; }
  .gallery-caption h3 { font-size: 9px; margin-bottom: 1px; }
  .gallery-caption p { font-size: 7.5px; -webkit-line-clamp: 2; }
}

/* ---------- Pillars (legado) ---------- */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.pillar-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 36px 30px; box-shadow: 0 14px 34px rgba(150,80,20,0.16); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.pillar-card:hover { transform: translateY(-6px); border-color: var(--c-accent-1); box-shadow: 0 18px 40px rgba(150,80,20,0.24); }
.pillar-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--gradient-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; font-size: 22px; }
.pillar-card h3 { font-size: 24px; margin-bottom: 12px; color: var(--c-text-dark); }
.pillar-card p { color: var(--c-mist); font-size: 15px; }

/* ---------- Proceso (steps) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 30px 26px; box-shadow: 0 14px 34px rgba(150,80,20,0.16); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.step-card:hover { transform: translateY(-6px); border-color: var(--c-accent-1); box-shadow: 0 18px 40px rgba(150,80,20,0.24); }
.step-num { font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--c-accent-1); margin-bottom: 14px; }
.step-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--c-text-dark); }
.step-card p { color: var(--c-mist); font-size: 14px; }

/* ---------- Agentes IA (carousel) ---------- */
.agent-carousel { display: flex; align-items: center; justify-content: center; perspective: 1300px; margin: 0 auto 28px; position: relative; }
.agent-carousel-track { position: relative; transform-style: preserve-3d; cursor: grab; touch-action: pan-y; transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); }
.agent-carousel-track:active { cursor: grabbing; }
.agent-card { position: absolute; width: 300px; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 34px 28px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 14px 34px rgba(150,80,20,0.2); backface-visibility: hidden; -webkit-user-select: none; user-select: none; }
.agent-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--gradient-accent); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 4px; }
.agent-card h3 { font-size: 20px; color: var(--c-text-dark); }
.agent-subtitle { color: var(--c-accent-1); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.agent-card p { color: var(--c-mist); font-size: 14px; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 22px; position: relative; }
.carousel-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-border); background: var(--c-card); color: var(--c-text-dark); font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(150,80,20,0.18); transition: border-color 0.2s ease, color 0.2s ease; }
.carousel-btn:hover { border-color: var(--c-accent-1); color: var(--c-accent-1); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(43,27,16,0.22); border: none; padding: 0; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.carousel-dot.active { background: var(--c-accent-1); transform: scale(1.35); }

/* ---------- Use cases ---------- */
.usecases { display: flex; flex-direction: column; gap: 20px; position: relative; }
.usecase-row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 28px; background: rgba(255,255,255,0.4); border: 1px solid rgba(43,27,16,0.1); border-radius: var(--radius); padding: 30px 32px; transition: border-color 0.25s ease, background 0.25s ease; }
.usecase-row:hover { border-color: var(--c-accent-1); background: rgba(255,255,255,0.6); }
.usecase-num { font-family: var(--font-heading); font-size: 34px; font-weight: 700; color: rgba(43,27,16,0.2); }
.usecase-body h3 { font-size: 24px; margin-bottom: 10px; color: var(--c-page-text); text-shadow: var(--text-shadow-soft); }
.usecase-body h3 .tag { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gradient-accent); margin-right: 10px; }
.usecase-body p { color: var(--c-page-text-muted); font-size: 15px; margin-bottom: 4px; }
.usecase-cta { white-space: nowrap; font-weight: 600; font-size: 14px; color: var(--c-page-text); border: 1.5px solid rgba(43,27,16,0.35); background: rgba(255,255,255,0.55); border-radius: 999px; padding: 10px 20px; display: inline-block; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.usecase-cta:hover { background: var(--c-accent-1); border-color: var(--c-accent-1); color: #fff; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.testimonial-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 32px; box-shadow: 0 14px 34px rgba(150,80,20,0.16); }
.stars { color: var(--c-accent-2); letter-spacing: 3px; margin-bottom: 16px; font-size: 15px; }
.testimonial-card p.quote { font-size: 15px; color: var(--c-text-dark); margin-bottom: 20px; }
.testimonial-author strong { display: block; font-size: 15px; color: var(--c-text-dark); }
.testimonial-author span { color: var(--c-mist); font-size: 13px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; position: relative; }
.contact-info h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 16px; color: var(--c-page-text); text-shadow: var(--text-shadow-soft); }
.contact-info p { color: var(--c-page-text-muted); margin-bottom: 28px; text-shadow: var(--text-shadow-soft); }
.whatsapp-card { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,0.45); color: var(--c-page-text); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; border: 1px solid rgba(43,27,16,0.1); transition: border-color 0.25s ease, transform 0.25s ease; }
.whatsapp-card:last-child { margin-bottom: 0; }
.whatsapp-card:hover { border-color: var(--c-accent-1); transform: translateY(-2px); }
.whatsapp-card .wa-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient-accent); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.whatsapp-card strong { display: block; font-size: 15px; }
.whatsapp-card span { color: var(--c-page-text-muted); font-size: 13px; }

.form-wrap { position: relative; }
.form-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 36px; box-shadow: 0 20px 50px rgba(150,80,20,0.22); }
.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: var(--c-text-dark); }
.form-success[hidden] { display: none; }
.form-success h3 { font-size: 22px; color: var(--c-text-dark); }
.form-success p { color: var(--c-mist); margin: 0; }
.success-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--gradient-accent); display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--c-text-dark); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--c-border); border-radius: 10px; font-family: var(--font-body); font-size: 15px; color: var(--c-text-dark); resize: vertical; transition: border-color 0.2s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-accent-1); }
.field.has-error input, .field.has-error textarea { border-color: var(--c-accent-2); }
.field-error { display: none; color: var(--c-accent-2); font-size: 12px; margin-top: 6px; }
.field-error.show { display: block; }
.field-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--c-mist); margin-bottom: 6px; }
.field-checkbox input { margin-top: 3px; }
.form-note { font-size: 12px; color: var(--c-mist); margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--gradient-page); color: var(--c-page-text-muted); padding: 48px 0 28px; border-top: 1px solid rgba(43,27,16,0.1); }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 50%; }
.footer-brand span { color: var(--c-page-text); font-family: var(--font-heading); font-weight: 700; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 14px; }
.footer-links a:hover { color: var(--c-accent-1); }
.footer-bottom { border-top: 1px solid rgba(43,27,16,0.12); margin-top: 32px; padding-top: 20px; text-align: center; font-size: 13px; }

/* ---------- WhatsApp floating button ---------- */
.wa-float { position: fixed; bottom: 26px; left: 26px; z-index: 90; display: flex; align-items: center; gap: 10px; background: var(--gradient-accent); color: #fff; padding: 14px 20px; border-radius: 999px; box-shadow: var(--shadow-glow); font-weight: 600; font-size: 14px; transition: transform 0.25s ease; }
.wa-float:hover { transform: translateY(-3px); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: #1E120A;
  color: #FFF6EA;
  padding: 18px 24px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-inner p { font-size: 13.5px; line-height: 1.5; color: rgba(255,246,234,0.9); margin: 0; flex: 1; min-width: 240px; }
.cookie-banner-inner p a { text-decoration: underline; color: #FFF6EA; }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 10px 20px; font-size: 13.5px; }
.cookie-banner-actions .btn-outline { background: transparent; border-color: rgba(255,246,234,0.4); color: #FFF6EA; }
.cookie-banner-actions .btn-outline:hover { background: rgba(255,246,234,0.12); border-color: #FFF6EA; color: #FFF6EA; }

@media (max-width: 640px) {
  .cookie-banner { padding: 16px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: left; gap: 14px; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* ---------- Legal pages ---------- */
.legal-hero { padding: 150px 0 40px; background: var(--gradient-page); color: var(--c-page-text); }
.legal-hero .container { max-width: 820px; }
.legal-hero .section-eyebrow { color: var(--c-eyebrow); }
.legal-hero h1 { font-size: clamp(30px, 4.5vw, 44px); margin-top: 10px; text-shadow: var(--text-shadow-soft); }
.legal-hero p { color: var(--c-page-text-muted); margin-top: 12px; text-shadow: var(--text-shadow-soft); }

.legal-content { padding: 56px 0 120px; background: var(--c-light); }
.legal-content .container { max-width: 820px; }
.legal-content h2 { font-size: 22px; margin: 40px 0 14px; color: var(--c-text-dark); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 17px; margin: 24px 0 10px; color: var(--c-text-dark); }
.legal-content p { margin-bottom: 14px; color: var(--c-mist); font-size: 15.5px; }
.legal-content ul { margin: 0 0 14px 20px; color: var(--c-mist); font-size: 15.5px; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--c-text-dark); }
.legal-content a { color: var(--c-eyebrow); text-decoration: underline; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font-weight: 600; font-size: 14px; color: var(--c-eyebrow); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .usecase-row { grid-template-columns: 1fr; text-align: left; }
  .usecase-cta { justify-self: start; }
  .agent-card { width: 260px; padding: 28px 22px; }
}

@media (max-width: 760px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .section, .section-alt, .section-dark { padding: 64px 0; }
  .hero { padding: 140px 0 80px; }
  .steps-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .agent-card { width: 220px; padding: 24px 20px; }
}
