/* ═══════════════════════════════════════════════════════
   HDSYS - Main Stylesheet
   Fuente: Cormorant Garamond + DM Sans
   Paleta: Azul marino oscuro, blanco, acento cian/amarillo
═══════════════════════════════════════════════════════ */

:root {
  --navy: #0a1628;
  --navy-mid: #152340;
  --navy-light: #1e3257;
  --cyan: #00b4d8;
  --cyan-light: #48cae4;
  --gold: #f0c040;
  --white: #ffffff;
  --off-white: #f4f6f9;
  --text-dark: #1a2332;
  --text-muted: #6b7c93;
  --border: #dde3ec;
  --shadow: 0 4px 24px rgba(10,22,40,0.10);
  --shadow-lg: 0 12px 48px rgba(10,22,40,0.16);
  --radius: 6px;
  --radius-lg: 14px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1,h2,h3,h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.15;
}

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

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

/* ── TOPBAR ─────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  padding: 7px 0;
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: flex; gap: 2rem;
}
.topbar-inner span i { margin-right: 6px; color: var(--cyan); }

/* ── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(10,22,40,0.07);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }

.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center;
  height: 68px; gap: 2rem;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 1.1rem; color: var(--navy);
}
.logo-circle {
  width: 40px; height: 40px;
  background: var(--cyan);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.9rem; font-weight: 700;
  letter-spacing: 1px;
}

.nav-menu {
  list-style: none;
  display: flex; gap: 0; margin-left: auto;
}
.nav-link {
  display: block; padding: 0 1.4rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-dark);
  height: 68px; line-height: 68px;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--navy);
  border-bottom-color: var(--cyan);
  background: rgba(0,180,216,0.05);
}
.nav-link.active {
  background: var(--navy-mid); color: var(--white);
  border-bottom-color: var(--cyan);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  margin-left: auto; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all var(--transition);
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 40%, #0d3d5a 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url('/static/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.18;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(0,180,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 6rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
}
.hero-logo-badge {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 2.5rem;
}
.hero-circle {
  width: 72px; height: 72px;
  background: var(--cyan);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem; font-weight: 700;
  font-family: 'Cormorant Garamond', serif; letter-spacing: 2px;
}
.hero-brand {
  color: white; font-size: 1.6rem;
  font-family: 'DM Sans', sans-serif; font-weight: 300;
  letter-spacing: 4px; text-transform: uppercase;
}
.hero-tagline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: white; line-height: 1;
  font-weight: 300;
}
.hero-tagline strong {
  font-weight: 600; display: block;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  color: rgba(255,255,255,0.7); font-size: 1.1rem;
  line-height: 1.7; margin-top: 1.5rem;
  max-width: 480px;
}
.hero-btn {
  display: inline-block; margin-top: 2.5rem;
  padding: 14px 36px;
  background: var(--cyan);
  color: white; font-weight: 600;
  border-radius: 4px;
  font-size: 0.95rem; letter-spacing: 0.5px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,180,216,0.35);
}
.hero-btn:hover {
  background: var(--cyan-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,180,216,0.45);
}
.hero-visual {
  display: flex; align-items: center; justify-content: center;
}
.hero-image-frame {
  width: 100%; max-width: 520px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.hero-image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 8s ease;
}
.hero-image-frame:hover img { transform: scale(1.04); }
.hero-image-frame::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(0,180,216,0.3);
  border-radius: var(--radius-lg);
}

/* ── SECCIÓN GENÉRICA ─────────────────────────────────── */
.section { padding: 6rem 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); color: white; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.section-header { margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: inherit; position: relative;
  display: inline-block; padding-bottom: 1rem;
}
.section-header h2::after {
  content: ''; position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--border);
}
.section-header p {
  color: var(--text-muted); margin-top: 1rem;
  font-size: 1.05rem; max-width: 640px; line-height: 1.7;
}
.section-dark .section-header h2::after { background: rgba(255,255,255,0.2); }
.section-dark .section-header p { color: rgba(255,255,255,0.65); }

/* ── NOTICIAS / CARDS ─────────────────────────────────── */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition);
  background: white;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.5rem; }
.card-date { font-size: 0.78rem; color: var(--cyan); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.card-title { margin-top: 0.5rem; font-size: 1.15rem; line-height: 1.4; }

/* ── PROFESIONALES ────────────────────────────────────── */
.profesionales-grid {
  display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap;
}
.prof-card {
  text-align: center; max-width: 280px;
  opacity: 0; transform: translateY(30px);
  transition: all 0.6s ease;
}
.prof-card.visible { opacity: 1; transform: translateY(0); }
.prof-avatar {
  width: 180px; height: 180px;
  border-radius: 50%; overflow: hidden;
  margin: 0 auto 1.2rem;
  border: 4px solid var(--cyan);
  box-shadow: 0 8px 32px rgba(0,180,216,0.2);
  transition: all var(--transition);
}
.prof-card:hover .prof-avatar {
  box-shadow: 0 12px 48px rgba(0,180,216,0.35);
  transform: scale(1.04);
}
.prof-avatar img { width: 100%; height: 100%; object-fit: cover; }
.prof-avatar .prof-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy-mid), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: white; font-family: 'Cormorant Garamond', serif;
}
.prof-name { font-size: 1.3rem; font-family: 'Cormorant Garamond', serif; color: var(--navy); }
.prof-cargo { color: var(--cyan); font-size: 0.85rem; font-weight: 600; margin: 4px 0 10px; text-transform: uppercase; letter-spacing: 1px; }
.prof-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── RECONOCIMIENTOS / CARRUSEL ────────────────────────── */
.carousel-wrapper { position: relative; overflow: hidden; padding: 1rem 0; }
.carousel-track {
  display: flex; gap: 2rem;
  transition: transform 0.5s ease;
}
.carousel-item {
  min-width: 200px; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: white;
  transition: all var(--transition);
}
.carousel-item:hover { border-color: var(--cyan); box-shadow: var(--shadow); }
.carousel-item img { max-height: 80px; max-width: 160px; object-fit: contain; }
.carousel-controls {
  display: flex; justify-content: center; align-items: center; gap: 1.5rem;
  margin-top: 2rem;
}
.carousel-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: white;
  cursor: pointer; font-size: 1rem; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
}
.carousel-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.carousel-dots { display: flex; gap: 8px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); cursor: pointer;
  transition: background var(--transition);
}
.dot.active { background: var(--cyan); }
.conocer-btn {
  display: block; margin: 2.5rem auto 0;
  padding: 14px 40px;
  background: var(--navy); color: white;
  border-radius: 4px; font-weight: 600;
  transition: all var(--transition);
  width: fit-content;
}
.conocer-btn:hover { background: var(--navy-light); transform: translateY(-2px); }

/* ── PLANES (carrusel de planes) ──────────────────────── */
.planes-carousel { position: relative; overflow: hidden; }
.planes-track {
  display: flex; gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.plan-card {
  min-width: 320px; flex-shrink: 0;
  background: white; border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 2px solid var(--border);
  transition: all var(--transition);
  position: relative;
}
.plan-card.destacado {
  border-color: var(--cyan);
  background: var(--navy);
  color: white;
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: white;
  padding: 4px 18px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
}
.plan-card:not(.destacado):hover { border-color: var(--cyan); box-shadow: var(--shadow); transform: translateY(-4px); }
.plan-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.plan-price {
  font-size: 1.8rem; font-weight: 700; color: var(--cyan);
  font-family: 'DM Sans', sans-serif; margin: 1rem 0;
}
.plan-desc { font-size: 0.9rem; opacity: 0.75; margin-bottom: 1.5rem; line-height: 1.6; }
.plan-features { list-style: none; }
.plan-features li { padding: 6px 0; font-size: 0.88rem; display: flex; gap: 8px; align-items: flex-start; }
.plan-features li::before { content: '✓'; color: var(--cyan); font-weight: 700; flex-shrink: 0; }
.plan-card.destacado .plan-features li::before { color: var(--gold); }

/* ── FORM SECTION ─────────────────────────────────────── */
.form-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3d5a 100%);
  padding: 5rem 0;
}
.form-section-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.form-left h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: white; line-height: 1.05;
  font-weight: 800; font-family: 'DM Sans', sans-serif;
}
.form-left h2 span { color: var(--cyan); }
.form-left p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin: 1.5rem 0 2rem; line-height: 1.6; }
.btn-cta-yellow {
  display: inline-block; padding: 14px 32px;
  background: var(--gold); color: var(--navy);
  font-weight: 700; border-radius: 30px;
  font-size: 0.95rem; transition: all var(--transition);
}
.btn-cta-yellow:hover { background: #f5d060; transform: translateY(-2px); }

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; color: white; font-size: 0.88rem; margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: white; font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--cyan);
  background: rgba(0,180,216,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  width: 100%; padding: 14px;
  background: var(--cyan); color: white;
  border: none; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 1px;
  cursor: pointer; transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
}
.btn-submit:hover { background: var(--cyan-light); transform: translateY(-2px); }
.btn-submit:active { transform: translateY(0); }
.form-feedback {
  margin-top: 12px; padding: 10px 14px;
  border-radius: var(--radius); font-size: 0.9rem;
  display: none;
}
.form-feedback.success { background: rgba(0,180,100,0.2); color: #00e676; display: block; }
.form-feedback.error { background: rgba(255,80,80,0.2); color: #ff6b6b; display: block; }

/* ── FOOTER ───────────────────────────────────────────── */
.footer { background: #2c2c2c; color: rgba(255,255,255,0.8); }
.footer-newsletter {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; gap: 2rem; flex-wrap: wrap;
}
.footer-newsletter p { font-size: 0.9rem; }
.btn-suscribirse {
  padding: 10px 28px; background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: white; border-radius: var(--radius);
  cursor: pointer; font-size: 0.88rem;
  transition: all var(--transition); white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.btn-suscribirse:hover { background: white; color: #2c2c2c; }
.footer-contact-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
  max-width: 1280px; margin: 0 auto; flex-wrap: wrap; gap: 1rem;
}
.footer-contact-info { display: flex; gap: 2rem; font-size: 0.9rem; flex-wrap: wrap; }
.footer-contact-info span i { margin-right: 8px; color: var(--cyan); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 0.85rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--cyan); border-color: var(--cyan); color: white; }
.footer-offices {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  padding: 2rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
  max-width: 1280px; margin: 0 auto;
}
.footer-office strong { display: block; color: white; margin-bottom: 6px; font-size: 0.9rem; }
.footer-office p { font-size: 0.83rem; color: rgba(255,255,255,0.55); line-height: 1.6; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem; flex-wrap: wrap; gap: 1rem;
  max-width: 1280px; margin: 0 auto;
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
}
.footer-admin-link {
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 3px 10px; border-radius: 20px;
  transition: all var(--transition);
}
.footer-admin-link:hover { color: var(--cyan); border-color: var(--cyan); }

/* ── WHATSAPP FLOAT ───────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 9999; transition: all var(--transition);
}
.whatsapp-float:hover { background: #20b858; transform: scale(1.1); }

/* ── REVEAL ANIMATIONS ─────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── LOADING SKELETON ─────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #e8edf4 25%, #f4f6f9 50%, #e8edf4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── SERVICIOS PAGE ───────────────────────────────────── */
.servicios-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.servicio-card {
  padding: 2.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: white; transition: all var(--transition);
  display: flex; gap: 1.5rem; align-items: flex-start;
}
.servicio-card:hover { border-color: var(--cyan); box-shadow: var(--shadow); transform: translateY(-4px); }
.servicio-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-mid), var(--cyan));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.3rem;
}
.servicio-body h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.servicio-body p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; }

/* ── PAGE HERO (subpages) ─────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 5rem 2rem;
  text-align: center;
}
.page-hero h1 { color: white; font-size: clamp(2.5rem,5vw,4rem); }
.page-hero p { color: rgba(255,255,255,0.65); margin-top: 1rem; font-size: 1.1rem; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 68px; left: 0; right: 0;
    background: white; flex-direction: column;
    padding: 1rem 0; border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-link { height: auto; line-height: 1; padding: 1rem 2rem; border-bottom: none; border-left: 3px solid transparent; }
  .nav-link.active { border-left-color: var(--cyan); background: var(--off-white); color: var(--navy); }
  .hero-tagline { font-size: 2.8rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-section-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-offices { grid-template-columns: 1fr 1fr; }
  .profesionales-grid { gap: 2rem; }
  .plan-card { min-width: 280px; }
  .topbar { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .footer-offices { grid-template-columns: 1fr; }
  .footer-contact-bar { flex-direction: column; }
  .footer-newsletter { flex-direction: column; }
  .hero-tagline { font-size: 2.2rem; }
}

/* ── ADMIN PANEL (base) ──────────────────────────────── */
.admin-body {
  font-family: 'DM Sans', sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
}
.alert { padding: 12px 18px; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: 0.9rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
