/* =====================================================================
   STYLE.CSS — Dr. Rafael Mendes | Cardiologista
   ===================================================================== */

/* === 1. VARIÁVEIS CSS === */
:root {
  --primary:        #0c2441;
  --primary-mid:    #173d6e;
  --primary-light:  #1e5097;
  --accent:         #c62828;
  --accent-light:   #ef5350;
  --gold:           #c9973e;
  --teal:           #0277bd;
  --bg-light:       #f0f5ff;
  --bg-white:       #ffffff;
  --text:           #1a2535;
  --text-muted:     #64748b;
  --border:         #dde4ef;
  --shadow-sm:      0 2px 8px rgba(12,36,65,.08);
  --shadow:         0 6px 24px rgba(12,36,65,.12);
  --shadow-lg:      0 16px 56px rgba(12,36,65,.18);
  --radius-sm:      8px;
  --radius:         14px;
  --radius-lg:      24px;
  --transition:     all .35s cubic-bezier(.4,0,.2,1);
}

/* === 2. RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }

/* === 3. TIPOGRAFIA === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--primary);
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: .5rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
  margin: .75rem 0 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.eyebrow::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-divider {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin: .75rem 0 1.5rem;
}
.section-divider.centered { margin: .75rem auto 1.5rem; }

/* === 4. PRELOADER === */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-icon {
  font-size: 2.8rem;
  color: var(--accent-light);
  animation: heart-beat 1.1s ease-in-out infinite;
  margin-bottom: 1rem;
}
.preloader-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: .05em;
}
.preloader-tagline {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-top: .3rem;
}
.preloader-dots {
  display: flex;
  gap: .4rem;
  margin-top: 1.5rem;
}
.preloader-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  animation: dot-pulse 1.5s ease-in-out infinite;
}
.preloader-dots span:nth-child(2) { animation-delay: .3s; }
.preloader-dots span:nth-child(3) { animation-delay: .6s; }
@keyframes heart-beat {
  0%,100%  { transform: scale(1); }
  25%      { transform: scale(1.3); }
  50%      { transform: scale(1); }
  75%      { transform: scale(1.15); }
}
@keyframes dot-pulse {
  0%,100% { background: rgba(255,255,255,.3); transform: scale(1); }
  50%     { background: var(--accent-light); transform: scale(1.3); }
}

/* === 5. NAVBAR === */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(10, 30, 60, .97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: .7rem 0;
  box-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.nav-logo-icon {
  width: 42px; height: 42px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.navbar-brand:hover .nav-logo-icon { background: var(--accent-light); transform: scale(1.08); }
.nav-logo-text .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  display: block;
}
.nav-logo-text .brand-spec {
  font-size: .68rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.navbar-nav .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-size: .88rem;
  font-weight: 500;
  padding: .5rem 1rem !important;
  position: relative;
  transition: var(--transition);
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 1rem;
  width: 0; height: 2px;
  background: var(--accent-light);
  border-radius: 1px;
  transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: #fff !important; }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: calc(100% - 2rem); }
.btn-nav-agendar {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: .5rem 1.4rem !important;
  font-weight: 600 !important;
  font-size: .85rem !important;
  transition: var(--transition) !important;
}
.btn-nav-agendar::after { display: none !important; }
.btn-nav-agendar:hover {
  background: var(--accent-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(198,40,40,.4);
}
.navbar-toggler {
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: var(--radius-sm);
  padding: .35rem .6rem;
  color: #fff;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(198,40,40,.5); }

/* === 6. HERO === */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #050d1a 0%, #0b1f3a 35%, #0c2441 65%, #0e2d55 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}
/* Animated blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: blob-float 12s ease-in-out infinite;
}
.hero-blob-1 {
  width: 500px; height: 500px;
  background: rgba(30, 80, 151, .12);
  top: -150px; right: -100px;
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 350px; height: 350px;
  background: rgba(198, 40, 40, .08);
  bottom: -80px; left: -60px;
  animation-delay: 4s;
}
.hero-blob-3 {
  width: 200px; height: 200px;
  background: rgba(2, 119, 189, .1);
  top: 40%; left: 30%;
  animation-delay: 7s;
}
@keyframes blob-float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(25px,-20px) scale(1.04); }
  66%     { transform: translate(-18px,15px) scale(.97); }
}
/* ECG line decoration */
.hero-ecg {
  position: absolute;
  bottom: 18%;
  left: 0; right: 0;
  height: 70px;
  opacity: .1;
  pointer-events: none;
}
.hero-ecg svg { width: 100%; height: 100%; }
.ecg-path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: ecg-draw 3s ease forwards, ecg-pulse 4s ease-in-out 3s infinite;
}
@keyframes ecg-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes ecg-pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: .5; }
}
/* Hero content */
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(198,40,40,.12);
  border: 1px solid rgba(239,83,80,.25);
  color: #ffab9a;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.hero-title .txt-highlight { color: var(--accent-light); font-style: italic; }
.hero-title .txt-underline {
  position: relative;
  display: inline-block;
}
.hero-title .txt-underline::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}
.hero-desc {
  color: rgba(255,255,255,.75);
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 530px;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 22px rgba(37,211,102,.3);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-wa:hover {
  background: #1ab85a;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,211,102,.4);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.25);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.5);
  color: #fff;
  transform: translateY(-3px);
}
.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.8);
  font-size: .76rem;
  padding: .3rem .75rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}
.credential-badge i { color: var(--gold); font-size: .7rem; }
/* Hero Photo */
.hero-photo-col { position: relative; z-index: 2; }
.hero-photo-wrap { padding: 1.5rem 1rem; }
.hero-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.hero-photo-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0,0,0,.45);
}
.hero-photo-img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  filter: saturate(.95) brightness(.95);
  transition: var(--transition);
}
.hero-photo-img:hover img { filter: saturate(1.05) brightness(1); }
.hero-photo-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,28,55,.55) 0%, transparent 45%);
  border-radius: var(--radius-lg);
}
.hero-float-badge {
  position: absolute;
  bottom: 1.5rem;
  left: -1.5rem;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: .8rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  box-shadow: var(--shadow-lg);
  z-index: 3;
}
.flt-icon {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.flt-text strong { display: block; font-size: .88rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.flt-text span { font-size: .72rem; color: var(--text-muted); }
.hero-float-años {
  position: absolute;
  top: 1.5rem;
  right: -1.2rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: .8rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  animation: float-y 3.5s ease-in-out infinite;
  z-index: 3;
  min-width: 90px;
}
.hero-float-años .num { display: block; font-size: 2rem; font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1; }
.hero-float-años .lbl { font-size: .68rem; opacity: .9; letter-spacing: .05em; }
@keyframes float-y {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
/* Hero mini stats (row below text) */
.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2rem;
}
.hero-stat-item {
  flex: 1;
  min-width: 110px;
  text-align: center;
  padding: 0 1.5rem 0 0;
  position: relative;
}
.hero-stat-item::after {
  content: '';
  position: absolute;
  right: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: rgba(255,255,255,.15);
}
.hero-stat-item:last-child::after { display: none; }
.hero-stat-item:first-child { padding-left: 0; }
.hsi-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.hsi-num sup { font-size: 1.1rem; vertical-align: super; color: var(--accent-light); }
.hsi-lbl {
  font-size: .7rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .3rem;
}

/* === 7. SECTION BASE === */
section { padding: 100px 0; }
.section-header { margin-bottom: 3rem; }

/* === 8. SOBRE (About) === */
#sobre { background: #fff; }
.about-img-wrap { position: relative; }
.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-main img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: var(--transition);
}
.about-img-main:hover img { transform: scale(1.03); }
.about-img-secondary {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 42%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
  z-index: 2;
}
.about-img-secondary img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.about-exp-pill {
  position: absolute;
  top: -1rem;
  left: -1rem;
  background: var(--primary);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  text-align: center;
  z-index: 3;
  box-shadow: var(--shadow);
}
.about-exp-pill strong {
  display: block;
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  line-height: 1;
}
.about-exp-pill span { font-size: .7rem; color: rgba(255,255,255,.8); letter-spacing: .05em; }
.about-check-list { list-style: none; padding: 0; }
.about-check-list li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .94rem;
  color: var(--text);
}
.about-check-list li:last-child { border-bottom: none; }
.about-check-list li i { color: var(--accent); margin-top: .2rem; flex-shrink: 0; }

/* === 9. SPECS PREVIEW === */
#specs-preview { background: var(--bg-light); }
.spec-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.spec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.spec-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.spec-card:hover::before { transform: scaleX(1); }
.spec-icon {
  width: 68px; height: 68px;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-light);
  margin-bottom: 1.3rem;
  transition: var(--transition);
}
.spec-card:hover .spec-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff;
  transform: scale(1.1) rotate(-3deg);
}
.spec-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--primary);
}
.spec-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.spec-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.spec-more i { transition: var(--transition); font-size: .75rem; }
.spec-card:hover .spec-more i { transform: translateX(5px); }

/* === 10. STATS SECTION === */
#stats {
  background: linear-gradient(135deg, var(--primary) 0%, #070f1d 50%, var(--primary-mid) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
#stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.stat-block {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.stat-block::after {
  content: '';
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: rgba(255,255,255,.1);
}
.stat-block:last-child::after { display: none; }
.stat-ico {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: .9rem;
  display: block;
}
.stat-num {
  font-size: 3.4rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Playfair Display', serif;
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-num sup { font-size: 1.4rem; vertical-align: super; color: var(--accent-light); }
.stat-num span { color: var(--accent-light); }
.stat-lbl {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* === 11. DEPOIMENTOS === */
#depoimentos { background: var(--bg-light); }
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.testimonial-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
  border-color: transparent;
}
.testimonial-quote {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 4.5rem;
  color: var(--bg-light);
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}
.testimonial-stars {
  color: #f59e0b;
  font-size: .88rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.testimonial-text {
  font-size: .93rem;
  color: var(--text);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
  position: relative;
  z-index: 1;
}
.testimonial-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-light);
  flex-shrink: 0;
}
.testimonial-author-info strong { display: block; font-size: .88rem; font-weight: 700; color: var(--primary); }
.testimonial-author-info span { font-size: .76rem; color: var(--text-muted); }

/* === 12. BLOG === */
#blog { background: #fff; }
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.blog-img {
  overflow: hidden;
  aspect-ratio: 16/9;
  flex-shrink: 0;
}
.blog-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.blog-card:hover .blog-img img { transform: scale(1.08); }
.blog-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-tag {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary-light);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.blog-title {
  font-size: 1.08rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.4;
  transition: var(--transition);
}
.blog-card:hover .blog-title { color: var(--accent); }
.blog-excerpt {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1rem;
}
.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-muted);
  gap: .5rem;
  flex-wrap: wrap;
}
.blog-footer i { color: var(--accent); }
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--accent);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.blog-read-more i { transition: var(--transition); }
.blog-card:hover .blog-read-more i { transform: translateX(4px); }

/* === 13. CTA SECTION === */
#cta {
  background: linear-gradient(135deg, #9b0000 0%, var(--accent) 50%, #c62828 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  top: -200px; right: -150px;
}
#cta::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  bottom: -100px; left: -80px;
}
.cta-icon {
  font-size: 3rem;
  color: rgba(255,255,255,.3);
  margin-bottom: 1.5rem;
  display: block;
}
.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 700;
}
.cta-desc {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 2.5rem;
}
.cta-btns { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-cta-primary:hover {
  background: #f5f5f5;
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(0,0,0,.25);
}
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.45);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: .9rem 2rem;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-cta-secondary:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.7);
  color: #fff;
  transform: translateY(-3px);
}
.cta-info { position: relative; z-index: 2; }
.cta-info-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.cta-info-item {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.cta-info-item i {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .95rem;
  flex-shrink: 0;
}
.cta-info-item strong { display: block; color: rgba(255,255,255,.65); font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; }
.cta-info-item span { color: #fff; font-size: .95rem; }

/* === 14. CONTACT FORM === */
#contato { background: var(--bg-light); }
.contact-card-left {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
  color: #fff;
}
.contact-card-title { font-size: 1.6rem; color: #fff; margin-bottom: .5rem; }
.contact-card-desc { color: rgba(255,255,255,.7); font-size: .93rem; margin-bottom: 2rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.contact-ico {
  width: 46px; height: 46px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.contact-item:hover .contact-ico { background: var(--accent); color: #fff; }
.contact-detail strong { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.55); margin-bottom: .15rem; font-weight: 600; }
.contact-detail span, .contact-detail a { color: #fff; font-size: .93rem; }
.contact-detail a:hover { color: var(--gold); }
.contact-social { display: flex; gap: .6rem; margin-top: 2rem; }
.cs-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: var(--transition);
}
.cs-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.contact-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.form-label { font-size: .83rem; font-weight: 700; color: var(--primary); margin-bottom: .4rem; }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .93rem;
  background: #fafbff;
  color: var(--text);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(30,80,151,.1);
  background: #fff;
  outline: none;
}
.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .9rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: var(--transition);
  width: 100%;
  cursor: pointer;
}
.btn-submit:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(198,40,40,.3);
}

/* === 15. FOOTER === */
footer {
  background: var(--primary);
  color: rgba(255,255,255,.72);
  padding: 70px 0 0;
}
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
  display: block;
  margin-bottom: .3rem;
}
.footer-brand-crm {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  display: block;
  margin-bottom: 1rem;
}
.footer-desc {
  font-size: .88rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 280px;
}
.footer-social { display: flex; gap: .55rem; margin-bottom: 1.5rem; }
.footer-social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: var(--transition);
}
.footer-social-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-heading {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
  margin-bottom: 1.25rem;
  font-family: 'Inter', sans-serif;
}
.footer-nav-list li { margin-bottom: .55rem; }
.footer-nav-list a {
  color: rgba(255,255,255,.62);
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: var(--transition);
}
.footer-nav-list a::before {
  content: '';
  width: 0;
  height: 1.5px;
  background: var(--accent-light);
  transition: var(--transition);
  border-radius: 1px;
}
.footer-nav-list a:hover { color: #fff; }
.footer-nav-list a:hover::before { width: 1rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .9rem;
  font-size: .88rem;
}
.footer-contact-item i { color: var(--gold); margin-top: .18rem; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom .cfm { color: rgba(255,255,255,.45); }

/* === 16. PAGE HEADER (inner pages) === */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  padding: 140px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  top: -250px; right: -150px;
}
.page-header-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: .5rem;
  position: relative;
  z-index: 2;
}
.page-header-sub {
  color: rgba(255,255,255,.7);
  font-size: 1.02rem;
  position: relative;
  z-index: 2;
}
.breadcrumb {
  background: none;
  margin: 1.25rem 0 0;
  padding: 0;
  position: relative;
  z-index: 2;
}
.breadcrumb-item { font-size: .83rem; }
.breadcrumb-item a { color: rgba(255,255,255,.6); }
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item.active { color: rgba(255,255,255,.9); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }

/* === 17. TIMELINE === */
.timeline { position: relative; padding-left: 2.25rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: .65rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--teal), rgba(0,0,0,0));
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.7rem;
  top: .3rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--accent);
}
.timeline-year {
  display: inline-block;
  background: var(--primary);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: .25rem .8rem;
  border-radius: 50px;
  margin-bottom: .5rem;
}
.timeline-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: .25rem;
}
.timeline-inst {
  font-size: .88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.timeline-inst i { color: var(--accent); font-size: .78rem; }
.timeline-desc {
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: .4rem;
  line-height: 1.7;
}

/* === 18. SPEC PAGE CARDS === */
.spec-full-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}
.spec-full-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.spec-full-top {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  padding: 2rem 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.spec-full-top::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.spec-full-icon {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: .75rem;
}
.spec-full-title { font-size: 1.2rem; color: #fff; margin-bottom: 0; }
.spec-full-body { padding: 1.75rem; }
.spec-full-desc { font-size: .92rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; }
.spec-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.spec-tag {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary-light);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .2rem .65rem;
  border-radius: 50px;
  border: 1px solid var(--border);
}

/* === 19. BLOG PAGE === */
.blog-hero { background: var(--bg-light); padding: 60px 0; }
.blog-search-wrap { position: relative; max-width: 480px; }
.blog-search-wrap input {
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: .75rem 1.25rem .75rem 3rem;
  width: 100%;
  font-size: .93rem;
  background: #fff;
  transition: var(--transition);
}
.blog-search-wrap input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(30,80,151,.1); outline: none; }
.blog-search-icon {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.blog-filter-btn {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  padding: .5rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.blog-filter-btn.active, .blog-filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* === 20. BACK TO TOP === */
#back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
  box-shadow: 0 4px 18px rgba(198,40,40,.35);
}
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--accent-light); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(198,40,40,.45); }

/* === 21. UTILITIES === */
.text-accent  { color: var(--accent) !important; }
.text-gold    { color: var(--gold) !important; }
.text-primary-c { color: var(--primary) !important; }
.btn-primary-c {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .75rem 2rem;
  font-weight: 600;
  font-size: .93rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}
.btn-primary-c:hover { background: var(--primary-mid); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(12,36,65,.25); }
.btn-accent-c {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .75rem 2rem;
  font-weight: 600;
  font-size: .93rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}
.btn-accent-c:hover { background: var(--accent-light); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(198,40,40,.3); }
.btn-outline-c {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: .75rem 2rem;
  font-weight: 600;
  font-size: .93rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}
.btn-outline-c:hover { background: var(--primary); color: #fff; }
:target { scroll-margin-top: 80px; }

/* === 22. RESPONSIVO === */
@media (max-width: 991.98px) {
  section { padding: 70px 0; }
  #hero { padding: 110px 0 60px; }
  .about-img-secondary, .about-exp-pill { display: none; }
  .stat-block::after { display: none; }
}
@media (max-width: 767.98px) {
  section { padding: 60px 0; }
  .hero-cta-group { flex-direction: column; }
  .btn-wa, .btn-ghost { width: 100%; justify-content: center; }
  .hero-stats-row { gap: 1rem; justify-content: center; }
  .hero-stat-item { flex: 0 0 auto; }
  .hero-stat-item::after { display: none; }
  .hero-float-años { display: none; }
  .hero-float-badge { left: 1rem; bottom: 1rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .btn-cta-primary, .btn-cta-secondary { justify-content: center; }
}
@media (max-width: 575.98px) {
  .hero-eyebrow { font-size: .7rem; }
  .credential-badge { font-size: .7rem; }
  .stat-num { font-size: 2.5rem; }
}
