/* ============================================
   LANDING DIVORCIO — DISEÑO MEJORADO 2026
   Mejoras visuales: hero con gradiente cálido,
   cards con hover elevado, FAQ pulido, CTA refinado
   ============================================ */

/* ===== HERO MEJORADO ===== */
.dv-hero {
  position: relative;
  padding: 64px 0 80px;
  background: var(--color-bg, #faf8f4);
  overflow: hidden;
}

/* Orbes decorativos */
.dv-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(73, 160, 120, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.dv-hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(73, 160, 120, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.dv-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Eyebrow con gradiente */
.dv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent, #49a078);
  font-weight: 700;
  font-family: var(--font-body);
  padding: 6px 14px;
  background: rgba(73, 160, 120, 0.1);
  border: 1px solid rgba(73, 160, 120, 0.2);
  border-radius: 20px;
  width: fit-content;
}

.dv-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  margin: 0;
  color: var(--color-text, #1f2421);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.dv-hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--color-text, #1f2421);
  margin: 0;
  max-width: 600px;
}

.dv-hero-bio {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted, #6b5d4a);
  margin: 0;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dv-hero-bio::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-whatsapp);
  border-radius: 50%;
}

/* Botones mejorados */
.dv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-whatsapp);
  color: white;
  padding: 16px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(73, 160, 120, 0.3);
  min-height: 48px;
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(73, 160, 120, 0.4);
}

.btn-whatsapp-large {
  padding: 18px 36px;
  font-size: 17px;
  border-radius: 12px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-text, #1f2421);
  padding: 16px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1.5px solid var(--color-border, #9cc5a1);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 48px;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--color-accent, #49a078);
  color: var(--color-accent, #49a078);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.btn-outline.btn-lg {
  padding: 18px 36px;
  font-size: 17px;
  border-radius: 12px;
}

/* ===== STATS CARD MEJORADO ===== */
.dv-stats-card {
  background: var(--color-surface, #dce1de);
  border: 1px solid var(--color-border, #9cc5a1);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 
    0 4px 24px rgba(42, 29, 21, 0.06),
    0 1px 2px rgba(42, 29, 21, 0.04);
}

.dv-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(73, 160, 120, 0.6);
}

.dv-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dv-stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(73, 160, 120, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dv-stat-icon svg {
  color: var(--color-accent, #49a078);
}

.dv-stat-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text, #1f2421);
  line-height: 1;
}

.dv-stat-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted, #6b5d4a);
  margin-top: 4px;
  line-height: 1.3;
}

/* Desktop stats inline */
@media (min-width: 1024px) {
  .dv-hero {
    padding: 80px 0 100px;
  }
  .dv-hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
  .dv-hero-content {
    flex: 0 0 58%;
  }
  .dv-stats-card {
    flex: 0 0 38%;
    padding: 36px;
  }
  .dv-stat-num {
    font-size: 32px;
  }
  .dv-stat-icon {
    width: 52px;
    height: 52px;
  }
}

/* ===== TOC MEJORADO ===== */
.dv-toc-section {
  padding: 56px 0;
  background: #216869;
  border-top: 1px solid rgba(73, 160, 120, 0.3);
  border-bottom: 1px solid rgba(73, 160, 120, 0.3);
}

.dv-toc-title {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 0 0 20px;
  color: #ffffff;
  font-weight: 600;
}

.dv-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.dv-toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.15);
}

.dv-toc a::before {
  content: "";
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dv-toc a:hover {
  color: #216869;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(73, 160, 120, 0.15);
  transform: translateX(4px);
}

.dv-toc a:hover::before {
  background: #216869;
}

.dv-toc a:hover::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

@media (min-width: 768px) {
  .dv-toc {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
  }
}

/* ===== SECTION BASE MEJORADA ===== */
.dv-section {
  padding: var(--space-section-mobile) 0;
}

.dv-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--color-text, #1f2421);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.dv-section-intro {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text, #1f2421);
  margin: 0 0 32px;
  max-width: 720px;
}

@media (min-width: 1024px) {
  .dv-section {
    padding: 80px 0;
  }
}

/* ===== TIPOS GRID MEJORADO ===== */
.dv-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .dv-types-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.dv-type-card {
  background: #216869;
  border: 1px solid var(--color-border, #9cc5a1);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dv-type-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent, #49a078);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dv-type-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(34, 87, 122, 0.1),
    0 4px 8px rgba(34, 87, 122, 0.06);
  border-color: rgba(73, 160, 120, 0.3);
}

.dv-type-card:hover::before {
  opacity: 1;
}

.dv-type-icon {
  width: 52px;
  height: 52px;
  background: rgba(73, 160, 120, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #dce1de;
}

.dv-type-icon svg {
  width: 26px;
  height: 26px;
}

.dv-type-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin: 0 0 12px;
  color: #ffffff;
  font-weight: 700;
}

.dv-type-card p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px;
}

.dv-type-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  flex-grow: 1;
}

.dv-type-card li {
  padding: 6px 0 6px 24px;
  position: relative;
}

.dv-type-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: #dce1de;
  border-radius: 2px;
  transform: rotate(45deg);
}

.dv-type-link {
  margin-top: auto;
  text-decoration: none;
  color: #dce1de;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(199, 249, 204, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.dv-type-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.dv-type-link:hover {
  color: var(--color-primary, #1f2421);
}

.dv-type-link:hover::after {
  transform: translateX(4px);
}

/* ===== SECTION ALTERNATING ===== */
.dv-section-alt {
  background: #216869;
}

/* ===== FAQ MEJORADO ===== */
.dv-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
}

.dv-faq-item {
  background: var(--color-bg, #faf8f4);
  border: 1px solid var(--color-border, #9cc5a1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dv-faq-item:hover {
  border-color: rgba(73, 160, 120, 0.3);
  box-shadow: 0 4px 12px rgba(42, 29, 21, 0.06);
}

.dv-faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text, #1f2421);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  transition: background 0.2s ease;
  background: transparent;
}

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

.dv-faq-item summary:hover {
  background: rgba(73, 160, 120, 0.04);
}

.dv-faq-item summary .faq-icon {
  width: 28px;
  height: 28px;
  background: rgba(73, 160, 120, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dv-faq-item summary .faq-icon svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent, #49a078);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dv-faq-item[open] summary .faq-icon {
  background: var(--color-accent, #49a078);
}

.dv-faq-item[open] summary .faq-icon svg {
  color: white;
  transform: rotate(45deg);
}

.dv-faq-answer {
  padding: 0 24px 24px;
  border-top: 1px solid rgba(73, 160, 120, 0.5);
  padding-top: 20px;
}

.dv-faq-answer p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text, #1f2421);
  margin: 0;
}

/* ===== CALLOUT MEJORADO ===== */
.dv-callout {
  background: rgba(73, 160, 120, 0.08);
  border: 1px solid rgba(73, 160, 120, 0.2);
  border-left: 4px solid var(--color-accent, #49a078);
  padding: 24px 28px;
  border-radius: 12px;
  margin: 28px 0;
  max-width: 720px;
}

.dv-section-alt .dv-callout {
  background: rgba(255, 255, 255, 0.9);
}

.dv-callout h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--color-text, #1f2421);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dv-callout h4::before {
  content: "";
  width: 24px;
  height: 24px;
  background: var(--color-accent, #49a078);
  border-radius: 6px;
  flex-shrink: 0;
}

.dv-callout p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  color: var(--color-text, #1f2421);
}

/* ===== CTA FINAL MEJORADO ===== */
.dv-cta-final {
  background: var(--color-primary, #1f2421);
  color: var(--color-bg, #faf8f4);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.dv-cta-final::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(73, 160, 120, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.dv-cta-final::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(73, 160, 120, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.dv-cta-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  position: relative;
  z-index: 1;
}

.dv-cta-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 16px;
  color: var(--color-bg, #faf8f4);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.dv-cta-header p {
  font-family: var(--font-body);
  font-size: 18px;
  margin: 0;
  opacity: 0.9;
}

.dv-thanks {
  background: var(--color-surface, #dce1de);
  border: 1px solid var(--color-whatsapp);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 32px;
  text-align: center;
}

.dv-thanks h3 {
  font-family: var(--font-heading);
  margin: 0 0 10px;
  color: var(--color-whatsapp);
  font-size: 22px;
}

.dv-thanks p {
  margin: 0 0 20px;
  font-family: var(--font-body);
  opacity: 0.9;
}

.dv-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .dv-cta-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
  }
}

/* ===== FORM MEJORADO ===== */
.dv-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--color-bg, #faf8f4);
  color: var(--color-text, #1f2421);
  padding: 36px;
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(42, 29, 21, 0.1),
    0 2px 8px rgba(42, 29, 21, 0.05);
}

.dv-form label {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
}

.dv-form input,
.dv-form select,
.dv-form textarea {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border, #9cc5a1);
  border-radius: 10px;
  background: white;
  color: var(--color-text, #1f2421);
  transition: all 0.2s ease;
}

.dv-form input:focus,
.dv-form select:focus,
.dv-form textarea:focus {
  outline: none;
  border-color: var(--color-accent, #49a078);
  box-shadow: 0 0 0 3px rgba(73, 160, 120, 0.15);
}

.dv-form-submit {
  background: var(--color-accent, #49a078);
  color: white;
  padding: 16px 28px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 48px;
}

.dv-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(73, 160, 120, 0.3);
}

/* ===== CONTACT BLOCK MEJORADO ===== */
.dv-contact-block {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 36px;
  backdrop-filter: blur(8px);
}

.dv-contact-block h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin: 0 0 24px;
  color: var(--color-bg, #faf8f4);
  font-weight: 700;
}

.dv-contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-bg, #faf8f4);
  margin-bottom: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
}

.dv-contact-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.dv-contact-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.dv-contact-link[href^="https://wa"] svg {
  color: var(--color-whatsapp);
}

.dv-contact-link[href^="mailto"] svg {
  color: var(--color-accent, #49a078);
}

.dv-contact-link strong {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dv-contact-link span {
  font-family: var(--font-heading);
  font-size: 17px;
}

.dv-hours {
  font-family: var(--font-body);
  font-size: 13px;
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dv-hours::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-whatsapp);
  border-radius: 50%;
}

/* ===== RESPONSIVE FINE-TUNING ===== */
@media (max-width: 767px) {
  .dv-hero {
    padding: 48px 0 64px;
  }
  
  .dv-hero-actions {
    flex-direction: column;
  }
  
  .dv-hero-actions .btn-whatsapp,
  .dv-hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
  
  .dv-type-card {
    padding: 24px;
  }
  
  .dv-cta-final {
    padding: 56px 0;
  }
  
  .dv-form {
    padding: 24px;
  }
  
  .dv-contact-block {
    padding: 24px;
  }
}

/* ===== MICRO-ANIMACIONES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dv-type-card {
  animation: fadeInUp 0.5s ease-out forwards;
}

.dv-type-card:nth-child(1) { animation-delay: 0.1s; }
.dv-type-card:nth-child(2) { animation-delay: 0.2s; }
.dv-type-card:nth-child(3) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .dv-type-card {
    animation: none;
  }

  .dv-type-card:hover {
    transform: none;
  }

  .btn-whatsapp:hover,
  .btn-outline:hover,
  .btn-icon:hover,
  .dv-form-submit:hover {
    transform: none;
  }
}

/* ===== ICON BUTTONS ===== */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon-outline {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid var(--color-border, #9cc5a1);
  color: var(--color-text, #1f2421);
  backdrop-filter: blur(8px);
}

.btn-icon-outline:hover {
  border-color: var(--color-accent, #49a078);
  color: var(--color-accent, #49a078);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.btn-icon svg {
  flex-shrink: 0;
}

.btn-icon-whatsapp {
  background: var(--color-whatsapp, #49a078);
  color: white;
  box-shadow: 0 4px 14px rgba(238, 158, 0, 0.3);
}

.btn-icon-whatsapp:hover {
  background: var(--color-whatsapp-dark, #49a078);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 158, 0, 0.4);
}
