/* ═══════════════════════════════════════════════════════════
   VOLUMEN 3D · ESTILOS COMPARTIDOS
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy: #073F67;
  --navy-dark: #052E4A;
  --teal: #03A198;
  --teal-dark: #028077;
  --paper: #F5F4EF;
  --ink: #1A1A1A;
  --muted: #6B7280;
  --line: #E5E5E0;
  --wa: #25D366;
  --max: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 14px; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { color: var(--ink); }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }

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

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

.section {
  padding: 80px 0;
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.btn--primary:hover {
  background: #1FB958;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn--secondary {
  background: var(--navy);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--navy-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--ghost:hover {
  background: var(--navy);
  color: #fff;
}

/* ═══ HEADER ═══ */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.header__logo:hover {
  transform: scale(1.05);
}

.header__logo img {
  height: 38px;
  width: auto;
  transition: filter 0.3s ease;
}

.header__logo:hover img {
  filter: drop-shadow(0 4px 12px rgba(7, 63, 103, 0.18));
}

.header__nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.header__nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--teal-dark);
}

.header__nav a.active {
  color: var(--teal-dark);
  font-weight: 600;
}

.header__cta {
  background: var(--wa);
  color: #fff;
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__cta:hover {
  background: #1FB958;
  color: #fff;
}

.header__menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--navy);
}

@media (max-width: 920px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    gap: 18px;
  }
  .header__nav.open {
    display: flex;
  }
  .header__menu-btn {
    display: block;
  }
  .header__cta {
    display: none;
  }
}

/* ═══ FOOTER ═══ */
.footer {
  background: var(--navy);
  color: #fff;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 720px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer__brand img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.footer__brand:hover img {
  transform: rotate(-8deg) scale(1.08);
}

.footer__brand span {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.footer__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer__ct {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer__links, .footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a, .footer__contact a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer__links a:hover, .footer__contact a:hover {
  color: var(--teal);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 720px) {
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ═══ HERO SECTION (compartido) ═══ */
.hero-page {
  background: var(--paper);
  padding: 80px 0 60px;
}

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

.hero-page h1 {
  margin-bottom: 18px;
}

.hero-page__lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ═══ BREADCRUMBS ═══ */
.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--teal-dark);
}

.crumbs span {
  margin: 0 6px;
}

/* ═══ CARD GRID ═══ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(7, 63, 103, 0.08);
}

.card__ic {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-dark);
}

.card__link::after {
  content: "→";
  transition: transform 0.2s;
}

.card:hover .card__link::after {
  transform: translateX(4px);
}

/* ═══ CTA STRIP ═══ */
.cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.cta-strip h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.cta-strip__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══ WhatsApp Float ═══ */
.wafloat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
}

.wafloat__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wa);
  color: #fff;
  padding: 14px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  animation: wapulse 3s ease-in-out infinite;
}

.wafloat__btn:hover {
  background: #1FB958;
  color: #fff;
  transform: translateY(-2px);
}

@keyframes wapulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 38px rgba(37, 211, 102, 0.7), 0 0 0 12px rgba(37, 211, 102, 0.08); }
}

@media (max-width: 720px) {
  .wafloat__btn {
    padding: 12px 16px;
    font-size: 0.88rem;
  }
}

/* ═══ BACK TO TOP ═══ */
.backtop {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(7, 63, 103, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 89;
  border: none;
  box-shadow: 0 4px 16px rgba(7, 63, 103, 0.3);
}

.backtop.show {
  opacity: 1;
  pointer-events: auto;
}

.backtop:hover {
  background: var(--teal);
  transform: translateY(-3px);
}

@media (max-width: 720px) {
  .backtop {
    bottom: 96px;
    left: 16px;
    width: 42px;
    height: 42px;
  }
}

/* ═══ ANIMATIONS ═══ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══ FORMS ═══ */
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}

.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  margin-top: 14px;
}

.form input, .form select, .form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s;
}

.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form textarea {
  resize: vertical;
  min-height: 100px;
}

.form__send {
  width: 100%;
  margin-top: 20px;
  background: var(--wa);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.form__send:hover {
  background: #1FB958;
  transform: translateY(-2px);
}

/* ═══ BLOG ESPECÍFICO ═══ */
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(7, 63, 103, 0.08);
}

.post-card__img {
  aspect-ratio: 16/9;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.post-card__body {
  padding: 24px;
}

.post-card__meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.post-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.post-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.post {
  max-width: 720px;
  margin: 0 auto;
}

.post__meta {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.post__lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.post h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 1.7rem;
}

.post h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.post p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.post ul, .post ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.post li {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.post blockquote {
  border-left: 4px solid var(--teal);
  padding: 16px 0 16px 24px;
  margin: 24px 0;
  background: var(--paper);
  border-radius: 0 12px 12px 0;
  padding-right: 20px;
  font-style: italic;
  color: var(--navy);
}

/* ═══ MATERIAL DETAIL ═══ */
.mat-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 60px;
}

.mat-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}

.mat-row__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.mat-row__title h2 {
  margin-bottom: 4px;
}

.mat-row__title p {
  color: var(--muted);
  font-size: 0.92rem;
}

.mat-row__badge {
  background: var(--teal);
  color: #fff;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.mat-row__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 720px) {
  .mat-row__cols {
    grid-template-columns: 1fr;
  }
}

.mat-col h4 {
  margin-bottom: 12px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mat-col--pros h4 {
  color: var(--teal-dark);
}

.mat-col--cons h4 {
  color: #B85450;
}

.mat-col ul {
  padding-left: 20px;
}

.mat-col li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--ink);
}

/* ═══ SERVICIO DETAIL ═══ */
.serv-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 920px) {
  .serv-content {
    grid-template-columns: 1fr;
  }
}

.serv-feat {
  background: var(--paper);
  border-radius: 18px;
  padding: 28px;
}

.serv-feat h3 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.serv-feat ul {
  list-style: none;
  padding: 0;
}

.serv-feat li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.serv-feat li::before {
  content: "✓";
  color: var(--teal-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.serv-feat li:last-child {
  border-bottom: none;
}

/* ═══ FAQ STYLE ═══ */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--teal);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__content {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
