/* ============================================
   APOSTOLADO DIGITAL — Design tokens
   ============================================ */
:root {
  --ad-blue: #0F52BA;
  --ad-orange: #FF6E42;
  --dorado: #C9962B;
  --teal: #3E9C93;
  --coral: #EF8266;
  --ad-blue-soft: #D6E6F3;
  --ad-blue-deep: #A6C5D7;
  --ink: #241E22;
  --ink-soft: #5B5259;
  --paper: #FFFFFF;
  --border-soft: #EAE1D3;

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-card: 0 18px 40px -20px rgba(122, 31, 74, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

a { text-decoration: none; color: inherit; }

img, svg { max-width: 100%; display: block; }

::selection { background: var(--ad-blue); color: var(--ad-blue-soft); }

:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================
   Type helpers
   ============================================ */
.ad-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 0.9rem;
}

.ad-h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 1.4rem;
}

.ad-h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.ad-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 82ch;
  margin: 0 auto 1.1rem;
}

.text-center .ad-lead { margin-left: auto; margin-right: auto; }

.ad-lead-small {
  font-size: 0.92rem;
  font-style: italic;
  opacity: 0.85;
}

.ad-text-accent { color: var(--ad-blue); }

/* ============================================
   Buttons
   ============================================ */
.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 2px solid transparent;
}

.ad-btn-primary {
  background: var(--ad-blue);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(122, 31, 74, 0.55);
}
.ad-btn-primary:hover {
  background: var(--ad-orange);
  transform: translateY(-2px);
  color: #fff;
}

.ad-btn-outline {
  background: transparent;
  color: var(--ad-blue);
  border-color: var(--ad-blue);
}
.ad-btn-outline:hover {
  background: var(--ad-blue);
  color: #fff;
  transform: translateY(-2px);
}

.ad-btn-block { width: 100%; }

/* ============================================
   Nav
   ============================================ */
.ad-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.ad-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}

.ad-logo-mark {
  color: var(--ad-blue);
  font-size: 1.25rem;
  line-height: 1;
}

.ad-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ad-nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.ad-nav-links a:hover { color: var(--ad-blue); }

.ad-nav-cta {
  background: var(--ad-blue);
  color: #fff !important;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
}
.ad-nav-cta:hover { background: var(--ad-orange); }

.ad-nav-toggle {
  border: none;
  background: transparent;
  width: 34px;
  height: 26px;
  position: relative;
  padding: 0;
}
.ad-nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.ad-nav-toggle span:nth-child(1) { top: 2px; }
.ad-nav-toggle span:nth-child(2) { top: 12px; }
.ad-nav-toggle span:nth-child(3) { top: 22px; }

@media (max-width: 991.98px) {
  .ad-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .ad-nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .ad-nav-links a { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid var(--border-soft); }
  .ad-nav-links a:last-child { border-bottom: none; margin-top: 0.5rem; }
  .ad-nav-cta { text-align: center; }
}

/* ============================================
   Hero
   ============================================ */
.ad-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF9F4 100%);
}

.ad-hero-halo {
  position: absolute;
  top: -20%;
  right: -12%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,31,74,0.06) 0%, rgba(122,31,74,0) 70%);
  pointer-events: none;
}

.ad-hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 1.4rem;
}

.ad-hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.ad-hero-art {
  max-width: 520px;
  margin: 0 auto;
}

.ad-hero-svg {
  width: 100%;
  height: auto;
}

.ad-hero-image {
    width: 90%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ============================================
   Sections
   ============================================ */
.ad-section {
  padding: 5.5rem 0;
}

.ad-section-ad-blue-soft {
  background: var(--ad-blue-soft);
}

.ad-section-sostenibilidad {
  background: var(--ad-blue-deep);
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* ============================================
   Service cards
   ============================================ */
.ad-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.ad-card-highlight {
  border-color: var(--ad-blue);
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF3F7 100%);
}

.ad-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ad-blue-deep);
  color: var(--ad-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.ad-badge-icon-alt {
  background: var(--ad-blue);
  color: #fff;
}

.ad-card-title {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.ad-card-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.ad-card-highlight .ad-card-price { color: var(--ad-blue); }

.ad-card-text {
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.ad-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ad-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.ad-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.ad-card-highlight .ad-list li::before { background: var(--ad-blue); }

.ad-card-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

.ad-card .ad-btn { margin-top: auto; align-self: flex-start; }

/* ============================================
   Portfolio
   ============================================ */
.ad-portfolio-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  background: var(--paper);
}

.ad-portfolio-browser {
  display: flex;
  gap: 6px;
  padding: 0.9rem 1rem;
  background: var(--ad-blue-deep);
}

.ad-portfolio-browser span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(122,31,74,0.25);
}

.ad-portfolio-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--ink-soft);
  /* background: repeating-linear-gradient(135deg, #FBF6EF, #FBF6EF 12px, #F4EBDD 12px, #F4EBDD 24px); */
  text-align: center;
  padding: 1.5rem;
  background-image: url("/img/hero01.png");
}

.ad-portfolio-placeholder svg { color: var(--ad-blue); opacity: 0.6; }
.ad-portfolio-placeholder p { margin: 0; font-size: 0.85rem; }

/* ============================================
   Form
   ============================================ */
.ad-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
  text-align: left;
}

.ad-input {
  width: 100%;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--paper);
  transition: border-color 0.15s ease;
}

.ad-input:focus {
  outline: none;
  border-color: var(--ad-blue);
}

.ad-form { text-align: left; }

.ad-form-feedback {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  min-height: 1.2em;
}

/* ============================================
   Footer
   ============================================ */
.ad-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 2.6rem 0;
}

.ad-footer .ad-logo-footer { color: #fff; }
.ad-footer .ad-logo-mark { color: var(--dorado); }

.ad-footer-tag {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin: 0.4rem 0 0;
}

.ad-footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* ============================================
   Responsive tweaks
   ============================================ */
@media (max-width: 767.98px) {
  .ad-section { padding: 3.5rem 0; }
  .ad-hero { padding: 3.5rem 0 3rem; text-align: left; }
  .ad-card { padding: 2rem 1.6rem; }
}
