/* ============================================
   MAIN SITE STYLES - site.html
   ============================================ */

body {
  background: var(--surface-light);
  color: var(--text-on-light);
}

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

/* ========== HEADER ========== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--surface-light);
  box-shadow: var(--neu-light-flat);
  z-index: 1000;
  transition: height var(--transition-medium), box-shadow var(--transition-medium);
}

.header.scrolled {
  height: var(--header-height-scrolled);
  background: rgba(232, 234, 240, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(31, 45, 80, 0.08);
}

@supports not (backdrop-filter: blur(12px)) {
  .header.scrolled {
    background: var(--surface-light);
    box-shadow: var(--neu-light-raised);
  }
}

.header__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.header__logo-img {
  height: 32px;
  width: auto;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__logo-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  color: var(--color-cloudburst);
  letter-spacing: var(--ls-wide);
  line-height: 1;
}

.header__logo-role {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: var(--fw-semibold);
  color: var(--text-on-light-muted);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  line-height: 1;
}

.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.header__nav-list a {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-on-light);
  letter-spacing: var(--ls-normal);
  padding: var(--space-xs) 0;
}

.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
  z-index: 1001;
  cursor: pointer;
}

.header__hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--color-cloudburst);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop nav */
@media (min-width: 1024px) {
  .header__nav {
    display: block;
  }

  .header__hamburger {
    display: none;
  }
}

/* ========== MOBILE MENU ========== */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--surface-light);
  box-shadow: -8px 0 24px rgba(31, 45, 80, 0.15);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
  padding: calc(var(--header-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
}

.mobile-menu[aria-hidden="false"] {
  transform: translateX(0);
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mobile-menu__link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--text-on-light);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-menu__link:hover {
  background: var(--color-cloudburst);
  color: var(--text-white);
}

/* ========== HERO ========== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
  /* Imagen de fondo */
  background-image: url('../assets/images/hero-familia.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay azul oscuro sobre la imagen del hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(21, 30, 56, 0.82) 0%,
    rgba(31, 45, 80, 0.78) 50%,
    rgba(42, 61, 107, 0.75) 100%
  );
  z-index: 0;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
}

.hero__logo {
  margin-bottom: var(--space-xl);
}

.hero__logo-img {
  width: 280px;
  height: auto;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.hero__logo-img:hover {
  animation: breatheGlowWhite 2s ease-in-out;
}

.hero__logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  font-size: 3.5rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: var(--fw-regular);
  color: var(--text-white);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.hero__title-sub {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  color: var(--text-on-navy-muted);
  margin-top: var(--space-xs);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: var(--fw-light);
  color: var(--text-on-navy);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-2xl);
}

.hero__cta {
  margin-top: var(--space-lg);
  padding: var(--space-sm) var(--space-2xl);
}

.hero__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.hero__buttons .neu-btn {
  padding: var(--space-sm) var(--space-2xl);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-on-navy-muted);
  font-size: 1.5rem;
  animation: bounceDown 2s infinite;
}

/* ========== SECTIONS ========== */

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section > .container {
  position: relative;
  z-index: 2;
}

.section--light {
  background: var(--surface-light);
}

.section--navy {
  background: var(--color-cloudburst);
  color: var(--text-on-navy);
}

/* Transition gradients between sections */
.section--navy + .section--light::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to bottom, var(--color-cloudburst), var(--surface-light));
  z-index: 1;
  pointer-events: none;
}

.section--light + .section--navy::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to bottom, var(--surface-light), var(--color-cloudburst));
  z-index: 1;
  pointer-events: none;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-md);
}

.section__title--dark {
  color: var(--color-cloudburst);
}

.section__title--light {
  color: var(--text-white);
}

.section__line {
  width: 100px;
  height: 3px;
  margin: 0 auto;
  border-radius: 2px;
  transform-origin: center;
}

.section__line {
  background: var(--color-cloudburst);
  box-shadow: 0 2px 6px rgba(31, 45, 80, 0.3);
}

.section__header.animated .section__line {
  animation: lineGrowFromCenter 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-delay: 300ms;
}

.section__line--cherry {
  background: var(--color-tart-cherry);
  box-shadow: 0 2px 6px rgba(181, 34, 58, 0.3);
}

/* ========== SOBRE NOSOTROS ========== */

#sobre-nosotros .section__header {
  margin-bottom: var(--space-xl);
}

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__frame {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.about__photo-placeholder {
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-cloudburst-dark) 0%, var(--color-cloudburst) 100%);
  color: var(--text-white);
  font-size: 5rem;
}

.about__content {
  text-align: center;
}

.about__name {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  color: var(--color-cloudburst);
  margin-bottom: var(--space-2xs);
}

.about__role {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: var(--fw-light);
  color: var(--text-on-light-muted);
  margin-bottom: var(--space-lg);
}

.about__badges {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.about__bio {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--text-on-light);
  margin-bottom: var(--space-md);
}

.about__quote {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-style: italic;
  font-weight: var(--fw-light);
  line-height: var(--lh-loose);
  color: var(--text-on-light);
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
  background: var(--surface-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--neu-light-inset);
  position: relative;
}

.about__quote-icon {
  color: var(--color-tart-cherry);
  font-size: 0.875rem;
  opacity: 0.5;
  margin-right: var(--space-xs);
  font-style: normal;
}

.about__quote-cite {
  display: block;
  font-size: var(--fs-small);
  font-style: normal;
  font-weight: var(--fw-semibold);
  color: var(--color-cloudburst);
  margin-top: var(--space-xs);
}

.about__cta {
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .about {
    grid-template-columns: 1fr 1.5fr;
  }

  .about__content {
    text-align: left;
  }

  .about__badges {
    justify-content: flex-start;
  }
}

/* ========== SERVICIOS ========== */

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.services__card {
  padding: var(--space-xl);
  transition: transform var(--transition-smooth), box-shadow var(--transition-medium), border-color var(--transition-fast);
  border-top: 3px solid transparent;
}

.services__card:hover {
  transform: translateY(-6px);
  box-shadow: 10px 10px 24px #0f1828, -10px -10px 24px #2f4578;
  border-top-color: var(--color-tart-cherry);
}

.services__icon {
  margin-bottom: var(--space-lg);
}

.services__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--text-white);
  margin-bottom: var(--space-sm);
}

.services__desc {
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--text-on-navy);
  margin-bottom: var(--space-md);
}

.services__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.services__list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--text-on-navy);
}

.services__list i {
  color: var(--color-tart-cherry);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== ARTICULOS ========== */

.articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.articles__card {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-medium), border-color var(--transition-fast);
  border-left: 3px solid transparent;
}

.articles__card:hover {
  transform: translateY(-6px);
  box-shadow: 10px 10px 24px #c0c2cb, -10px -10px 24px #ffffff;
  border-left-color: var(--color-tart-cherry);
}

.articles__date {
  align-self: flex-start;
}

.articles__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--color-cloudburst);
  line-height: var(--lh-tight);
}

.articles__excerpt {
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  color: var(--text-on-light-muted);
  flex: 1;
}

.articles__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-tart-cherry);
  transition: gap var(--transition-fast);
}

.articles__link:hover {
  gap: var(--space-sm);
}

.articles__link i {
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== TESTIMONIOS ========== */

.testimonials {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonials__track {
  overflow: hidden;
  position: relative;
}

.testimonials__slide {
  display: none;
}

.testimonials__slide.active {
  display: block;
  animation: fadeIn 600ms ease;
}

.testimonials__card {
  padding: var(--space-2xl);
  text-align: center;
}

.testimonials__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.testimonials__stars i {
  color: #FFD700;
  font-size: 1rem;
}

.testimonials__quote-mark {
  color: var(--color-tart-cherry);
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  opacity: 0.6;
}

.testimonials__text {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-style: italic;
  font-weight: var(--fw-light);
  line-height: var(--lh-loose);
  color: var(--text-on-navy);
  margin-bottom: var(--space-xl);
}

.testimonials__author {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.testimonials__name {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  color: var(--text-white);
  font-weight: var(--fw-semibold);
}

.testimonials__case {
  font-size: var(--fs-small);
  color: var(--text-on-navy-muted);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.testimonials__arrow {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.testimonials__arrow:hover {
  background: var(--color-tart-cherry);
  border-color: var(--color-tart-cherry);
  color: var(--text-white);
  transform: scale(1.08);
}

.testimonials__dots {
  display: flex;
  gap: var(--space-xs);
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), width var(--transition-base), border-radius var(--transition-base);
}

.testimonials__dot:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.2);
}

.testimonials__dot.active {
  background: var(--color-tart-cherry);
  width: 24px;
  border-radius: 5px;
  transform: scale(1);
}

/* ========== CONTACTO ========== */

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
}

.contact__info-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--color-cloudburst);
  margin-bottom: var(--space-sm);
}

.contact__info-desc {
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--text-on-light-muted);
  margin-bottom: var(--space-xl);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

/* Iconos cuadrados en contacto */
.contact__detail .neu-icon-circle {
  border-radius: var(--radius-sm);
}

.contact__detail div {
  flex: 1;
}

.contact__detail strong {
  display: block;
  font-weight: var(--fw-semibold);
  color: var(--color-cloudburst);
  margin-bottom: var(--space-2xs);
}

.contact__detail p,
.contact__detail a {
  font-size: var(--fs-small);
  color: var(--text-on-light-muted);
}

.contact__detail a:hover {
  color: var(--color-tart-cherry);
}

.contact__social {
  display: flex;
  gap: var(--space-sm);
}

/* Iconos de redes sociales cuadrados en contacto */
.contact__social .neu-icon-circle {
  border-radius: var(--radius-sm);
}

/* WhatsApp icon green styling */
.contact__social-whatsapp {
  color: #25D366;
}

.contact__social-whatsapp:hover {
  color: #25D366;
  box-shadow: 4px 4px 12px rgba(37, 211, 102, 0.25), -4px -4px 12px #ffffff;
}

.contact__form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.contact__form-group {
  position: relative;
}

.contact__form-error {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-tart-cherry);
  margin-top: var(--space-2xs);
  min-height: 1.2em;
}

.contact__submit {
  width: 100%;
  margin-top: var(--space-md);
}

.contact__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-sm);
  margin-top: var(--space-lg);
  text-align: center;
}

.contact__success i {
  font-size: 2.5rem;
  color: rgb(34, 197, 94);
}

.contact__success p {
  color: var(--text-on-light);
  font-weight: var(--fw-medium);
}

.contact__trust-signals {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(31, 45, 80, 0.1);
}

.contact__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-on-light-muted);
  font-size: var(--fs-small);
}

.contact__trust-item i {
  color: var(--color-cloudburst);
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .contact {
    grid-template-columns: 1fr 1.2fr;
  }

  .contact__form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== FOOTER ========== */

.footer {
  background: var(--color-dark-black);
  color: var(--text-on-dark);
  padding: var(--space-3xl) 0 var(--space-lg);
  position: relative;
}

.footer__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, var(--surface-light), var(--color-dark-black));
  pointer-events: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__logo {
  margin-bottom: var(--space-md);
}

.footer__logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__logo-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  color: var(--text-white);
  letter-spacing: var(--ls-wide);
  line-height: 1;
}

.footer__logo-role {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: var(--fw-semibold);
  color: var(--text-on-dark-muted);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  line-height: 1;
}

.footer__desc {
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  color: var(--text-on-dark-muted);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  color: var(--text-white);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__links a {
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-tart-cherry);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
}

.footer__contact-item i {
  color: var(--color-tart-cherry);
  width: 16px;
}

.footer__contact-item a {
  color: var(--text-on-dark-muted);
  transition: color var(--transition-fast);
}

.footer__contact-item a:hover {
  color: var(--color-tart-cherry);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
  transition: background var(--transition-fast), color var(--transition-fast);
}

/* Social brand color hovers */
.footer__social a:hover {
  color: var(--text-white);
}

.footer__social a[href*="facebook"]:hover {
  background: #1877F2;
}

.footer__social a[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer__social a[href*="linkedin"]:hover {
  background: #0A66C2;
}

.footer__social a[href*="wa.me"]:hover,
.footer__social a[href*="whatsapp"]:hover {
  background: #25D366;
}

/* Fallback for unmatched social links */
.footer__social a:not([href*="facebook"]):not([href*="instagram"]):not([href*="linkedin"]):not([href*="wa.me"]):not([href*="whatsapp"]):hover {
  background: var(--color-tart-cherry);
}

.footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer__bottom p {
  font-size: var(--fs-xs);
  color: var(--text-on-dark-muted);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

/* ========== WHATSAPP BUTTON ========== */

.whatsapp-btn {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: #22C55E;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid var(--color-cloudburst);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  z-index: 900;
  transition: transform var(--transition-fast), box-shadow var(--transition-medium);
  animation: whatsappBreathe 3s ease-in-out infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(34, 197, 94, 0.5);
  animation-play-state: paused;
}

.whatsapp-btn:active {
  transform: scale(0.95);
  animation-play-state: paused;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */

@media (max-width: 767px) {
  .section {
    padding: var(--space-3xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero {
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-md) var(--space-xl);
  }

  .hero__logo-img {
    width: 200px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .whatsapp-btn {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }
}

/* ========== FAQ SECTION ========== */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface-white);
  border-radius: var(--radius-md);
  box-shadow: var(--neu-light-raised);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--color-cloudburst);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  transition: color var(--transition-base);
}

.faq-question:hover {
  color: var(--color-tart-cherry);
}

.faq-question i {
  flex-shrink: 0;
  font-size: var(--fs-small);
  transition: transform var(--transition-base);
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer.active {
  max-height: 600px;
}

.faq-answer p,
.faq-answer ul {
  padding: 0 var(--space-xl) var(--space-md);
  color: var(--text-on-light-muted);
  line-height: var(--lh-relaxed);
  font-size: var(--fs-body);
}

.faq-answer ul {
  padding-left: calc(var(--space-xl) + var(--space-lg));
  list-style: disc;
}

.faq-answer li {
  margin-bottom: var(--space-xs);
}

.faq-answer strong {
  color: var(--color-cloudburst);
}

/* Services FAQ link */
.services__faq-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  color: var(--color-cherry-light);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: color var(--transition-base);
}

.services__faq-link:hover {
  color: var(--text-white);
}

@media (max-width: 767px) {
  .faq-question {
    padding: var(--space-md);
    font-size: var(--fs-body);
  }

  .faq-answer p,
  .faq-answer ul {
    padding: 0 var(--space-md) var(--space-sm);
  }

  .faq-answer ul {
    padding-left: calc(var(--space-md) + var(--space-lg));
  }
}

/* ========================================
   TARIFAS PREFERENCIALES
   ======================================== */

.services__tarifas {
  margin-top: var(--space-2xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.services__tarifas-card {
  text-align: center;
  padding: var(--space-2xl);
}

.services__tarifas-icon {
  font-size: 2.5rem;
  color: var(--color-cherry-light);
  margin-bottom: var(--space-md);
}

.services__tarifas-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--text-white);
  margin-bottom: var(--space-sm);
  letter-spacing: var(--ls-wide);
}

.services__tarifas-text {
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--text-on-navy);
  margin-bottom: var(--space-lg);
}

.services__tarifas-text strong {
  color: var(--color-cherry-light);
}

/* ========================================
   CALCULADORA DE COSTOS NOTARIALES
   ======================================== */

.calc__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: rgba(232, 234, 240, 0.7);
  margin-top: var(--space-sm);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.calc__seo-text {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.calc__seo-text p {
  font-size: var(--fs-body);
  color: rgba(232, 234, 240, 0.65);
  line-height: var(--lh-normal);
}

.calc__seo-text strong {
  color: rgba(232, 234, 240, 0.85);
}

.calc {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.calc__card {
  padding: var(--space-xl);
}

.calc__card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--color-cloudburst);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: var(--ls-wide);
}

.calc__card-title i {
  color: var(--color-tart-cherry);
}

.calc__field {
  margin-bottom: var(--space-lg);
}

.calc__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.calc__input-prefix {
  position: absolute;
  left: var(--space-md);
  font-weight: var(--fw-semibold);
  color: var(--text-on-light-muted);
  pointer-events: none;
  font-size: var(--fs-body);
}

.calc__input-money {
  padding-left: calc(var(--space-md) + 1.2em) !important;
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
}

.calc__help {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-on-light-muted);
  margin-top: var(--space-2xs);
}

.calc__submit {
  width: 100%;
  margin-top: var(--space-sm);
}

/* Input panel navy overrides */
.calc__input-panel .neu-label {
  color: rgba(232, 234, 240, 0.75);
}

.calc__input-panel .calc__input-prefix {
  color: rgba(232, 234, 240, 0.5);
}

.calc__input-panel .calc__help {
  color: rgba(232, 234, 240, 0.5);
}

.calc__input-panel .neu-input,
.calc__input-panel .neu-select {
  background: rgba(232, 234, 240, 0.08);
  color: var(--text-white);
  border: 1px solid rgba(232, 234, 240, 0.15);
  box-shadow: var(--neu-navy-inset);
}

.calc__input-panel .neu-input::placeholder {
  color: rgba(232, 234, 240, 0.35);
}

.calc__input-panel .neu-select option {
  background: var(--surface-navy);
  color: var(--text-white);
}

/* Per-heir result in input panel */
.calc__result-per-heir {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: rgba(181, 34, 58, 0.1);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-tart-cherry);
  text-align: center;
}

.calc__per-heir-label {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--text-on-light-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-xs);
}

.calc__per-heir-value {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-tart-cherry);
  font-variant-numeric: tabular-nums;
}

.neu-input--error {
  border: 2px solid var(--color-tart-cherry) !important;
  box-shadow: var(--neu-light-inset), 0 0 0 3px rgba(181, 34, 58, 0.15) !important;
}

/* Results - Navy card */
.calc__card--results {
  padding: var(--space-xl);
  box-shadow: var(--neu-navy-raised);
}

.calc__card-title--light {
  color: var(--text-white);
}

.calc__card-title--light i {
  color: var(--color-tart-cherry);
}

.calc__result-group {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(232, 234, 240, 0.1);
}

.calc__result-heading {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-cloudburst);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-xs);
}

.calc__result-heading--light {
  color: rgba(232, 234, 240, 0.6);
}

.calc__result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2xs) 0;
  font-size: var(--fs-body);
  color: var(--text-on-light-muted);
}

.calc__result-row--light {
  color: rgba(232, 234, 240, 0.7);
}

.calc__result-row--light .calc__result-value {
  color: var(--text-white);
}

.calc__result-value {
  font-weight: var(--fw-semibold);
  color: var(--text-on-light);
  font-variant-numeric: tabular-nums;
}

.calc__result-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-md);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-cloudburst);
  border-bottom: 2px solid rgba(31, 45, 80, 0.15);
}

.calc__result-subtotal--light {
  color: rgba(232, 234, 240, 0.85);
  border-bottom-color: rgba(232, 234, 240, 0.15);
}

.calc__result-subtotal--light .calc__result-value {
  color: var(--text-white);
}

.calc__result-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-sm);
  margin: var(--space-md) 0;
  background: var(--color-tart-cherry);
  color: var(--text-white);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
}

.calc__result-total .calc__result-value {
  color: var(--text-white);
  font-size: var(--fs-h3);
}

.calc__cta {
  text-align: center;
  padding-top: var(--space-md);
}

.calc__cta-text {
  font-size: var(--fs-body);
  color: var(--text-on-light-muted);
  margin-bottom: var(--space-md);
}

.calc__cta-text--light {
  color: rgba(232, 234, 240, 0.7);
}

.calc__disclaimer {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: rgba(31, 45, 80, 0.04);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-cloudburst);
  margin-top: var(--space-md);
}

.calc__disclaimer--navy {
  background: rgba(232, 234, 240, 0.1);
  border-left-color: rgba(232, 234, 240, 0.4);
  grid-column: 1 / -1;
}

.calc__disclaimer--navy i {
  color: rgba(232, 234, 240, 0.7);
}

.calc__disclaimer--navy p {
  color: rgba(232, 234, 240, 0.8);
}

.calc__disclaimer--navy a {
  color: var(--color-tart-cherry);
}

.calc__disclaimer--navy strong {
  color: var(--text-white);
}

.calc__disclaimer i {
  color: var(--color-cloudburst);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.calc__disclaimer p {
  font-size: var(--fs-xs);
  color: var(--text-on-light-muted);
  line-height: var(--lh-normal);
}

.calc__disclaimer a {
  color: var(--color-tart-cherry);
  font-weight: var(--fw-semibold);
}

@media (min-width: 768px) {
  .calc {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

@media (max-width: 767px) {
  .calc__result-total {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xs);
  }

  .services__tarifas-card {
    padding: var(--space-lg);
  }
}
