/* Reset y variables */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7f9;
  --color-bg-soft: #eef5f8;
  --color-text: #1a2332;
  --color-text-light: #4a5568;
  --color-primary: #0c2d48;
  --color-primary-hover: #163d5c;
  --color-accent: #0d9488;
  --color-accent-soft: #ccfbf1;
  --color-border: #e2e8f0;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(12, 45, 72, 0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.text-muted { color: var(--color-text-light); font-size: 0.95rem; }

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary);
  letter-spacing: -0.3px;
}

.logo span {
  color: var(--color-accent);
}

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

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.2s;
}

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

.btn-nav {
  background: var(--color-primary) !important;
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
}

.btn-nav:hover {
  background: var(--color-primary-hover) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
}

/* Hero */
.hero {
  padding: 88px 0 72px;
  background: linear-gradient(165deg, #e8f4f8 0%, #f7fafc 45%, #ffffff 100%);
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--color-text-light);
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page hero (páginas internas) */
.page-hero {
  padding: 56px 0 40px;
  background: linear-gradient(165deg, #e8f4f8 0%, #ffffff 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--color-primary-hover);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
  width: 100%;
  margin-top: 14px;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.btn-large {
  padding: 15px 32px;
  font-size: 1.02rem;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-intro {
  text-align: center;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto 44px;
  font-size: 1.05rem;
}

/* Benefits */
.section-benefits {
  padding: 40px 0;
  background: var(--color-bg-soft);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.benefit-item {
  text-align: center;
  padding: 12px;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
}

.benefit-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.benefit-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

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

.cards-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(12, 45, 72, 0.1);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.card-list {
  list-style: none;
  margin: 8px 0 12px;
  flex-grow: 1;
}

.card-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.card-list-light li {
  color: rgba(255,255,255,0.9);
}

.card-list-light li::before {
  color: #5eead4;
}

.card-highlight {
  background: var(--color-primary);
  color: #fff;
  border: none;
  text-align: center;
  padding: 40px 32px;
}

.card-highlight h3 {
  color: #fff;
  font-size: 1.35rem;
}

.card-highlight p {
  color: rgba(255,255,255,0.9);
}

.card-highlight .btn-primary {
  background: #fff;
  color: var(--color-primary);
  margin-top: 18px;
  display: inline-flex;
  width: auto;
}

.card-highlight .btn-primary:hover {
  background: #e0f2fe;
}

.card-service {
  text-align: center;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
}

.process-step {
  text-align: center;
}

.process-number {
  display: inline-block;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.process-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.process-step p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* CTA */
.cta-section {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 26px;
  font-size: 1.08rem;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--color-primary);
}

.cta-section .btn-primary:hover {
  background: #e0f2fe;
}

.cta-section .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.cta-section .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* Contact section */
.section-contact {
  background: var(--color-bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h2 {
  text-align: left;
  margin-bottom: 20px;
}

.contact-list {
  list-style: none;
  margin-bottom: 28px;
}

.contact-list li {
  margin-bottom: 12px;
  color: var(--color-text-light);
}

.contact-list a {
  color: var(--color-accent);
  font-weight: 500;
}

.contact-list a:hover {
  text-decoration: underline;
}

.social-links p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.social-icon:hover {
  background: var(--color-accent);
}

.map-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 10px;
}

/* Agendar page */
.agendar-container {
  max-width: 640px;
}

.agendar-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.agendar-notice {
  background: var(--color-bg-soft);
  border-left: 4px solid var(--color-accent);
  padding: 14px 16px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  color: var(--color-text);
  border-radius: 0 8px 8px 0;
}

.agendar-card h2 {
  font-size: 1.2rem;
  text-align: left;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.agendar-card p {
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.agendar-options h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.agendar-buttons {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.agendar-footer-note {
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-align: center;
}

/* Footer */
.footer {
  background: #071a2a;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 28px 0;
  font-size: 0.9rem;
}

.footer-note {
  margin-top: 6px;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 64px 0 52px;
  }

  .section {
    padding: 56px 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .agendar-card {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Legal pages */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.25rem;
  text-align: left;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--color-text-light);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.legal-content ul {
  margin: 10px 0 18px 20px;
  color: var(--color-text-light);
  font-size: 0.98rem;
}

.legal-content ul li {
  margin-bottom: 6px;
}

.legal-date {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
}
