/* ==========================================================================
   KRINOVA — Global Styles
   Paleta: #232728 (oscuro) · #68f2b6 (verde menta) · #ffffff
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:   #232728;
  --mint:   #68f2b6;
  --mint-light: #a8f7d4;
  --white:  #ffffff;
  --gray-50:  #f7f8f8;
  --gray-100: #ebeced;
  --gray-200: #d4d6d7;
  --gray-400: #8a8e90;
  --gray-600: #4a4e50;
  --font-main: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Open Sans', sans-serif;
  --max-w: 1200px;
  --nav-h: 72px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { font-size: clamp(.95rem, 1.1vw, 1.1rem); color: var(--gray-600); }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.55; }

/* ---------- Utility ---------- */
.container { width: 92%; max-width: var(--max-w); margin: 0 auto; }
.section { padding: 100px 0; }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark p { color: var(--gray-200); }
.section--gray { background: var(--gray-50); }
.section--mint { background: var(--mint); color: var(--dark); }
.text-center { text-align: center; }
.text-mint { color: var(--mint); }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--dark);
  background: var(--mint);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}
.section--mint .tag { background: var(--dark); color: var(--mint); opacity: 1; }
.section--dark .tag { background: var(--mint); color: var(--dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 14px 32px;
  border-radius: 60px;
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  letter-spacing: .01em;
}
.btn--primary {
  background: var(--mint);
  color: var(--dark);
  font-weight: 700;
  letter-spacing: .02em;
}
.btn--primary:hover {
  background: var(--mint-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(104,242,182,.3);
}
.btn--outline {
  border: 2px solid var(--dark);
  color: var(--dark);
  background: transparent;
}
.btn--outline:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--outline-white {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}
.btn--dark {
  background: var(--dark);
  color: var(--white);
}
.btn--dark:hover {
  background: #3a3d3e;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(35,39,40,.25);
}
.btn svg, .btn i {
  width: 18px;
  height: 18px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(35,39,40,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar__logo {
  display: flex;
  align-items: center;
}
.navbar__logo img {
  height: 44px;
  width: auto;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar__links a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.navbar__links a:hover, .navbar__links a.active { color: var(--mint); }
.navbar__lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  padding: 4px 2px;
  margin-left: -0.5rem;
}
.navbar__lang a {
  padding: 3px 8px;
  border-radius: 4px;
  transition: all .2s ease;
  font-size: .8rem !important;
}
.navbar__lang a.lang-active {
  background: var(--mint);
  color: var(--dark) !important;
}
.navbar__lang a:not(.lang-active) {
  color: rgba(255,255,255,.5) !important;
}
.navbar__lang a:not(.lang-active):hover {
  color: var(--white) !important;
}
.navbar__cta {
  padding: 10px 24px !important;
  font-size: .85rem !important;
  font-weight: 800 !important;
  color: var(--dark) !important;
  letter-spacing: .03em;
}
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}
.navbar__toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .navbar__toggle { display: flex; }
  .navbar__links {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,.3);
  }
  .navbar__links.open { right: 0; }
  .navbar__links a { font-size: 1.2rem; color: var(--white); }
  .navbar__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .navbar__toggle.open span:nth-child(2) { opacity: 0; }
  .navbar__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(104,242,182,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(104,242,182,.06) 0%, transparent 50%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero__content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero__content h1 em {
  font-style: normal;
  color: var(--mint);
}
.hero__content p {
  color: var(--gray-200);
  margin-bottom: 2.5rem;
}
.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--gray-400);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Blockquote/Pull Quote ---------- */
.pull-quote {
  border-left: 3px solid var(--mint);
  padding: 1.5rem 0 1.5rem 2rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.5;
}
.section--dark .pull-quote { color: var(--white); }

/* ---------- Two-Column Layout ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Método / Steps ---------- */
.method-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.method-step {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.method-step:hover {
  background: rgba(104,242,182,.08);
  border-color: rgba(104,242,182,.2);
  transform: translateY(-4px);
}
.method-step__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(104,242,182,.15);
  line-height: 1;
  margin-bottom: .5rem;
}
.method-step h4 {
  color: var(--mint);
  margin-bottom: .5rem;
}
.method-step p { font-size: .9rem; color: var(--gray-200); }

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(35,39,40,.08);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 48px; height: 48px;
  background: rgba(104,242,182,.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--dark);
  font-size: 1.3rem;
}
.service-card h3 { margin-bottom: .75rem; }
.service-card p { font-size: .9rem; }

/* ---------- Stats Row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.stat { text-align: center; }
.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--mint);
  line-height: 1;
}
.section--mint .stat__number { color: var(--dark); }
.stat__label {
  font-size: .85rem;
  color: var(--gray-400);
  margin-top: .5rem;
  font-weight: 500;
}
.section--mint .stat__label { color: var(--gray-600); }

/* ---------- Funnel Section ---------- */
.funnel-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.funnel-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--gray-50);
  transition: all var(--transition);
}
.funnel-item:hover {
  background: var(--white);
  box-shadow: 0 8px 32px rgba(35,39,40,.06);
}
.funnel-item__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--mint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: var(--dark);
}
.funnel-item h4 { margin-bottom: .25rem; }
.funnel-item p { font-size: .9rem; }

/* ---------- Audience / Para Quién ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.audience-card {
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--gray-100);
}
.audience-card--yes {
  background: rgba(104,242,182,.15);
  border-color: rgba(104,242,182,.4);
}
.audience-card--no {
  background: #f0e6e6;
  border-color: #d4b8b8;
}
.audience-card h3 { margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.audience-card li {
  padding: .5rem 0;
  font-size: .95rem;
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.audience-card li::before {
  flex-shrink: 0;
  font-weight: 700;
  margin-top: 2px;
}
.audience-card--yes li::before { content: '✓'; color: #2db87a; }
.audience-card--no li::before { content: '✗'; color: var(--gray-400); }

@media (max-width: 768px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 100px 0;
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(104,242,182,.08) 0%, transparent 50%);
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; position: relative; }
.cta-section p { color: var(--gray-200); margin-bottom: 2.5rem; max-width: 560px; margin-left: auto; margin-right: auto; position: relative; }
.cta-section .btn { position: relative; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 3rem 0 2rem;
  color: var(--gray-400);
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__logo {
  display: flex;
  align-items: center;
}
.footer__logo img {
  height: 36px;
  width: auto;
}
.footer__links {
  display: flex;
  gap: 1.5rem;
}
.footer__links a {
  color: var(--gray-400);
  font-size: .85rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--mint); }
.footer__copy { font-size: .8rem; width: 100%; text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.06); }

/* ---------- Page Header (sub-pages) ---------- */
.page-header {
  background: var(--dark);
  padding: 140px 0 80px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 1rem; }
.page-header p { color: var(--gray-200); max-width: 560px; margin: 0 auto; }

/* ---------- Contact Form ---------- */
.contact-form {
  display: grid;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(104,242,182,.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Calendly Embed ---------- */
.calendly-wrapper {
  min-height: 660px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--gray-50);
}

/* ---------- Animations (Scroll Reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Services Page Detail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.service-detail:last-child { border-bottom: none; }
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }
.service-detail h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-detail ul { margin-top: 1rem; }
.service-detail li {
  padding: .4rem 0;
  font-size: .95rem;
  color: var(--gray-600);
  padding-left: 1.25rem;
  position: relative;
}
.service-detail li::before {
  content: '';
  position: absolute;
  left: 0; top: .75rem;
  width: 6px; height: 6px;
  background: var(--mint);
  border-radius: 50%;
}
@media (max-width: 768px) {
  .service-detail { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail:nth-child(even) { direction: ltr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { min-height: auto; padding: 120px 0 80px; }
  .pull-quote { padding-left: 1.25rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
