/* ============================================================
   TramitaCars — Design tokens
   A gestoría for vehicle paperwork. Signature idea: the DGT/notary
   "sello" (official seal) — vehicle transfers live and die by
   stamps and signatures, so the seal ring becomes the emblem,
   repeated quietly as a watermark between sections.
   ============================================================ */

:root{
  /* Color */
  --ivory:        #FAF7F0;
  --ivory-deep:    #F3EEE1;
  --ink:           #1B1812;
  --ink-soft:      #4A4438;
  --gold:          #B4893A;
  --gold-bright:   #D8AE5C;
  --gold-pale:     #EADFC2;
  --gold-line:     #D8C89A;
  --black-gold:    #16130D;
  --white:         #FFFFFF;
  --whatsapp:      #25D366;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-card: 0 18px 40px -22px rgba(27, 24, 18, 0.25);
  --shadow-soft: 0 8px 24px -12px rgba(27, 24, 18, 0.15);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }
input, select{ font-family: inherit; }

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

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before{
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.gold-text{
  background: linear-gradient(100deg, var(--gold) 10%, var(--gold-bright) 55%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all .22s ease;
  white-space: nowrap;
}
.btn-gold{
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--black-gold);
  box-shadow: 0 10px 24px -10px rgba(180,137,58,.55);
}
.btn-gold:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(180,137,58,.65); }

.btn-outline{
  background: transparent;
  border-color: var(--gold-line);
  color: var(--ink);
}
.btn-outline:hover{ border-color: var(--gold); background: var(--gold-pale); }

.btn-outline-light{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.4);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover{ background: rgba(255,255,255,.14); }

.btn-block{ width: 100%; }
.btn[disabled]{ opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn svg{ width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-line);
}
.header-row{
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand{ display: flex; align-items: center; gap: 10px; }
.brand-mark{ width: 34px; height: 34px; }
.brand-name{
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}

.main-nav{ display: flex; align-items: center; gap: 30px; }
.main-nav a{
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 4px 0;
}
.main-nav a:hover, .main-nav a.active{ color: var(--ink); }
.main-nav a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--gold);
}
.nav-dropdown{ position: relative; }
.nav-dropdown > a::after{
  content:"▾"; margin-left: 5px; font-size: 10px; color: var(--gold);
}
.dropdown-panel{
  position: absolute; top: calc(100% + 16px); left: -20px;
  background: var(--white); border: 1px solid var(--gold-line);
  border-radius: var(--radius-md); padding: 10px;
  min-width: 200px; box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .2s ease;
}
.nav-dropdown:hover .dropdown-panel{ opacity:1; visibility: visible; transform: translateY(0); }
.dropdown-panel a{ display:block; padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.dropdown-panel a:hover{ background: var(--ivory-deep); color: var(--gold); }

.header-cta{ display:flex; align-items:center; gap: 18px; }
.header-cta .btn{ padding: 12px 22px; font-size: 13.5px; }
.locator-link{ font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.nav-toggle{ display: none; }

@media (max-width: 980px){
  .main-nav{ display: none; }
  .locator-link{ display: none; }
  .nav-toggle{
    display: flex; width: 40px; height: 40px; align-items: center; justify-content: center;
    border: 1px solid var(--gold-line); border-radius: 8px; background: var(--white);
  }
}

/* ---------- Ticker ---------- */
.ticker{
  background: var(--black-gold);
  color: var(--gold-pale);
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.ticker-track{
  display: inline-flex;
  animation: scroll-left 32s linear infinite;
}
.ticker-track span{
  padding: 13px 28px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 28px;
}
.ticker-track span::after{ content:"◆"; color: var(--gold); font-size: 8px; }
@keyframes scroll-left{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------- Sections generic ---------- */
section{ padding: 96px 0; position: relative; }
.section-tight{ padding: 72px 0; }
.section-alt{ background: var(--ivory-deep); }
.section-dark{ background: var(--black-gold); color: var(--white); }

.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(30px, 4vw, 44px); margin-top: 14px; }
.section-head p{ color: var(--ink-soft); margin-top: 16px; font-size: 16.5px; }

/* Seal watermark divider */
.seal-divider{
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  opacity: .5;
}

/* ---------- Cards ---------- */
.card{
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* ---------- Service tiles ---------- */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.services-grid > a:nth-child(1),
.services-grid > a:nth-child(2){ grid-column: span 1; }
.service-tile{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.1;
  isolation: isolate;
  border: 1px solid var(--gold-line);
}
.service-tile img{ width:100%; height:100%; object-fit: cover; transition: transform .5s ease; }
.service-tile::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(22,19,13,.05) 30%, rgba(22,19,13,.86) 100%);
  z-index: 1;
}
.service-tile::after{
  content:"";
  position:absolute; right:-40px; bottom:-40px; width:140px; height:140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,192,138,.35), transparent 70%);
  z-index: 1;
}
.service-tile:hover img{ transform: scale(1.06); }
.service-label{
  position:absolute; left:22px; right:22px; bottom:20px; z-index: 2;
  display:flex; align-items:center; justify-content: space-between;
  color: var(--white); font-weight: 600; font-size: 16.5px;
  font-family: var(--font-display);
}
.service-label .arrow{
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--gold-bright);
  display:flex; align-items:center; justify-content:center;
  transition: all .25s ease;
  flex-shrink: 0;
}
.service-tile:hover .arrow{ background: var(--gold); }

@media (max-width: 860px){
  .services-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .services-grid{ grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--black-gold);
  color: var(--gold-pale);
  padding: 70px 0 28px;
}
.footer-top{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(216,192,90,.25);
}
.footer-top .brand-name{ color: var(--white); }
.footer-desc{ color: #B8AF98; font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-col h4{
  font-family: var(--font-body); font-size: 12.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-bright); margin-bottom: 16px; font-weight: 600;
}
.footer-col a{ display:block; color: #C9C0A9; font-size: 14.5px; margin-bottom: 11px; }
.footer-col a:hover{ color: var(--gold-bright); }
.footer-bottom{
  display:flex; justify-content: space-between; align-items:center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; font-size: 13px; color: #8A8067;
}

@media (max-width: 860px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
}

/* ---------- WhatsApp float ---------- */
.wa-float{
  position: fixed; right: 26px; bottom: 26px; z-index: 200;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--whatsapp);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  border: 2px solid var(--gold-bright);
  transition: transform .2s ease;
}
.wa-float:hover{ transform: scale(1.08); }
.wa-float svg{ width: 30px; height: 30px; }

/* ---------- Utility ---------- */
.mt-8{ margin-top: 8px; } .mt-16{ margin-top:16px; } .mt-24{ margin-top:24px; }
.text-center{ text-align: center; }
.flex{ display:flex; } .items-center{ align-items:center; } .gap-12{ gap:12px; }
