/* ==========================================================================
   Hipertensión Pulmonar - ASEMEVE Brand Styles
   Color palette based on new logo: #F25A5A primary coral
   ========================================================================== */

:root {
  --hp-primary: #F25A5A;
  --hp-primary-hover: #d94545;
  --hp-primary-soft: rgba(242, 90, 90, 0.15);
  --hp-primary-soft-strong: rgba(242, 90, 90, 0.2);
  --hp-surface-start: #fafaf7;
  --hp-surface-end: #f3eeea;
  --hp-card-border: #f0e6e3;
  --hp-hero-start: #fdf6f4;
  --hp-hero-end: #fbe9e7;
  --hp-footer-bg: #2b2b2b;
  --hp-footer-link: #e8c5c5;
  --hp-footer-separator: #4a4a4a;
  --hp-footer-copyright: #9a8a8a;
}

/* Hero Section */
.hp-hero {
  background: linear-gradient(135deg, var(--hp-hero-start) 0%, var(--hp-hero-end) 100%);
  padding: 4rem 0 3rem;
}

.hp-hero h1 {
  color: #333;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.3;
}

.hp-hero .lead {
  color: #666;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Primary Button */
.hp-btn-primary {
  background-color: var(--hp-primary);
  border: 2px solid var(--hp-primary);
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7em 2em;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.hp-btn-primary:hover {
  background-color: var(--hp-primary-hover);
  border-color: var(--hp-primary-hover);
  color: #fff;
}

/* Auth Card (login, register, password flows, basic message) */
.hp-card-auth {
  background-color: #fff;
  border: 1px solid var(--hp-card-border);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(45, 30, 30, 0.07);
}

/* Feature Cards */
.hp-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px var(--hp-primary-soft);
}

.hp-card .card-body {
  padding: 2rem;
}

.hp-card h5 {
  color: #333;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
}

.hp-card p {
  color: #666;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Icon Style */
.hp-icon {
  color: var(--hp-primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Notice Box */
.hp-notice {
  background-color: #fff;
  border-left: 4px solid var(--hp-primary);
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.5rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.7;
}

.hp-notice strong {
  color: #333;
}

/* Collaborators Section */
.hp-section-collab {
  padding: 3rem 0;
}

/* Chatbot List Section */
.hp-chatbot-section {
  padding: 3rem 0;
}

.hp-chatbot-section h2 {
  color: #333;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
}

.hp-chatbot-section p {
  color: #666;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
}

/* Chatbot Cards Grid */
.hp-chatbot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Chatbot Card */
.hp-chatbot-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.hp-chatbot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--hp-primary-soft-strong);
}

.hp-chatbot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.hp-chatbot-card .card-body {
  padding: 1.5rem 2rem;
  background: #fff;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hp-chatbot-card .card-body h5 {
  color: #333;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hp-chatbot-card .card-body p {
  color: #666;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Start Conversation Button */
.hp-btn-start {
  background-color: var(--hp-primary);
  border: 2px solid var(--hp-primary);
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6em 2em;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}

.hp-btn-start:hover {
  background-color: var(--hp-primary-hover);
  border-color: var(--hp-primary-hover);
  color: #fff;
}

/* Nav Links */
.hp-nav-link {
  color: #2b2b2b !important;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
}

.hp-nav-link:hover {
  color: var(--hp-primary) !important;
}

/* Header "Desarrollado por" */
.hp-developed-by {
  font-size: 0.75rem;
  color: #999;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* ASEMEVE Co-brand Logo */
.hp-asemeve-link {
  display: inline-flex;
  align-items: center;
}

.hp-asemeve-logo {
  height: 38px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.hp-asemeve-link:hover .hp-asemeve-logo {
  opacity: 1;
}

/* Login Button */
.hp-btn-login {
  background-color: var(--hp-primary);
  border: none;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.hp-btn-login:hover {
  background-color: var(--hp-primary-hover);
}

/* Footer */
.hp-footer-dark {
  background-color: var(--hp-footer-bg);
}

.hp-footer-link {
  color: var(--hp-footer-link);
  transition: color 0.3s;
}

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

.hp-footer-separator {
  color: var(--hp-footer-separator);
}

.hp-footer-copyright {
  color: var(--hp-footer-copyright);
  font-size: 0.8rem;
  font-family: 'Open Sans', Arial, sans-serif;
}

.hp-footer-sponsors {
  background-color: var(--hp-surface-start);
}

.hp-footer-sponsors img {
  opacity: 0.85;
  transition: opacity 0.3s;
}

.hp-footer-sponsors img:hover {
  opacity: 1;
}

/* ==========================================================================
   Responsive — Mobile first adjustments
   ========================================================================== */

@media (max-width: 767.98px) {
  /* Hero */
  .hp-hero {
    padding: 2rem 0 1.5rem;
    text-align: center;
  }

  .hp-hero h1 {
    font-size: 1.6rem;
  }

  .hp-hero .lead {
    font-size: 0.95rem;
  }

  .hp-hero .d-flex {
    justify-content: center;
  }

  .hp-hero img {
    max-height: 140px !important;
  }

  /* Buttons — full width on mobile for easier tapping */
  .hp-btn-primary {
    width: 100%;
    text-align: center;
    padding: 0.8em 1.5em;
    font-size: 0.95rem;
  }

  /* Feature Cards */
  .hp-card .card-body {
    padding: 1.5rem 1.2rem;
  }

  /* Notice */
  .hp-notice {
    padding: 1rem 1.2rem;
    font-size: 0.85rem;
  }

  /* Chatbot Section */
  .hp-chatbot-section {
    padding: 2rem 0;
  }

  .hp-chatbot-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0 0.5rem;
  }

  .hp-chatbot-card .card-body {
    padding: 1.2rem 1rem;
  }

  .hp-btn-start {
    width: 100%;
    text-align: center;
    padding: 0.7em 1.5em;
  }

  /* Footer */
  .hp-footer-dark .d-flex {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hp-footer-separator {
    display: none;
  }

  /* Collaborators */
  .hp-section-collab {
    padding: 2rem 0;
  }

  /* Header — hide "Desarrollado por" on mobile */
  .hp-developed-by {
    display: none;
  }

  /* ASEMEVE logo — smaller on mobile */
  .hp-asemeve-logo {
    height: 28px;
  }
}

/* Tablet tweaks */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hp-hero {
    padding: 3rem 0 2rem;
  }

  .hp-hero h1 {
    font-size: 1.8rem;
  }

  .hp-chatbot-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
  }
}
