@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #0070B8;
  --primary-dark: #004B87;
  --accent: #8A55C5;
  --dark: #1a1a1a;
  --white: #ffffff;
  --gray-bg: #f6f9fb;
  --text: #333333;
  --muted: #667085;
  --border: #e7edf2;
  --shadow: 0 14px 36px rgba(0, 75, 135, 0.10);
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, sans-serif;
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  background: var(--white);
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.top-bar {
  background: linear-gradient(90deg, #eef7ff 0%, #f8fbff 50%, #eef7ff 100%);
  border-bottom: 1px solid #d9e8f5;
  padding: 12px 0;
  font-size: 14px;
  color: #335b7d;
}

.top-bar .container,
.top-bar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.top-bar a {
  color: #335b7d;
  text-decoration: none;
}

.top-bar a:hover {
  color: #0a78c9;
}

.top-bar-info span,
.top-bar .container > div:last-child span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

/* Navigation */
nav {
  background: var(--white);
  height: 78px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(217, 232, 245, 0.85);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 124px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 26px;
}

.nav-links a {
  color: var(--dark);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  transition: var(--transition);
  border: 0;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 10px 22px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-dark);
  padding: 10px 20px;
  border: 1px solid rgba(0, 112, 184, 0.22);
}

.btn-secondary:hover {
  background: #f1f8fc;
}

nav .btn-primary {
  background: linear-gradient(135deg, #0a78c9, #1694e8);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(10, 120, 201, 0.18);
}

/* Hero Premium 50/50 */
.hero-premium {
  position: relative;
  min-height: 560px;
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 58%, #eef7ff 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-premium::before {
  content: '';
  position: absolute;
  right: -160px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(0, 112, 184, 0.08);
  pointer-events: none;
}

.hero-premium__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 56px;
  padding-top: 58px;
  padding-bottom: 58px;
}

.hero-premium__content {
  max-width: 560px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: '';
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hero-premium h1 {
  max-width: 620px;
  margin-bottom: 22px;
  color: #102033;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-premium p {
  max-width: 560px;
  margin-bottom: 30px;
  color: #4c5b6a;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.68;
}

.hero-premium__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-premium__actions .btn-primary,
.hero-premium__actions .btn-secondary {
  padding: 13px 24px;
  border-radius: 999px;
}

.hero-premium__media {
  position: relative;
  min-height: 480px;
  border-radius: 0 0 0 90px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 75, 135, 0.17);
  background: #dfeaf3;
}

.hero-premium__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(0,112,184,0.06));
  pointer-events: none;
}

.hero-premium__media img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center center;
}

.hero-premium__badge {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 14px 34px rgba(0, 75, 135, 0.16);
  backdrop-filter: blur(10px);
}

.hero-premium__badge strong {
  color: #102033;
  font-size: 14px;
}

.hero-premium__badge span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

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

.section-soft {
  background: var(--gray-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: clamp(26px, 2.5vw, 36px);
  color: var(--dark);
  position: relative;
  padding-bottom: 13px;
  letter-spacing: -0.02em;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
}

.section-header p {
  margin: 14px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
}

/* Treatment cards */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.spec-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.spec-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.spec-card:focus {
  outline: 3px solid rgba(0, 112, 184, 0.22);
  outline-offset: 3px;
}

.spec-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
}

.spec-content {
  padding: 20px;
  text-align: center;
}

.spec-icon {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, var(--primary), #70c9ff);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -48px auto 14px;
  position: relative;
  border: 4px solid var(--white);
  box-shadow: 0 8px 18px rgba(0, 112, 184, 0.22);
}

.spec-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spec-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--dark);
}

.spec-content p {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.45;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.trust-card strong {
  display: block;
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 6px;
}

.trust-card p {
  font-size: 13px;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 28px;
  align-items: start;
}

.contact-card,
.form-container {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-card h3 {
  margin-bottom: 14px;
  color: var(--dark);
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 12px;
  color: #555555;
}

.contact-list a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #d7dee6;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 12px;
}

.form-row .form-control {
  margin-bottom: 0;
}

.form-control:focus {
  outline: 2px solid rgba(0, 112, 184, 0.18);
  border-color: var(--primary);
}

.legal-check {
  font-size: 12px;
  color: #555555;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 10px 0 14px;
}

.legal-check a {
  color: var(--primary-dark);
  font-weight: 700;
}

.btn-submit {
  width: 100%;
  padding: 13px;
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: var(--white);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: var(--transition);
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.08);
  background: #20ba5a;
}

.wa-icon {
  width: 34px;
  height: 34px;
  display: block;
}

/* Modal */
.modal-open {
  overflow: hidden;
}

.treatment-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(7, 20, 38, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  backdrop-filter: blur(6px);
}

.treatment-modal.is-open {
  display: flex;
}

.treatment-modal__card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  max-width: 920px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  animation: modalUp 0.22s ease;
}

.treatment-modal__image {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.treatment-modal__content {
  padding: 36px;
}

.treatment-modal__content h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.treatment-modal__content p {
  color: #56606d;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.treatment-modal__content ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.treatment-modal__content li {
  position: relative;
  padding-left: 26px;
  color: #4b5563;
  font-size: 14px;
}

.treatment-modal__content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--primary);
  font-weight: 900;
}

.treatment-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@keyframes modalUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cookies */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  padding: 16px;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1060px;
  margin: 0 auto;
}

.cookie-content p {
  font-size: 13px;
  color: #555555;
  margin-bottom: 10px;
}

.cookie-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 700;
}

.cookie-buttons .accept {
  background: var(--primary);
  color: var(--white);
}

.cookie-buttons .reject,
.cookie-buttons .settings {
  background: var(--white);
  color: var(--dark);
}

/* Footer */
.main-footer {
  background: var(--dark);
  color: #a8a8a8;
  padding: 34px 0 16px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 25px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 7px;
}

.footer-links a {
  color: #a8a8a8;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.main-footer .logo-img {
  height: 92px;
  filter: brightness(1.1);
}

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 15px;
  text-align: center;
  font-size: 11px;
}

/* Legal/status pages */
.legal-page,
.status-page {
  padding: 70px 20px;
  background: linear-gradient(135deg, rgba(0, 112, 184, 0.07), rgba(138, 85, 197, 0.04));
  min-height: calc(100vh - 220px);
}

.legal-card,
.status-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 34px 28px;
}

.legal-card h1,
.status-card h1 {
  text-align: center;
  font-size: clamp(24px, 2.5vw, 34px);
  margin-bottom: 10px;
  color: var(--dark);
}

.legal-card h2 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.legal-card p,
.legal-card li {
  color: #555555;
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-card ul {
  padding-left: 22px;
}

.status-card {
  text-align: center;
  max-width: 760px;
}

.status-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #fff;
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.status-icon.success {
  background: #22c55e;
}

.status-icon.error {
  background: #ef4444;
}

.status-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-premium__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .hero-kicker {
    justify-content: center;
  }

  .hero-premium p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-premium__actions {
    justify-content: center;
  }

  .hero-premium__media {
    min-height: 360px;
    border-radius: 26px;
  }

  .hero-premium__media img {
    min-height: 360px;
  }

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

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

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

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  nav {
    height: 70px;
  }

  .logo-img {
    height: 96px;
  }

  .nav-links {
    display: none;
  }

  .hero-premium {
    min-height: auto;
  }

  .hero-premium__inner {
    padding-top: 36px;
    padding-bottom: 38px;
  }

  .hero-premium h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero-premium p {
    font-size: 16px;
  }

  .hero-premium__actions .btn-primary,
  .hero-premium__actions .btn-secondary {
    width: 100%;
  }

  .hero-premium__media,
  .hero-premium__media img {
    min-height: 300px;
  }

  .hero-premium__badge {
    left: 18px;
    bottom: 18px;
  }

  .section {
    padding: 42px 0;
  }

  .specialties-grid,
  .trust-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row .form-control {
    margin-bottom: 12px;
  }

  .treatment-modal__card {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow: auto;
  }

  .treatment-modal__image {
    height: 230px;
    min-height: 230px;
  }

  .treatment-modal__content {
    padding: 26px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }
}


/* Botón de regreso en páginas legales */
.legal-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.legal-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
