/*
Theme Name: Zeltra
Theme URI: https://zeltra.tech
Author: Zeltra
Author URI: https://zeltra.tech
Description: Tema personalizado para Zeltra. Paleta verde oscuro inspirada, optimizado para conversión en mercado LATAM.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zeltra
Tags: agency, dark, green, ecommerce, software, portfolio, business
*/

/* ── CSS Variables ── */
:root {
  --dark: #0d2318;
  --dark2: #122b1e;
  --mid: #1a3d2b;
  --green: #27ae72;
  --green-bright: #2ecc8a;
  --green-glow: rgba(39,174,114,0.18);
  --white: #f5faf7;
  --gray: #8eaa9a;
  --card-bg: #ffffff;
  --text-dark: #0d2318;
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--dark); color: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-family: 'Syne', sans-serif; }

/* ── Navigation ── */
#site-header {
    display: flex;
}
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%; height: 70px;
  background: rgba(13,35,24,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(39,174,114,0.12);
  transition: background .3s;
}
.site-header.scrolled { background: rgba(13,35,24,0.99); }
.site-branding .site-title a {
  font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800;
  color: var(--white); text-decoration: none; letter-spacing: -0.5px;
}
.site-branding .site-title a span { color: var(--green-bright); }

/* ── Logo size fix ── */
.site-header .custom-logo,
.site-header img.custom-logo,
.custom-logo-link img {
  max-height: 40px !important;
  width: auto !important;
  max-width: 160px !important;
  display: block;
}

/* ── Header always visible ── */
#site-header{
	display: flex !important;
}
.site-header {
  background: rgba(13,35,24,0.97) !important;
}
.main-navigation ul { display: flex; gap: 2.2rem; list-style: none; }
.main-navigation ul a {
  color: rgba(245,250,247,0.75); text-decoration: none;
  font-size: .9rem; font-weight: 400; letter-spacing: .3px; transition: color .2s;
}
.main-navigation ul a:hover { color: var(--green-bright); }
.header-cta {
  background: var(--green); color: #fff; border: none;
  padding: .55rem 1.4rem; border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-size: .9rem; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: background .2s, transform .15s;
}
.header-cta:hover { background: var(--green-bright); transform: translateY(-1px); }

/* ── Hero Section ── */
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 6% 5rem; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 70% at 65% 40%, rgba(39,174,114,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(39,174,114,0.07) 0%, transparent 60%),
    linear-gradient(160deg, #0d2318 0%, #0f2d1e 40%, #122b1e 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(39,174,114,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39,174,114,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 50%, black 0%, transparent 80%);
}
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(39,174,114,0.12); border: 1px solid rgba(39,174,114,0.3);
  border-radius: 20px; padding: .35rem 1rem;
  font-size: .8rem; font-weight: 500; color: var(--green-bright); margin-bottom: 1.8rem;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-bright); box-shadow: 0 0 8px var(--green-bright);
  animation: pulse 2s infinite;
}
.hero-section h1 {
  font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -1.5px; color: var(--white); margin-bottom: 1.4rem;
}
.hero-section h1 em { font-style: normal; color: var(--green-bright); }
.hero-sub {
  font-size: 1.05rem; line-height: 1.7; color: rgba(245,250,247,0.7);
  max-width: 520px; margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.stat-num {
  font-family: 'Syne', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--white);
}
.stat-num span { color: var(--green-bright); }
.stat-label { font-size: .78rem; color: var(--gray); margin-top: .1rem; }

/* ── Buttons ── */
.btn-primary, .wp-block-button__link {
  background: var(--green); color: #fff;
  padding: .85rem 2rem; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 500;
  text-decoration: none; display: inline-block; border: none; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 0 24px rgba(39,174,114,0.25);
}
.btn-primary:hover { background: var(--green-bright); transform: translateY(-2px); box-shadow: 0 0 36px rgba(39,174,114,0.4); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--white);
  padding: .85rem 2rem; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 500;
  text-decoration: none; display: inline-block;
  border: 1.5px solid rgba(245,250,247,0.2); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--green-bright); color: var(--green-bright); }

/* ── Section Shared ── */
.zeltra-section { padding: 6rem 6%; }
.zeltra-section.light-bg { background: #f5faf7; }
.zeltra-section.dark2-bg { background: var(--dark2); }
.section-tag {
  display: inline-block; color: var(--green-bright); font-size: .8rem; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: .8rem;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800; line-height: 1.12;
  letter-spacing: -1px; color: var(--white); margin-bottom: 1rem;
}
.section-title.dark { color: var(--text-dark); }
.section-sub {
  font-size: 1rem; color: var(--gray); max-width: 500px; line-height: 1.7; margin-bottom: 3rem;
}
.section-sub.dark { color: #4a6358; }

/* ── Services Grid ── */
.services-grid-top {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 1.2rem;
}
.services-grid-bottom { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.service-card {
  background: var(--card-bg); border-radius: 14px; padding: 2rem 1.8rem;
  position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s; cursor: default;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(39,174,114,0.18); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.3rem;
}
.service-card h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--green); margin-bottom: .6rem;
}
.service-card p { font-size: .88rem; line-height: 1.65; color: #4a6358; }
.service-arrow {
  position: absolute; bottom: 1.4rem; right: 1.6rem;
  color: var(--green); font-size: 1.2rem;
  opacity: 0; transition: opacity .2s, transform .2s; transform: translateX(-6px);
}
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ── Process ── */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; position: relative;
}
.process-grid::before {
  content: ''; position: absolute; top: 32px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent); z-index: 0;
}
.process-step { position: relative; z-index: 1; text-align: center; padding: 2rem 1.2rem; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--mid); border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: var(--green-bright);
  margin: 0 auto 1.3rem; position: relative;
}
.step-num::after {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%; border: 1px solid rgba(39,174,114,0.2);
}
.process-step h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.process-step p { font-size: .82rem; color: var(--gray); line-height: 1.6; }

/* ── Why Zeltra ── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.why-features { display: flex; flex-direction: column; gap: 1.5rem; }
.why-feature {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.4rem 1.6rem; border-radius: 12px;
  background: white; border: 1px solid rgba(39,174,114,0.12);
  transition: box-shadow .2s, transform .2s;
}
.why-feature:hover { box-shadow: 0 8px 30px rgba(39,174,114,0.12); transform: translateX(4px); }
.why-feature-icon {
  width: 44px; height: 44px; flex-shrink: 0; background: rgba(39,174,114,0.1);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.why-feature h4 { font-size: .95rem; font-weight: 700; color: var(--text-dark); margin-bottom: .3rem; }
.why-feature p { font-size: .82rem; color: #4a6358; line-height: 1.6; }
.why-visual {
  background: var(--dark); border-radius: 16px; padding: 2.5rem;
  border: 1px solid rgba(39,174,114,0.15);
}
.metric-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid rgba(39,174,114,0.1);
}
.metric-row:last-child { border-bottom: none; }
.metric-label { font-size: .82rem; color: var(--gray); }
.metric-val { font-size: 1.1rem; font-weight: 700; color: var(--green-bright); }
.metric-bar-wrap { width: 120px; height: 6px; background: rgba(39,174,114,0.15); border-radius: 3px; }
.metric-bar-fill { height: 100%; border-radius: 3px; background: var(--green); }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, #1a3d2b 0%, #0d2318 100%);
  text-align: center; padding: 5rem 6%; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(39,174,114,0.12) 0%, transparent 65%);
}
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── Footer ── */
.site-footer {
  background: #080f0a; padding: 3.5rem 6% 2rem;
  border-top: 1px solid rgba(39,174,114,0.1);
}
.footer-top {
  display: flex; justify-content: space-between; gap: 3rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(39,174,114,0.08); flex-wrap: wrap;
}
.footer-brand p { font-size: .83rem; color: var(--gray); max-width: 260px; line-height: 1.65; margin-top: .8rem; }
.footer-col h5 {
  font-weight: 700; font-size: .85rem; color: var(--white); margin-bottom: 1rem; letter-spacing: .5px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { text-decoration: none; font-size: .82rem; color: var(--gray); transition: color .2s; }
.footer-col ul a:hover { color: var(--green-bright); }
.footer-bottom {
  margin-top: 2rem; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .78rem; color: rgba(142,170,154,0.5); }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Animations ── */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── Responsive ── */
@media (max-width: 900px) {
  .services-grid-top { grid-template-columns: 1fr; }
  .services-grid-bottom { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid::before { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .main-navigation { display: none; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .hero-section { padding-top: 120px; }
}

@media (max-width: 474px) {
  .hero-section h1{
    font-size: clamp(1.7rem, 5vw, 4rem);
  }
}

/* ── WordPress Core ── */
.wp-block-image { margin: 2rem 0; }
.entry-content p { line-height: 1.8; margin-bottom: 1.2rem; }
.entry-content h2, .entry-content h3 { margin: 2rem 0 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; }

/* ── Mobile Fix v5 ── */
@media (max-width: 600px) {
  html, body { overflow-x: hidden !important; max-width: 100vw; }
   * { box-sizing: border-box; }
.hero-section,
.zeltra-section,
.cta-section,
.site-footer,
.site-header { width: 100%; max-width: 100vw; overflow-x: hidden; }
.hero-content { width: 100%; max-width: 100%; }
.hero-sub { max-width: 100%; }
h1 { word-break: break-word; overflow-wrap: break-word; }
.hero-actions { width: 100%; }
.hero-stats { width: 100%; }
  .site-header { padding: 0 5%; }
  .header-cta { padding: .45rem 1rem; font-size: .82rem; }

  .hero-section { padding: 90px 5% 3rem; min-height: auto; }
  .hero-section h1 { font-size: 1.7rem !important; letter-spacing: -.8px; }
  .hero-sub { font-size: .92rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; text-align: center; box-sizing: border-box; }
  .hero-stats { gap: 1.2rem; flex-wrap: initial; }
  .stat-num { font-size: 1.5rem; display: flex; justify-content: center;}
  .stat-label { text-align: center; }
  .zeltra-section { padding: 3.5rem 5%; }
  .section-title { font-size: 1.65rem !important; letter-spacing: -.5px; }

  .services-grid-top,
  .services-grid-bottom { grid-template-columns: 1fr; gap: 1rem; }

  .process-grid { grid-template-columns: 1fr; gap: 1rem; }

  .why-visual { margin-top: 1.5rem; padding: 1.5rem; }
  .metric-bar-wrap { width: 70px; }
  .metric-row { flex-wrap: wrap; gap: .5rem; }

  .cta-section { padding: 3.5rem 5%; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn-primary,
  .cta-actions .btn-ghost { width: 100%; max-width: 300px; text-align: center; }

  .site-footer { padding: 3rem 5% 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .4rem; }
}

/* ── Hero Visual / Browser Mock ── */
.hero-visual {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: min(480px, 42vw);
  animation: fadeRight .9s .2s ease both;
}
.browser-mock {
  background: #1a3d2b;
  border-radius: 14px;
  border: 1px solid rgba(39,174,114,0.2);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(39,174,114,0.1);
}
.browser-bar {
  background: #122b1e; padding: .8rem 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.bd1 { background: #ff5f56; }
.bd2 { background: #ffbd2e; }
.bd3 { background: #27c93f; }
.browser-url {
  flex: 1; background: rgba(0,0,0,0.3); border-radius: 4px;
  padding: .3rem .8rem; font-size: .75rem; color: #8eaa9a;
  margin-left: .4rem;
}
.browser-body {
  padding: 1.5rem;
  background: linear-gradient(135deg, #0d2318 0%, #1a3d2b 100%);
  min-height: 240px;
  display: flex; flex-direction: column; justify-content: center; gap: .8rem;
}
.mock-headline {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 800; color: #f5faf7;
}
.mock-sub { font-size: .8rem; color: #8eaa9a; }
.mock-bar {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #27ae72 0%, #2ecc8a 100%);
}
.mock-bar.w60 { width: 60%; }
.mock-bar.w80 { width: 80%; opacity: .5; }
.mock-bar.w40 { width: 40%; opacity: .3; }
.float-card {
  position: absolute; bottom: -20px; right: -20px;
  background: rgba(13,35,24,0.95);
  border: 1px solid rgba(39,174,114,0.25);
  border-radius: 10px; padding: .9rem 1.2rem;
  backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: .8rem;
  animation: float 4s ease-in-out infinite;
}
.float-icon { font-size: 1.4rem; }
.float-text { font-size: .72rem; }
.float-text strong { color: #2ecc8a; font-size: .9rem; display: block; }

@keyframes fadeRight {
  from { opacity: 0; transform: translate(30px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .hero-visual { display: none; }
}

/* ── Fix logo header ── */
.site-header .custom-logo-link,
.site-header .custom-logo-link img {
  max-height: 40px !important;
  width: auto !important;
  max-width: 160px !important;
  display: block !important;
}

/* ── Fix hero position para browser mock ── */
.hero-section {
  position: relative !important;
}

/* ── Fix hero layout desktop ── */
@media (min-width: 901px) {
  .hero-section {
    display: flex;
    align-items: center;
  }
  .hero-content {
    max-width: 52%;
  }
  .hero-visual {
    display: block !important;
  }
}