/* =============================================
   Clara – Visión Sin Barreras
   styles.css · Solutions2Pharma SAS
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #0f6e56;
  --teal-light: #1d9e75;
  --teal-pale: #e1f5ee;
  --navy: #0a4a6e;
  --navy-dark: #063347;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-300: #dee2e6;
  --gray-500: #868e96;
  --gray-700: #495057;
  --gray-900: #212529;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  scroll-behavior: smooth;
}

/* NAV */
nav {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-icon.small { width: 32px; height: 32px; }
.nav-logo-icon svg { width: 18px; height: 18px; }
.nav-logo-text { color: white; font-weight: 600; font-size: 15px; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s; cursor: pointer;
  border: none; background: none; font-family: 'DM Sans', sans-serif;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.12); color: white; }
.nav-hamburger { display: none; background: none; border: none; color: white; font-size: 22px; cursor: pointer; padding: 4px 8px; }
.nav-mobile { display: none; flex-direction: column; padding: 8px 16px 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.nav-mobile .nav-link { padding: 10px 12px; }
.nav-mobile.open { display: flex; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 45%, var(--teal) 100%);
  padding: 80px 24px 96px;
}
.hero-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 56px; }
.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 20px; padding: 4px 16px; margin-bottom: 20px;
}
.hero-badge span { color: #9fe1cb; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.hero h1 { font-family: 'DM Serif Display', serif; color: white; font-size: 44px; line-height: 1.2; margin-bottom: 18px; }
.hero h1 em { color: #5dcaa5; font-style: normal; }
.hero p { color: rgba(255,255,255,0.82); font-size: 16px; max-width: 480px; margin-bottom: 32px; line-height: 1.75; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-avatar { flex-shrink: 0; text-align: center; }
.avatar-ring {
  width: 230px; height: 230px; border-radius: 50%;
  background: linear-gradient(135deg, #5dcaa5, #378add);
  padding: 4px; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(93,202,165,0.12), 0 0 0 20px rgba(93,202,165,0.06);
}
.avatar-ring img { width: 222px; height: 222px; border-radius: 50%; object-fit: cover; object-position: top center; }
.avatar-name { color: white; font-weight: 600; font-size: 16px; margin-top: 16px; }
.avatar-role { color: rgba(255,255,255,0.6); font-size: 12px; margin-top: 3px; }

/* BUTTONS */
.btn-primary {
  background: var(--teal-light); color: white; padding: 12px 26px;
  border-radius: var(--radius-md); font-size: 14px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: 'DM Sans', sans-serif; display: inline-block;
}
.btn-primary:hover { background: #17876a; transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,0.12); color: white; padding: 12px 26px;
  border-radius: var(--radius-md); font-size: 14px; font-weight: 500;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.28);
  cursor: pointer; transition: background 0.2s;
  font-family: 'DM Sans', sans-serif; display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* FEATURES */
.features { background: var(--gray-50); padding: 64px 24px; border-top: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300); }
.features-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal-light); margin-bottom: 8px; display: block; }
.section-title { font-family: 'DM Serif Display', serif; font-size: 30px; color: var(--gray-900); margin-bottom: 40px; line-height: 1.3; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature-card {
  background: white; border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.feature-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--teal-pale); display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 15px; font-weight: 600; color: var(--gray-900); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--gray-500); line-height: 1.65; }

/* CONTACT BANNER */
.contact-banner { background: var(--navy); padding: 28px 24px; }
.contact-banner-inner { max-width: 1100px; margin: 0 auto; }
.contact-banner-title { color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.contact-items { display: flex; gap: 28px; flex-wrap: wrap; }
.contact-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.85); font-size: 13px; text-decoration: none; }
.contact-item:hover { color: white; }

.clara-number a {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--teal-light); border-radius: var(--radius-md);
  padding: 14px 24px; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.clara-number a:hover { background: #17876a; transform: translateY(-1px); }
.clara-number-icon { font-size: 22px; }
.clara-number-text { color: white; font-size: 22px; font-weight: 700; letter-spacing: 0.5px; }
.clara-number-sub { color: rgba(255,255,255,0.75); font-size: 12px; display: block; margin-top: 2px; }

/* LEGAL */
.legal { max-width: 1100px; margin: 0 auto; padding: 64px 24px 96px; }
.legal-header { margin-bottom: 32px; }
.legal-intro { font-size: 14px; color: var(--gray-500); max-width: 700px; line-height: 1.75; margin-top: 8px; }
.legal-intro-text { font-size: 14px; color: var(--gray-700); line-height: 1.75; margin-bottom: 28px; padding: 16px 20px; background: var(--gray-50); border-left: 3px solid var(--teal-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--gray-300); margin-bottom: 40px; overflow-x: auto; }
.tab {
  padding: 10px 20px; border: none; background: none;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--gray-500); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  white-space: nowrap; transition: color 0.2s, border-color 0.2s;
}
.tab:hover { color: var(--gray-900); }
.tab.active { color: var(--teal-light); border-bottom-color: var(--teal-light); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content h3 { font-family: 'DM Serif Display', serif; font-size: 26px; color: var(--gray-900); margin-bottom: 6px; }
.legal-meta { font-size: 12px; color: var(--gray-500); margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-300); }
.legal-section { margin-bottom: 32px; }
.legal-section h4 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 12px; padding-left: 12px; border-left: 3px solid var(--teal-light); }
.legal-section p { font-size: 14px; color: var(--gray-700); line-height: 1.75; margin-bottom: 10px; }
.legal-section ul, .legal-section ol { font-size: 14px; color: var(--gray-700); line-height: 1.75; padding-left: 20px; margin-top: 8px; }
.legal-section ul li, .legal-section ol li { margin-bottom: 8px; }
.legal-section a { color: var(--teal-light); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

.info-grid { background: var(--gray-50); border: 1px solid var(--gray-300); border-radius: var(--radius-md); overflow: hidden; }
.info-row { display: flex; padding: 10px 16px; font-size: 14px; border-bottom: 1px solid var(--gray-300); gap: 16px; }
.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 600; color: var(--gray-700); min-width: 160px; flex-shrink: 0; }
.info-value { color: var(--gray-900); }
.info-value a { color: var(--teal-light); text-decoration: none; }
.info-value a:hover { text-decoration: underline; }

.contact-box { background: var(--gray-50); border: 1px solid var(--gray-300); border-radius: var(--radius-md); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.contact-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gray-700); }
.contact-row a { color: var(--teal-light); text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }

.form-divider { display: flex; align-items: center; gap: 16px; margin: 40px 0 32px; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-300); }
.form-divider span { font-size: 13px; font-weight: 600; color: var(--gray-500); white-space: nowrap; }

/* FORM */
.deletion-form { max-width: 700px; }
.form-section { margin-bottom: 24px; padding: 28px; background: var(--gray-50); border: 1px solid var(--gray-300); border-radius: var(--radius-lg); }
.form-section h4 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 20px; padding-left: 12px; border-left: 3px solid var(--teal-light); }
.optional { font-weight: 400; color: var(--gray-500); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--gray-700); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  padding: 10px 14px; border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--gray-900); background: white;
  transition: border-color 0.2s; width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--teal-light); box-shadow: 0 0 0 3px rgba(29,158,117,0.12); }
textarea { resize: vertical; }
.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.radio-label, .checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--gray-700); cursor: pointer; line-height: 1.5; }
.radio-label input, .checkbox-label input { margin-top: 3px; width: auto; accent-color: var(--teal-light); flex-shrink: 0; }
.mt-12 { margin-top: 12px; }
.declaracion-box { background: white; border: 1px solid var(--gray-300); border-left: 3px solid var(--teal-light); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13px; color: var(--gray-700); line-height: 1.7; margin-bottom: 16px; }
.form-footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: 12px; color: var(--gray-500); line-height: 1.5; }
.form-note a { color: var(--teal-light); text-decoration: none; }
.form-success { text-align: center; padding: 40px 24px; background: var(--teal-pale); border: 1px solid #9fe1cb; border-radius: var(--radius-lg); margin-top: 16px; }
.success-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--teal-light); color: white; font-size: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.form-success h4 { font-size: 18px; font-weight: 600; color: var(--teal); margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--gray-700); }

/* FOOTER */
footer { background: var(--navy-dark); padding: 40px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { color: white; font-weight: 600; font-size: 15px; }
.footer-sub { color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 2px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 13px; text-decoration: none; transition: color 0.2s; cursor: pointer; }
.footer-links a:hover { color: white; }
.footer-copy { color: rgba(255,255,255,0.35); font-size: 12px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .hero { padding: 48px 20px 60px; }
  .hero-inner { flex-direction: column-reverse; gap: 32px; text-align: center; }
  .hero h1 { font-size: 32px; }
  .hero p { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .avatar-ring { width: 180px; height: 180px; }
  .avatar-ring img { width: 172px; height: 172px; }
  .features { padding: 48px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-items { flex-direction: column; gap: 12px; }
  .legal { padding: 48px 20px 64px; }
  .tabs { gap: 0; }
  .tab { padding: 8px 14px; font-size: 13px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .form-footer { flex-direction: column; align-items: flex-start; }
  .info-row { flex-direction: column; gap: 4px; }
  .info-label { min-width: unset; }
}