/* css/components.css */

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 42px;
  width: auto;
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-ink);
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-ink);
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--color-primary);
  transition: right 0.2s ease;
}

.nav-link.is-active::after,
.nav-link:hover::after {
  right: 0;
}

.nav-link.is-active,
.nav-link:hover {
  color: var(--color-primary);
}

.nav-cta {
  padding: 11px 22px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--color-border);
    transition: max-height 0.25s ease;
  }
  .nav-menu.is-open {
    max-height: 400px;
  }
  .nav-menu .nav-link,
  .nav-menu .nav-cta {
    width: 100%;
    padding: 16px 24px;
    border-top: 1px solid var(--color-cream);
  }
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 200;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--color-white);
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 64px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  height: 38px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.footer-brand p {
  color: #b9c4dc;
  max-width: 32ch;
}

.footer-contact h3,
.footer-social h3 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-contact a,
.footer-social a,
.footer-social span {
  color: #b9c4dc;
  display: block;
  margin-bottom: 10px;
}

.footer-contact a:hover,
.footer-social a:hover {
  color: var(--color-white);
}

.footer-copy {
  text-align: center;
  color: #7f8cac;
  font-size: 0.8rem;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Hero (inner pages — texto centrado, fondo sólido) */
.hero {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 88px 0;
}

.hero .section-eyebrow {
  color: #9db6e8;
}

.hero h1,
.hero p {
  color: var(--color-white);
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.1rem;
  color: #d3ddef;
}

/* Hero (home — split con imagen) */
.hero-split {
  background: var(--color-cream);
  color: var(--color-ink);
  padding: 72px 0 96px;
}

.hero-split .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-split h1 {
  font-size: 3.25rem;
  margin-bottom: 20px;
}

.hero-split .hero-content p {
  font-size: 1.1rem;
  color: var(--color-gray);
  margin-bottom: 32px;
  max-width: 46ch;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-stat {
  position: absolute;
  left: -24px;
  bottom: -24px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 24px;
  max-width: 220px;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat span {
  font-size: 0.82rem;
  color: var(--color-gray);
}

@media (max-width: 900px) {
  .hero-split .container {
    grid-template-columns: 1fr;
  }
  .hero-split h1 {
    font-size: 2.25rem;
  }
  .hero-media img {
    height: 300px;
  }
  .hero-stat {
    left: 16px;
    bottom: -20px;
  }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.card .card-media {
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* Diferenciales strip */
.diferenciales-strip {
  background: var(--color-cream);
  padding: 72px 0;
}

.diferenciales-strip .card-grid {
  margin-top: 0;
  grid-template-columns: repeat(3, 1fr);
}

.diferencial-item {
  text-align: center;
  padding: 8px 24px;
}

.diferencial-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.diferencial-item p {
  color: var(--color-gray);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .diferenciales-strip .card-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Precios */
.price-category {
  margin-bottom: 48px;
}

.price-category h3 {
  font-size: 1.3rem;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--color-ink);
}

.price-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.15s ease;
}

.price-item:last-child {
  border-bottom: none;
}

.price-item:hover {
  color: var(--color-primary);
}

.price-item .price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--color-primary-emphasis);
  white-space: nowrap;
  margin-left: 16px;
}

/* Equipo */
.team-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.25s ease;
}

.team-card:hover {
  box-shadow: var(--shadow-hover);
}

.team-card-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--color-cream);
}

.team-card-photo.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-size: 0.9rem;
}

/* Badge */
.badge {
  display: inline-block;
  background: var(--color-primary-subtle);
  color: var(--color-primary-emphasis);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
  vertical-align: middle;
}

.badge-success {
  background: var(--color-success-subtle);
  color: var(--color-success);
}

.badge-info {
  background: var(--color-info-subtle);
  color: var(--color-info);
}
