/* ============================================
   TOKENS
   ============================================ */
:root{
  --maroon-900: #4A0F18;
  --maroon-700: #6E1524;
  --maroon-600: #8A1B2C;
  --charcoal: #14161B;
  --charcoal-soft: #1D2027;
  --cream: #F3EBDF;
  --cream-dim: #E8DECD;
  --ink: #201C1A;
  --copper: #C08A46;
  --copper-light: #E0B372;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --whatsapp-dark: #1EBE59;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 4px;
  --shadow-soft: 0 12px 30px rgba(20, 10, 8, 0.18);
  --max-width: 1120px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

p{ margin: 0 0 1em; }

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

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

.section-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible{
  outline: 3px solid var(--copper-light);
  outline-offset: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn svg{ width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.btn:hover{ transform: translateY(-2px); }

.btn-whatsapp{
  background: var(--whatsapp);
  color: #06210F;
}
.btn-whatsapp:hover{ background: var(--whatsapp-dark); }

.btn-outline{
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover{ border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-copper{
  background: var(--copper);
  color: #2B1B06;
}
.btn-copper:hover{ background: var(--copper-light); }

.btn-lg{ padding: 15px 28px; font-size: 1.02rem; }
.btn-full{ width: 100%; justify-content: center; }

/* ============================================
   HEADER
   ============================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  border-bottom: 3px solid var(--copper);
}

.header-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-mark{
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.brand-mark.small{ width: 42px; height: 42px; }

.brand-logo-box{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(224,179,114,0.4);
}
.brand-logo-box img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  background: #fff;
  display: block;
}
.brand-logo-box.logo-placeholder {
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(224,179,114,0.7);
}
.brand-logo-placeholder{
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-light);
}
.brand-logo-box.logo-placeholder .brand-logo-placeholder{ display: flex; }

.atom-icon{ width: 100%; height: 100%; }
.atom-icon ellipse{
  fill: none;
  stroke: var(--copper-light);
  stroke-width: 4.5;
}
.atom-core{ fill: var(--white); }

.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-title{
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.brand-sub{
  font-size: 0.68rem;
  color: var(--cream-dim);
  letter-spacing: 0.03em;
}

.main-nav{
  display: flex;
  gap: 28px;
}
.main-nav a{
  color: var(--cream-dim);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover{ color: var(--white); border-color: var(--copper); }

.portfolio-back{
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 9px 14px;
   border-radius: 999px;
   background: rgba(255,255,255,0.06);
   border: 1px solid rgba(255,255,255,0.16);
   color: var(--cream-dim);
   font-size: 0.78rem;
   font-weight: 700;
   letter-spacing: 0.02em;
   transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.portfolio-back:hover{
   color: var(--white);
   border-color: rgba(224,179,114,0.6);
   background: rgba(255,255,255,0.08);
   transform: translateY(-1px);
}

.header-cta{ padding: 9px 18px; font-size: 0.88rem; }
.header-cta svg{ width: 17px; height: 17px; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ============================================
   HERO
   ============================================ */
.hero{
  position: relative;
  background: linear-gradient(160deg, var(--maroon-900) 0%, var(--maroon-700) 55%, var(--maroon-600) 100%);
  color: var(--white);
  padding: 96px 24px 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero-circuits{
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
}

.hero-inner{
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow{
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--copper-light);
  margin-bottom: 14px;
}

.hero-title{
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 20px;
}

.hero-lede{
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin: 0 auto 34px;
}

.hero-actions{
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 920px;
  margin: 0 auto;
}

.hero-scroll{
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
}
.hero-scroll span{
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--copper-light);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ opacity: 1; transform: translate(-50%, 0); }
  70%{ opacity: 0; transform: translate(-50%, 12px); }
  100%{ opacity: 0; transform: translate(-50%, 12px); }
}

/* ============================================
   SERVICES
   ============================================ */
.services{
  background: var(--charcoal);
  color: var(--white);
  padding: 84px 0;
}

.services-head{
  max-width: 640px;
  margin-bottom: 48px;
}
.services-head h2{
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: 14px;
}
.services-head p{
  color: rgba(255,255,255,0.72);
  font-size: 1.02rem;
  margin: 0;
}

.services-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.services-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.services-list li{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 1.05rem;
  font-weight: 500;
}
.services-list .dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  flex-shrink: 0;
}

.services-note{
  background: var(--charcoal-soft);
  border-left: 4px solid var(--copper);
  padding: 28px;
  border-radius: var(--radius);
}
.services-note h3{
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--copper-light);
}
.services-note p{
  color: rgba(255,255,255,0.78);
  margin-bottom: 20px;
}

/* ============================================
   TRUST / NOSOTROS
   ============================================ */
.trust{
  background: var(--cream);
  padding: 84px 0;
}
.trust-inner{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.trust-copy h2{
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  color: var(--maroon-700);
  margin-bottom: 20px;
}
.trust-copy p{
  color: #4A4038;
  font-size: 1.02rem;
}

.trust-stats{
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.stat{
  background: var(--white);
  border: 1px solid var(--cream-dim);
  border-left: 4px solid var(--maroon-700);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.stat-num{
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--maroon-700);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label{
  font-size: 0.92rem;
  color: #55483F;
}

/* ============================================
   PAYMENTS
   ============================================ */
.payments{
  background: var(--maroon-900);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.payments h2{
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.payments-lede{
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
}
.payments-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.pay-badge{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--cream);
}

/* ============================================
   CONTACT
   ============================================ */
.contact{
  position: relative;
  background: linear-gradient(160deg, var(--maroon-700) 0%, var(--maroon-900) 100%);
  color: var(--white);
  padding: 88px 0;
  overflow: hidden;
  isolation: isolate;
}
.contact-circuits{ opacity: 0.1; }

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

.contact-info h2{
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
  margin-bottom: 16px;
}
.contact-info > p{
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
  max-width: 420px;
}

.contact-link{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}
.contact-link:hover{ color: var(--copper-light); }
.contact-link svg{ width: 22px; height: 22px; fill: var(--copper-light); flex-shrink: 0; }

.contact-form{
  background: var(--cream);
  color: var(--ink);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.contact-form h3{
  font-size: 1.3rem;
  color: var(--maroon-700);
  margin-bottom: 20px;
}
.contact-form label{
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 14px 0 6px;
  color: #4A4038;
}
.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--cream-dim);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus{
  border-color: var(--copper);
}
.contact-form .btn{ margin-top: 20px; }
.form-hint{
  font-size: 0.8rem;
  color: #6B5F53;
  margin: 10px 0 0;
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer{
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 32px 0;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  max-width: 480px;
}
.footer-brand .brand-logo-box{
  border-radius: 10px;
}
.footer-location{
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.85rem;
  font-style: normal;
  line-height: 1.35;
}
.footer-location strong{
  color: rgba(255,255,255,0.85);
}
.footer-credit{
  font-size: 0.85rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.developer-brand{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--copper-light);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
}
.developer-brand img{
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.developer-brand:hover{ border-color: var(--copper-light); }

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float{
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  z-index: 60;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover{ transform: scale(1.08); }
.whatsapp-float svg{ width: 30px; height: 30px; fill: #06210F; }
.whatsapp-float.visible{ display: flex; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px){
  .services-grid,
  .trust-inner,
  .contact-inner{
    grid-template-columns: 1fr;
  }
  .trust-stats{ flex-direction: row; flex-wrap: wrap; }
  .stat{ flex: 1 1 200px; }
}

@media (max-width: 720px){
  .main-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 3px solid var(--copper);
    transition: max-height 0.3s ease;
  }
  .main-nav.open{ max-height: 260px; }
  .main-nav a{
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
  }
  .nav-toggle{ display: flex; }
  .header-cta{ display: none; }
  .services-list{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction: column; text-align: center; }
}

@media (max-width: 480px){
  .hero{ padding: 76px 20px 90px; }
  .hero-actions{ flex-direction: column; width: 100%; }
  .hero-actions .btn{ width: 100%; justify-content: center; }
}
