/* Fuentes (Inter y Playfair Display) se cargan con <link> en views/index.ejs, no con @import */

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/* ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com *//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.visible {
  visibility: visible;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.block {
  display: block;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.flex-shrink {
  flex-shrink: 1;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.flex-wrap {
  flex-wrap: wrap;
}
.overflow-x-hidden {
  overflow-x: hidden;
}
.border {
  border-width: 1px;
}
.uppercase {
  text-transform: uppercase;
}
.italic {
  font-style: italic;
}
.grayscale {
  --tw-grayscale: grayscale(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.delay-100 {
  transition-delay: 100ms;
}
.delay-200 {
  transition-delay: 200ms;
}
.delay-300 {
  transition-delay: 300ms;
}

/* =============================================
   VARIABLES — MEDICAL BLUE PALETTE
   ============================================= */
:root {
  --navy:     #0A2647;
  --navy-800: #0C3157;
  --navy-700: #0F3D6B;
  --navy-600: #144272;
  --blue-500: #205295;
  --blue-400: #2C74B3;
  --blue-300: #4A9BD9;
  --blue-200: #7FBCE8;
  --blue-100: #BDD8F0;
  --blue-50:  #E8F1FA;
  --white:    #ffffff;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --green:    #10b981;
}

/* =============================================
   BASE
   ============================================= */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  font-feature-settings: 'ss01', 'cv11';
}

::-moz-selection {
  background: var(--navy);
  color: var(--white);
}

::selection {
  background: var(--navy);
  color: var(--white);
}

/* Typographic classes */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-400);
  display: inline-block;
}

.display-xl {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.display-lg {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.display-md {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.body-lg {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-500);
  font-weight: 400;
}

.body-md {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-500);
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--gray-200);
}

#navbar.scrolled .nav-link,
#navbar.scrolled .nav-brand {
  color: var(--navy) !important;
}

.nav-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  background: var(--white);
  color: var(--navy);
  padding: 14px 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border: 1px solid var(--white);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue-400);
  transform: translateY(101%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  color: var(--white);
  border-color: var(--blue-400);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
  padding: 14px 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border: 1px solid var(--navy);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue-500);
  transform: translateY(101%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.btn-dark:hover::before {
  transform: translateY(0);
}

.btn-dark > * {
  position: relative;
  z-index: 1;
}

.btn-dark:hover {
  border-color: var(--blue-500);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  padding: 16px 36px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

a:hover .btn-arrow,
button:hover .btn-arrow {
  transform: translateX(4px);
}

/* =============================================
   HERO — MEDICAL BLUE CINEMATIC
   ============================================= */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 40%, var(--navy-700) 100%);
  color: var(--white);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.55;
}

.hero-glow-1 {
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(44, 116, 179, 0.15) 0%, transparent 70%);
  top: -300px;
  left: -200px;
  animation: drift 18s ease-in-out infinite;
}

.hero-glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(32, 82, 149, 0.12) 0%, transparent 70%);
  bottom: -250px;
  right: -150px;
  animation: drift 22s ease-in-out infinite reverse;
}

.hero-glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  top: 50%;
  right: 10%;
  animation: drift 15s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(60px, -40px); }
  66%      { transform: translate(-40px, 50px); }
}

.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 50% 60%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.25), transparent),
    radial-gradient(2px 2px at 15% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.3), transparent);
  background-size: 200% 200%;
  animation: twinkle 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.2); }
}

/* Hero word reveal */
.word-reveal {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.word-reveal > span {
  display: inline-block;
  transform: translateY(110%);
  animation: word-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes word-up {
  to { transform: translateY(0); }
}

.delay-1 > span { animation-delay: 0.05s; }
.delay-2 > span { animation-delay: 0.15s; }
.delay-3 > span { animation-delay: 0.25s; }
.delay-4 > span { animation-delay: 0.35s; }
.delay-5 > span { animation-delay: 0.45s; }
.delay-6 > span { animation-delay: 0.55s; }
.delay-7 > span { animation-delay: 0.65s; }
.delay-8 > span { animation-delay: 0.75s; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-cue-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 1px;
  height: 50px;
  background: var(--white);
  animation: scroll-down 2.4s ease-in-out infinite;
}

@keyframes scroll-down {
  0%   { top: -50px; }
  100% { top: 50px; }
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-light {
  background: var(--white);
  color: var(--gray-900);
}

.section-blue-soft {
  background: var(--blue-50);
  color: var(--gray-900);
}

.section-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gray-200);
}

.section-navy .section-line {
  background: rgba(255, 255, 255, 0.08);
}

/* =============================================
   ABOUT — profile section
   ============================================= */
.about-credential {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}

.about-credential-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  border-radius: 0;
  flex-shrink: 0;
}

.about-credential-icon svg {
  width: 20px;
  height: 20px;
  color: var(--blue-500);
}

/* =============================================
   PATHOLOGY CARDS
   ============================================= */
.pathology-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--gray-200);
  border-left: 1px solid var(--gray-200);
}

.pathology-card {
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
  cursor: default;
}

.pathology-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pathology-card:hover::before {
  transform: scaleX(1);
}

.pathology-card:hover {
  background: var(--blue-50);
}

.pathology-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  color: var(--blue-500);
}

.pathology-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.pathology-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-500);
  flex: 1;
}

.pathology-procedures {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pathology-procedures li {
  font-size: 13px;
  color: var(--gray-500);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pathology-procedures li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--blue-400);
  border-radius: 0;
  flex-shrink: 0;
}

/* =============================================
   ADVANTAGE ROWS (Cirugía Mínimamente Invasiva)
   ============================================= */
.advantage-row {
  border-top: 1px solid var(--gray-200);
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  transition: padding 0.3s ease;
}

.advantage-num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--blue-400);
  font-feature-settings: 'tnum';
}

.advantage-title {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}

.advantage-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-500);
}

.advantage-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-400);
}

/* =============================================
   STATS
   ============================================= */
.stat-block {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 0 0;
}

.section-light .stat-block,
.section-blue-soft .stat-block {
  border-top-color: var(--gray-200);
}

.stat-number {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  font-feature-settings: 'tnum';
  color: var(--white);
}

.section-light .stat-number,
.section-blue-soft .stat-number {
  color: var(--navy);
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
}

.section-light .stat-label,
.section-blue-soft .stat-label {
  color: var(--gray-500);
}

/* =============================================
   FAQ — Accordion
   ============================================= */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 28px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--navy);
  text-align: left;
  line-height: 1.4;
  gap: 24px;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--blue-500);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.faq-answer-inner {
  padding: 0 0 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-500);
}

/* =============================================
   MEMBERSHIP BADGES
   ============================================= */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}

.section-light .badge-item,
.section-blue-soft .badge-item {
  border-color: var(--gray-200);
  background: var(--white);
  color: var(--navy);
}

/* =============================================
   LOCATION CARDS
   ============================================= */
.location-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 40px 32px;
  transition: all 0.3s ease;
}

.location-card:hover {
  border-color: var(--blue-400);
  box-shadow: 0 8px 40px rgba(10, 38, 71, 0.08);
}

/* =============================================
   WHATSAPP FLOATING
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* =============================================
   CELULAR Y CORREO FLOTANTES (encima de WhatsApp)
   ============================================= */
.contact-float {
  position: fixed;
  right: 32px;
  bottom: 102px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 99;
}

.contact-float-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* Al copiar: se muestra "¡Copiado!" también en móvil */
.contact-float-item.copied .contact-float-label {
  display: block;
  background: var(--navy);
  color: var(--white);
}

.contact-float-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(10, 38, 71, 0.35);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-float-btn svg {
  width: 22px;
  height: 22px;
}

.contact-float-label {
  display: none;
  padding: 8px 14px;
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(10, 38, 71, 0.15);
  transition: all 0.3s ease;
}

.contact-float-item:hover .contact-float-btn {
  transform: scale(1.1);
  background: var(--blue-500);
}

.contact-float-item:hover .contact-float-label {
  background: var(--navy);
  color: var(--white);
}

@media (min-width: 1024px) {
  .contact-float-label {
    display: block;
  }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  margin-bottom: 12px;
  font-weight: 400;
}

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

.footer-heading {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 24px;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-up { transform: translateY(60px); }
.reveal-up.visible { transform: translateY(0); }

.reveal-fade { transform: none; }

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

.split-text {
  overflow: hidden;
  display: inline-block;
}

.split-text > span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-text.visible > span {
  transform: translateY(0);
}

.line-draw {
  position: relative;
  overflow: hidden;
}

.line-draw::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-draw.visible::after {
  transform: scaleX(1);
}

/* =============================================
   MOBILE MENU
   ============================================= */
#mobile-menu {
  display: none;
}

#mobile-menu.open {
  display: block;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 768px) {
  .advantage-row {
    grid-template-columns: 80px 1fr 1fr 48px;
    gap: 40px;
    align-items: center;
    padding: 64px 0;
  }
  .pathology-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pathology-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pathology-card {
    padding: 48px 40px;
  }
}

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}
