/* ============================================
   PRIME HEMODYNAMICS & MEDICAL DEVICES
   Paleta: azul / blanco / acentos rojos
   Tipografía: sans-serif (DM Sans)
   ============================================ */

:root {
  --blue-dark: #0a2540;
  --blue-mid: #1e4d7b;
  --blue-light: #2d7ab8;
  --blue-bg: #f0f7fc;
  --white: #ffffff;
  --red-accent: #c41e3a;
  --red-hover: #a01830;
  --text: #1a2d42;
  --text-muted: #5a6d7d;
  --shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
  --radius: 12px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

/* ========== HEADER (fijo) ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 10px rgba(10, 37, 64, 0.06);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.is-scrolled {
  box-shadow: 0 4px 24px rgba(10, 37, 64, 0.12);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue-dark);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-weight: 500;
  color: var(--blue-dark);
}

.nav a:hover {
  color: var(--red-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.85) 0%, rgba(30, 77, 123, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform 0.2s ease;
}

.btn-primary {
  background: var(--red-accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
}

/* ========== SOBRE NOSOTROS ========== */
.about {
  padding: 4rem 0;
  background: var(--blue-bg);
}

.about .section-title {
  margin-bottom: 2.5rem;
}

.about-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(10, 37, 64, 0.08);
  padding: 2.75rem 2.5rem;
  border: 1px solid rgba(45, 122, 184, 0.08);
}

.about-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 2rem;
}

.about-lead strong {
  color: var(--blue-dark);
}

.about-values {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-values li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}

.about-value-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-bg);
  color: var(--blue-mid);
  border-radius: 50%;
}

.about-value-icon svg {
  width: 14px;
  height: 14px;
}

.about-address-block {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e8eef4;
}

.about-address-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-accent);
}

.about-address-icon svg {
  width: 20px;
  height: 20px;
}

.about-address-block address {
  font-style: normal;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== PRODUCTOS ========== */
.products {
  padding: 4rem 0;
  background: var(--white);
}

.products-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: -1rem auto 2rem;
  line-height: 1.5;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border: 1px solid #e8eef4;
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue-light);
}

.product-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-bg);
  color: var(--blue-mid);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.product-icon svg {
  width: 28px;
  height: 28px;
}

.product-card h3 {
  font-size: 1.15rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== BENEFICIOS ========== */
.benefits {
  padding: 4rem 0;
  background: var(--blue-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-mid));
  color: var(--white);
  border-radius: 50%;
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
}

.benefit-card h3 {
  font-size: 1.1rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== CONTACTO ========== */
.contact {
  padding: 4rem 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.contact-info a {
  color: var(--blue-mid);
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--red-accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 500;
  color: var(--blue-dark);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #dde4eb;
  border-radius: 8px;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(45, 122, 184, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ========== FOOTER ========== */
.footer {
  padding: 2.25rem 0;
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.footer-legal-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.footer-address {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.35rem;
}

.footer-email {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-email a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}

.footer-email a:hover {
  color: var(--white);
}

.footer-payment {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  text-decoration: underline;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-copy {
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ========== PÁGINAS LEGALES ========== */
.legal-page {
  padding: 6rem 0 4rem;
  min-height: 60vh;
}

.legal-page .container {
  max-width: 720px;
}

.legal-page h1 {
  font-size: 1.75rem;
  color: var(--blue-dark);
  margin-bottom: 0.25rem;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-page section {
  margin-bottom: 1.75rem;
}

.legal-page h2 {
  font-size: 1.1rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.legal-page p,
.legal-page li {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.legal-page ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.legal-page a {
  color: var(--blue-mid);
  text-decoration: underline;
}

.legal-page a:hover {
  color: var(--red-accent);
}

.legal-page .btn {
  margin-top: 1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .about-card {
    padding: 1.75rem 1.5rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .footer-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo-text {
    font-size: 0.8rem;
    white-space: normal;
    max-width: 140px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 1.5rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right var(--transition);
  }

  .nav.is-open {
    right: 0;
  }

  .nav a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 75vh;
    padding: 5rem 1rem 3rem;
  }

  .section-title {
    margin-bottom: 1.75rem;
  }
}
