/*
 * e-Clinica Landing — Estilos propios
 * Proyecto: e-Clinica
 * CSS completamente original, escrito para este proyecto.
 */

/* ══════════════════════════════════════════════════════════════════
   1. VARIABLES
══════════════════════════════════════════════════════════════════ */
:root {
  --ec-navy:        #0d1b5e;
  --ec-navy-dark:   #080f38;
  --ec-navy-soft:   #1a2e87;
  --ec-green:       #7bbc00;
  --ec-green-dark:  #5f9200;
  --ec-text:        #444444;
  --ec-heading:     #2c3e6b;
  --ec-light-bg:    #f0f4ff;
  --ec-white:       #ffffff;
  --ec-border:      #dde3ee;
  --ec-shadow:      0 4px 20px rgba(13,27,94,.10);
  --ec-transition:  all .3s ease;
  --font-body:      "Poppins", system-ui, -apple-system, sans-serif;
}

/* ══════════════════════════════════════════════════════════════════
   2. RESET / BASE
══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ec-text);
  background: var(--ec-white);
  margin: 0;
}

a { color: var(--ec-navy); text-decoration: none; transition: var(--ec-transition); }
a:hover { color: var(--ec-green); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-body);
  color: var(--ec-heading);
  font-weight: 700;
  line-height: 1.3;
}

img { max-width: 100%; display: block; }

section { padding: 60px 0; overflow: clip; }

.light-background { background: var(--ec-light-bg); }

/* ══════════════════════════════════════════════════════════════════
   3. SECTION TITLES
══════════════════════════════════════════════════════════════════ */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 2rem;
  color: var(--ec-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--ec-green);
  border-radius: 2px;
}
.section-title p {
  color: #888;
  max-width: 600px;
  margin: 12px auto 0;
}

/* ══════════════════════════════════════════════════════════════════
   4. HEADER
══════════════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ec-white);
  box-shadow: 0 2px 12px rgba(13,27,94,.08);
  transition: var(--ec-transition);
}

/* Topbar */
.header .topbar {
  background: var(--ec-navy);
  height: 40px;
  font-size: 13px;
}
.header .topbar .contact-info i {
  font-style: normal;
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  gap: 4px;
}
.header .topbar .contact-info i a,
.header .topbar .contact-info i span { color: rgba(255,255,255,.85); }
.header .topbar .contact-info i a:hover { color: var(--ec-white); }
.header .topbar .social-links a {
  color: rgba(255,255,255,.6);
  font-size: 15px;
  transition: var(--ec-transition);
}
.header .topbar .social-links a:hover { color: var(--ec-white); }

/* Branding */
.header .branding { min-height: 64px; padding: 8px 0; }
.header .logo h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--ec-navy);
  margin: 0;
  letter-spacing: -.5px;
}
.header .logo h1 span { color: var(--ec-green); }

/* CTA Button */
.cta-btn {
  background: var(--ec-green);
  color: var(--ec-white) !important;
  padding: 8px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--ec-transition);
  white-space: nowrap;
}
.cta-btn:hover { background: var(--ec-green-dark); color: var(--ec-white) !important; }

/* ══════════════════════════════════════════════════════════════════
   5. NAV MENU
══════════════════════════════════════════════════════════════════ */
.navmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}
.navmenu a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ec-navy);
  padding: 8px 14px;
  border-radius: 4px;
  transition: var(--ec-transition);
  display: block;
}
.navmenu a:hover,
.navmenu a.active { color: var(--ec-green); background: rgba(123,188,0,.08); }

.mobile-nav-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ec-navy);
  background: none;
  border: none;
  padding: 4px;
}

@media (max-width: 1199px) {
  .mobile-nav-toggle { display: block; }
  .navmenu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--ec-white);
    padding: 80px 24px 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,.12);
    transition: right .35s ease;
    z-index: 1001;
    overflow-y: auto;
  }
  .navmenu ul { flex-direction: column; gap: 0; }
  .navmenu a { padding: 12px 8px; border-bottom: 1px solid var(--ec-border); }
  body.mobile-nav-active .navmenu { right: 0; }
  body.mobile-nav-active::before {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1000;
  }
}

/* ══════════════════════════════════════════════════════════════════
   6. HERO
══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 0;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; padding: 80px 16px; }

.hero .welcome {
  background: rgba(13,27,94,.82);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 24px 32px;
  margin-bottom: 32px;
  display: inline-block;
}
.hero .welcome h2 {
  color: var(--ec-white);
  font-size: 2.2rem;
  margin: 0 0 8px;
  letter-spacing: 1px;
}
.hero .welcome p { color: rgba(255,255,255,.85); margin: 0; }

.hero .why-box {
  background: var(--ec-navy);
  color: var(--ec-white);
  padding: 28px;
  border-radius: 8px;
  height: 100%;
}
.hero .why-box h3 { color: var(--ec-white); font-size: 1.2rem; margin-bottom: 12px; }
.hero .why-box p { color: rgba(255,255,255,.8); font-size: .9rem; }

.hero .icon-box {
  background: rgba(255,255,255,.92);
  padding: 20px;
  border-radius: 8px;
  height: 100%;
  border-top: 3px solid var(--ec-green);
}
.hero .icon-box i { font-size: 2rem; color: var(--ec-navy); margin-bottom: 8px; }
.hero .icon-box h4 { font-size: .95rem; color: var(--ec-navy); margin-bottom: 6px; }
.hero .icon-box p { font-size: .82rem; color: #666; margin: 0; }

.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ec-green);
  color: var(--ec-white) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: .9rem;
  transition: var(--ec-transition);
}
.more-btn:hover { background: var(--ec-green-dark); }

/* ══════════════════════════════════════════════════════════════════
   7. ABOUT
══════════════════════════════════════════════════════════════════ */
.about img { border-radius: 8px; }
.about .content h3 {
  font-size: 1.6rem;
  color: var(--ec-navy);
  margin-bottom: 16px;
}
.about .content ul { list-style: none; padding: 0; margin: 0; }
.about .content ul li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.about .content ul li i {
  font-size: 1.5rem;
  color: var(--ec-green);
  flex-shrink: 0;
  margin-top: 2px;
}
.about .content ul li h5 { font-size: 1rem; color: var(--ec-navy); margin-bottom: 4px; }
.about .content ul li p { font-size: .88rem; margin: 0; color: #666; }

/* Pulsating play button */
.pulsating-play-btn {
  position: absolute;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: var(--ec-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-white);
  font-size: 18px;
  animation: pulse-ring 2s ease-out infinite;
  z-index: 2;
}
.pulsating-play-btn::after {
  content: '';
  border-left: 14px solid var(--ec-white);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(123,188,0,.5); }
  70% { box-shadow: 0 0 0 18px rgba(123,188,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(123,188,0,0); }
}

/* ══════════════════════════════════════════════════════════════════
   8. STATS
══════════════════════════════════════════════════════════════════ */
.stats i {
  font-size: 2.4rem;
  color: var(--ec-navy);
  margin-bottom: 8px;
  display: block;
  text-align: center;
}
.stats .stats-item { text-align: center; }
.stats .stats-item span {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--ec-navy);
  line-height: 1;
}
.stats .stats-item p {
  font-size: .9rem;
  font-weight: 600;
  color: #666;
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════════════════════
   9. SERVICES
══════════════════════════════════════════════════════════════════ */
.services .service-item {
  background: var(--ec-white);
  border-radius: 8px;
  padding: 32px 24px;
  border: 1px solid var(--ec-border);
  height: 100%;
  transition: var(--ec-transition);
}
.services .service-item:hover {
  border-color: var(--ec-green);
  box-shadow: var(--ec-shadow);
  transform: translateY(-4px);
}
.services .service-item .icon {
  width: 56px; height: 56px;
  background: var(--ec-light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.services .service-item .icon i { font-size: 1.5rem; color: var(--ec-navy); }
.services .service-item h3 { font-size: 1.05rem; color: var(--ec-navy); margin-bottom: 10px; }
.services .service-item p { font-size: .88rem; color: #666; margin: 0; }
.services .service-item a.stretched-link { color: inherit; }

/* ══════════════════════════════════════════════════════════════════
   10. AUTH (appointment section)
══════════════════════════════════════════════════════════════════ */
.appointment {
  background: linear-gradient(135deg, var(--ec-navy) 0%, var(--ec-navy-soft) 100%);
}
.appointment .section-title h2 { color: var(--ec-white); }
.appointment .section-title h2::after { background: var(--ec-green); }
.appointment .section-title p { color: rgba(255,255,255,.7); }

.appointment .nav-pills .nav-link {
  color: rgba(255,255,255,.75);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 40px;
  padding: 8px 20px;
  font-size: .88rem;
  font-weight: 600;
  transition: var(--ec-transition);
  background: transparent;
}
.appointment .nav-pills .nav-link:hover { border-color: var(--ec-green); color: var(--ec-white); }
.appointment .nav-pills .nav-link.active {
  background: var(--ec-green);
  border-color: var(--ec-green);
  color: var(--ec-white);
}

.appointment .card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 32px;
  backdrop-filter: blur(8px);
}
.appointment .form-floating label { color: rgba(255,255,255,.65); }
.appointment .form-control {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--ec-white);
  border-radius: 6px;
}
.appointment .form-control:focus {
  background: rgba(255,255,255,.15);
  border-color: var(--ec-green);
  box-shadow: 0 0 0 3px rgba(123,188,0,.25);
  color: var(--ec-white);
}
.appointment .form-control::placeholder { color: rgba(255,255,255,.45); }
.appointment .btn-login, .appointment .btn-submit {
  background: var(--ec-green);
  color: var(--ec-white);
  border: none;
  border-radius: 6px;
  width: 100%;
  padding: .75rem;
  font-weight: 600;
  transition: var(--ec-transition);
}
.appointment .btn-login:hover, .appointment .btn-submit:hover { background: var(--ec-green-dark); }
.appointment .btn-link { color: rgba(255,255,255,.65) !important; font-size: .85rem; }
.appointment .btn-link:hover { color: var(--ec-green) !important; }
.appointment .text-danger { color: #ff8fa3 !important; }
.appointment .alert-danger {
  background: rgba(220,53,69,.2);
  border-color: rgba(220,53,69,.4);
  color: #ff8fa3;
}
.appointment .alert-success {
  background: rgba(123,188,0,.2);
  border-color: rgba(123,188,0,.4);
  color: #b8ff5a;
}
.appointment .text-muted { color: rgba(255,255,255,.55) !important; }
.appointment .btn-toggle-pass { color: rgba(255,255,255,.6); }
.appointment .btn-toggle-pass:hover { color: var(--ec-white); }

/* ══════════════════════════════════════════════════════════════════
   11. DEPARTMENTS
══════════════════════════════════════════════════════════════════ */
.departments .nav-tabs { border: none; flex-direction: column; }
.departments .nav-tabs .nav-link {
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0;
  color: var(--ec-text);
  padding: 12px 16px;
  font-weight: 500;
  transition: var(--ec-transition);
  text-align: left;
}
.departments .nav-tabs .nav-link:hover { color: var(--ec-navy); border-left-color: var(--ec-border); }
.departments .nav-tabs .nav-link.active {
  color: var(--ec-navy);
  border-left-color: var(--ec-green);
  background: var(--ec-light-bg);
  font-weight: 700;
}
.departments .tab-pane img { border-radius: 8px; }
.departments .details h3 { font-size: 1.2rem; color: var(--ec-navy); margin-bottom: 10px; }
.departments .details p { font-size: .9rem; color: var(--ec-text); }
.departments .details .fst-italic { color: #888; }

/* ══════════════════════════════════════════════════════════════════
   12. DOCTORS
══════════════════════════════════════════════════════════════════ */
.doctors .team-member {
  background: var(--ec-white);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--ec-border);
  transition: var(--ec-transition);
  gap: 16px;
}
.doctors .team-member:hover { box-shadow: var(--ec-shadow); transform: translateY(-3px); }
.doctors .team-member .pic {
  flex-shrink: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--ec-border);
}
.doctors .team-member .pic img { width: 100%; height: 100%; object-fit: cover; }
.doctors .member-info h4 { font-size: 1rem; color: var(--ec-navy); margin-bottom: 2px; }
.doctors .member-info span { font-size: .82rem; color: var(--ec-green); font-weight: 600; }
.doctors .member-info p { font-size: .85rem; color: #666; margin: 8px 0; }
.doctors .member-info .social { display: flex; gap: 8px; }
.doctors .member-info .social a {
  width: 30px; height: 30px;
  background: var(--ec-light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ec-navy);
  transition: var(--ec-transition);
}
.doctors .member-info .social a:hover { background: var(--ec-navy); color: var(--ec-white); }

/* ══════════════════════════════════════════════════════════════════
   13. FAQ
══════════════════════════════════════════════════════════════════ */
.faq-container { max-width: 100%; }
.faq-item {
  border: 1px solid var(--ec-border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--ec-transition);
}
.faq-item.faq-active { border-color: var(--ec-navy); }
.faq-item h3 {
  font-size: 1rem;
  padding: 16px 44px 16px 16px;
  margin: 0;
  cursor: pointer;
  color: var(--ec-navy);
  position: relative;
  user-select: none;
}
.faq-toggle {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--ec-navy);
  transition: transform .3s;
  cursor: pointer;
  pointer-events: none;
}
.faq-active .faq-toggle { transform: translateY(-50%) rotate(90deg); }
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-active .faq-content { max-height: 300px; }
.faq-content p { padding: 0 16px 16px; margin: 0; font-size: .9rem; color: #666; }

/* ══════════════════════════════════════════════════════════════════
   14. TESTIMONIALS (Slider)
══════════════════════════════════════════════════════════════════ */
.testimonials .info h3 { font-size: 1.5rem; color: var(--ec-navy); }
.testimonials .info p { color: #666; }

/* ec-slider (reemplaza Swiper) */
.ec-slider { position: relative; overflow: hidden; }
.ec-slider-wrapper {
  display: flex;
  transition: transform .5s ease;
}
.ec-slide {
  flex: 0 0 100%;
  padding: 0 8px;
}
.testimonial-item {
  background: var(--ec-white);
  border-radius: 10px;
  padding: 24px;
  border: 1px solid var(--ec-border);
  box-shadow: var(--ec-shadow);
}
.testimonial-img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 14px;
  flex-shrink: 0;
}
.testimonial-item h3 { font-size: 1rem; color: var(--ec-navy); margin-bottom: 2px; }
.testimonial-item h4 { font-size: .8rem; color: #888; font-weight: 400; margin: 0; }
.testimonial-item .stars { color: #f4b400; font-size: .9rem; margin-top: 4px; }
.testimonial-item p {
  font-size: .9rem;
  color: #666;
  font-style: italic;
  margin: 12px 0 0;
  line-height: 1.7;
}
.testimonial-item .quote-icon-left,
.testimonial-item .quote-icon-right {
  font-size: 1.2rem;
  color: var(--ec-green);
  opacity: .6;
}

.ec-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.ec-slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ec-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--ec-transition);
}
.ec-slider-dot.active { background: var(--ec-navy); transform: scale(1.25); }

/* ══════════════════════════════════════════════════════════════════
   15. GALLERY
══════════════════════════════════════════════════════════════════ */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '\26F6';
  position: absolute;
  inset: 0;
  background: rgba(13,27,94,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-white);
  font-size: 2rem;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.ec-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.ec-lightbox.open { display: flex; }
.ec-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.ec-lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: var(--ec-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
  transition: opacity .2s;
}
.ec-lightbox-close:hover { opacity: 1; }
.ec-lightbox-prev,
.ec-lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--ec-white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 4px;
  transition: background .2s;
}
.ec-lightbox-prev { left: 16px; }
.ec-lightbox-next { right: 16px; }
.ec-lightbox-prev:hover,
.ec-lightbox-next:hover { background: rgba(255,255,255,.25); }

/* ══════════════════════════════════════════════════════════════════
   16. CONTACT
══════════════════════════════════════════════════════════════════ */
.contact .info-item {
  background: var(--ec-white);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--ec-border);
  margin-bottom: 16px;
  gap: 14px;
  transition: var(--ec-transition);
}
.contact .info-item:hover { border-color: var(--ec-navy); box-shadow: var(--ec-shadow); }
.contact .info-item i {
  font-size: 1.6rem;
  color: var(--ec-navy);
  width: 40px;
  flex-shrink: 0;
  text-align: center;
}
.contact .info-item h3 { font-size: .95rem; font-weight: 700; color: var(--ec-navy); margin-bottom: 2px; }
.contact .info-item p { font-size: .88rem; color: #666; margin: 0; }
.contact .php-email-form .form-control {
  border-radius: 6px;
  border-color: var(--ec-border);
  padding: .65rem 1rem;
}
.contact .php-email-form .form-control:focus {
  border-color: var(--ec-navy);
  box-shadow: 0 0 0 3px rgba(13,27,94,.1);
}
.contact .php-email-form button[type=submit] {
  background: var(--ec-navy);
  color: var(--ec-white);
  border: none;
  padding: 10px 30px;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--ec-transition);
}
.contact .php-email-form button[type=submit]:hover { background: var(--ec-navy-soft); }

/* ══════════════════════════════════════════════════════════════════
   17. FOOTER
══════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--ec-navy);
  color: rgba(255,255,255,.75);
  padding: 48px 0 0;
}
.footer .sitename { font-size: 1.4rem; font-weight: 800; color: var(--ec-white); }
.footer-contact p { font-size: .88rem; margin-bottom: 4px; }
.footer-contact strong { color: var(--ec-white); }
.footer .social-links { gap: 10px; }
.footer .social-links a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  transition: var(--ec-transition);
  font-size: 14px;
}
.footer .social-links a:hover { background: var(--ec-green); color: var(--ec-white); }
.footer-links h4 { color: var(--ec-white); font-size: 1rem; margin-bottom: 14px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { font-size: .88rem; color: rgba(255,255,255,.65); transition: var(--ec-transition); }
.footer-links ul li a:hover { color: var(--ec-green); padding-left: 4px; }
.footer .copyright {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 32px;
  padding: 20px 0;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ══════════════════════════════════════════════════════════════════
   18. SCROLL TO TOP
══════════════════════════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 42px; height: 42px;
  background: var(--ec-green);
  color: var(--ec-white) !important;
  border-radius: 50%;
  font-size: 1.3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--ec-transition);
  z-index: 998;
  box-shadow: 0 4px 12px rgba(123,188,0,.4);
}
.scroll-top.active { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--ec-green-dark); }

/* ══════════════════════════════════════════════════════════════════
   19. SCROLL REVEAL (reemplaza AOS)
══════════════════════════════════════════════════════════════════ */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-aos="fade-up"]   { transform: translateY(28px); }
[data-aos="fade-down"] { transform: translateY(-28px); }
[data-aos="fade-in"]   { transform: none; }
[data-aos="zoom-out"]  { transform: scale(.92); }

[data-aos].ec-revealed {
  opacity: 1;
  transform: none !important;
}

/* ══════════════════════════════════════════════════════════════════
   20. BTN-TOGGLE-PASS (para forms de contraseña)
══════════════════════════════════════════════════════════════════ */
.btn-toggle-pass {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 4px;
  z-index: 5;
  font-size: 1rem;
}
.btn-toggle-pass:hover { color: var(--ec-navy); }

/* ══════════════════════════════════════════════════════════════════
   21. RESPONSIVE ADJUSTMENTS
══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero .welcome h2 { font-size: 1.5rem; }
  .section-title h2 { font-size: 1.5rem; }
  .gallery-item img { height: 160px; }
  .stats .stats-item span { font-size: 2rem; }
}

@media (max-width: 575px) {
  section { padding: 40px 0; }
  .hero { min-height: 400px; }
  .hero .container { padding: 48px 16px; }
  .appointment .card { padding: 20px 16px; }
}
