/* ==========================================================================
   CSS Variables & Tokens (V2 - Dynamic & Colorful)
   ========================================================================== */
:root {
  /* Dynamic Backgrounds */
  --bg-main: #0a0f18;
  /* Dark, immersive background */
  --text-main: #ffffff;
  --text-muted: #94a3b8;

  /* Vibrant Accent Colors (Plecas) */
  --color-pro: #0ea5e9;
  /* Professional Blue */
  --color-pro-dark: #0284c7;
  --color-paciente: #f97316;
  /* Warm, vibrant orange/coral for patients */
  --color-paciente-dark: #ea580c;

  --color-extra1: #8b5cf6;
  /* Purple */
  --color-extra2: #10b981;
  /* Emerald */

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 800;
  /* Extra bold for CTAs */

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  /* Shadows */
  --shadow-float: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

a {
  text-decoration: none;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   Hero Question Section
   ========================================================================== */
.hero-question {
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 2rem;
  text-align: center;
  gap: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.02em;
  opacity: 0.6;
  max-width: 600px;
}

.hero-question h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.2;
  padding-bottom: 0.1em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.02);
  }
}

/* ==========================================================================
   Dynamic Bento Grid (Audience Split)
   ========================================================================== */
.bento-container {
  padding: 0 1.5rem 4rem;
  max-width: 1600px;
  margin: 0 auto;
}

.bento-split-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 991px) {
  .bento-split-layout {
    grid-template-columns: 1fr;
  }
}

.audience-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
}

.zone-profesionales {
  background: rgba(14, 165, 233, 0.04);
  /* Subtle blue tint */
  border-color: rgba(14, 165, 233, 0.15);
}

.zone-pacientes {
  background: rgba(249, 115, 22, 0.04);
  /* Subtle orange tint */
  border-color: rgba(249, 115, 22, 0.15);
}

.mobile-zone-divider {
  display: none;
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
  margin: 2rem 0;
  width: 100%;
}

@media (max-width: 991px) {
  .mobile-zone-divider {
    display: block;
  }

  .audience-column {
    padding: 1rem;
  }
}

.main-card {
  flex-grow: 1;
  min-height: 450px;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  text-decoration: none;
  color: white;
  isolation: isolate;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.bento-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--shadow-float);
  z-index: 10;
}

/* Images & Overlays */
.bento-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bento-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.85;
  transition: opacity var(--transition-smooth);
}

.bento-card:hover .bento-bg {
  transform: scale(1.08);
}

.bento-card:hover .bento-overlay {
  opacity: 0.7;
}

/* Specific Audience Colors */
.card-profesionales .bento-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(14, 165, 233, 0.4) 100%);
}

.card-profesionales:hover .bento-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(14, 165, 233, 0.2) 100%);
}

.card-pacientes .bento-overlay {
  background: linear-gradient(to top, rgba(67, 20, 7, 0.95) 0%, rgba(249, 115, 22, 0.4) 100%);
}

.card-pacientes:hover .bento-overlay {
  background: linear-gradient(to top, rgba(67, 20, 7, 0.85) 0%, rgba(249, 115, 22, 0.2) 100%);
}

/* Content */
.bento-content {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.audience-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: var(--weight-bold);
  margin-bottom: 0.5rem;
  display: block;
  opacity: 0.9;
}

.card-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: var(--bg-main);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: var(--weight-bold);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  transition: all var(--transition-fast);
  text-shadow: none;
}

.card-profesionales .cta-button {
  color: var(--color-pro-dark);
}

.card-pacientes .cta-button {
  color: var(--color-paciente-dark);
}

.bento-card:hover .cta-button {
  transform: translateX(10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Sub Cards Grid */
.sub-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 575px) {
  .sub-cards-grid {
    grid-template-columns: 1fr;
  }
}

.card-secondary {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  text-decoration: none;
  color: white;
  isolation: isolate;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.card-secondary:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-float);
  z-index: 10;
}

.card-secondary:hover .bento-bg {
  transform: scale(1.08);
}

.card-secondary:hover .bento-overlay {
  opacity: 0.7;
}

.card-secondary h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.card-secondary p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.card-secondary .cta-text {
  font-weight: var(--weight-bold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: var(--bg-main);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  margin-top: 1.5rem;
  align-self: flex-start;
  transition: all var(--transition-fast);
}

.card-secondary:hover .cta-text {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Specific Secondary Overlays */
.card-industria .bento-overlay {
  background: linear-gradient(to top, rgba(2, 44, 34, 0.95) 0%, rgba(16, 185, 129, 0.4) 100%);
}

.card-industria:hover .bento-overlay {
  background: linear-gradient(to top, rgba(2, 44, 34, 0.85) 0%, rgba(16, 185, 129, 0.2) 100%);
}

.card-industria .cta-text {
  color: #047857;
  text-shadow: none;
  /* Reset shadow for button text */
}

.card-eventos .bento-overlay {
  background: linear-gradient(to top, rgba(46, 16, 101, 0.95) 0%, rgba(139, 92, 246, 0.4) 100%);
}

.card-eventos:hover .bento-overlay {
  background: linear-gradient(to top, rgba(46, 16, 101, 0.85) 0%, rgba(139, 92, 246, 0.2) 100%);
}

.card-eventos .cta-text {
  color: #6d28d9;
  text-shadow: none;
}

.card-directorio .bento-overlay {
  background: linear-gradient(to top, rgba(66, 32, 6, 0.95) 0%, rgba(234, 179, 8, 0.4) 100%);
}

.card-directorio:hover .bento-overlay {
  background: linear-gradient(to top, rgba(66, 32, 6, 0.85) 0%, rgba(234, 179, 8, 0.2) 100%);
}

.card-directorio .cta-text {
  color: #a16207;
  text-shadow: none;
}

.card-noticias .bento-overlay {
  background: linear-gradient(to top, rgba(80, 7, 36, 0.95) 0%, rgba(236, 72, 153, 0.4) 100%);
}

.card-noticias:hover .bento-overlay {
  background: linear-gradient(to top, rgba(80, 7, 36, 0.85) 0%, rgba(236, 72, 153, 0.2) 100%);
}

.card-noticias .cta-text {
  color: #be185d;
  text-shadow: none;
}

/* ==========================================================================
   Semantic SEO Section (Hidden/Unobtrusive)
   ========================================================================== */
.seo-section {
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.seo-section h2,
.seo-section h3 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-primary);
}

.seo-section p {
  margin-bottom: 1rem;
  opacity: 0.7;
}

.seo-section a {
  color: var(--text-muted);
  text-decoration: underline;
}

.seo-section a:hover {
  color: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.dt-footer-bottom-bar {
  background-color: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.dt-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.dt-footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: var(--weight-medium);
  color: var(--text-main);
  opacity: 0.8;
}

.dt-footer-brand img {
  height: 24px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.dt-footer-brand a:hover img {
  opacity: 1;
}

.dt-footer-legal {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.dt-footer-copyright,
.dt-footer-credits {
  margin: 0;
}

.dt-footer-credits a {
  color: var(--color-pro);
  font-weight: var(--weight-medium);
}

.dt-footer-credits a:hover {
  color: var(--text-main);
}

@media (max-width: 768px) {
  .dt-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .dt-footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}