/* ============================================================
   Laboratorio Raffo - Design System
   Font: Plus Jakarta Sans (headings) + Inter (body)
   ============================================================ */

:root {
  /* Brand */
  --brand-primary: #1a3a5c;
  --brand-primary-dark: #0f2640;
  --brand-primary-light: #e8f0f7;
  --brand-accent: #00b4d8;
  --brand-accent-dark: #008fad;

  /* Surfaces */
  --surface: #ffffff;
  --surface-alt: #f5f8fb;
  --surface-dark: #0d1f2d;

  /* Text */
  --text: #0d1f2d;
  --text-muted: #4a5b6b;
  --text-inverse: #ffffff;

  /* Borders */
  --border: #e2e8ee;
  --border-strong: #cbd5df;

  /* Utility */
  --danger: #d43f3f;
  --success: #2e8b57;
  --whatsapp: #25D366;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(13, 31, 45, 0.06);
  --shadow-md: 0 4px 12px rgba(13, 31, 45, 0.08);
  --shadow-lg: 0 12px 32px rgba(13, 31, 45, 0.12);

  /* Layout */
  --container: 1200px;
  --header-h: 72px;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--brand-primary-dark);
  text-decoration: underline;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  font-family: var(--font-body);
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    box-shadow: var(--shadow-md);
    gap: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem 0.5rem; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}
.btn-primary {
  background: var(--brand-primary);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background: var(--brand-primary-dark);
  color: var(--text-inverse);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--brand-accent);
  color: var(--text-inverse);
}
.btn-accent:hover {
  background: var(--brand-accent-dark);
  color: var(--text-inverse);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  text-decoration: none;
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
}
.btn-whatsapp:hover {
  background: #1ebe57;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-lg { padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ============================================================
   Hero (home)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: var(--text-inverse);
  padding: 5rem 1.25rem 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(circle at 70% 40%, rgba(0, 180, 216, 0.22) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-logo {
  height: 72px;
  width: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.25));
}
.hero h1 {
  color: var(--text-inverse);
  max-width: 780px;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
}
.hero p.lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
  max-width: 680px;
  margin-bottom: 2rem;
}
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-inverse);
  border-color: rgba(255, 255, 255, 0.35);
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-inverse);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(0, 180, 216, 0.18);
  border: 1px solid rgba(0, 180, 216, 0.45);
  color: #a8e6f4;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.page-hero {
  background: var(--brand-primary-light);
  padding: 3.5rem 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p {
  font-size: 1.1rem;
  max-width: 720px;
  margin-bottom: 0;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 4rem 1.25rem;
}
.section-alt { background: var(--surface-alt); }
.section-dark {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: var(--text-inverse);
}
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--text-inverse); }
.section-dark p { color: rgba(255, 255, 255, 0.85); }

.section-head {
  max-width: var(--container);
  margin: 0 auto 2.5rem;
}
.section-head .eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-accent-dark);
  margin-bottom: 0.5rem;
}
.section-head h2 { margin-bottom: 0.5rem; }
.section-head p { font-size: 1.05rem; max-width: 680px; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-accent);
}
.card h3 { margin-bottom: 0.5rem; font-size: 1.125rem; }
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-primary);
}
.card-link:hover { color: var(--brand-primary-dark); }
.card-link::after {
  content: '->';
  font-family: var(--font-body);
  transition: transform 0.2s;
}
.card:hover .card-link::after { transform: translateX(3px); }

.card-highlight {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: var(--text-inverse);
  border: none;
}
.card-highlight h3,
.card-highlight h4 { color: var(--text-inverse); }
.card-highlight p { color: rgba(255, 255, 255, 0.88); }

/* ============================================================
   Grids
   ============================================================ */
.grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Two-column split */
.split {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   Logo grid (obras sociales)
   ============================================================ */
.logo-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.logo-grid-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.logo-grid-item:hover {
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.logo-grid-item img {
  max-height: 64px;
  max-width: 100%;
  object-fit: contain;
  filter: saturate(0.95);
}

/* ============================================================
   Accordion
   ============================================================ */
.accordion {
  max-width: 880px;
  margin: 0 auto;
}
.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.accordion-item.open {
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-sm);
}
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
  transition: background 0.15s;
}
.accordion-header:hover { background: var(--surface-alt); }
.accordion-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brand-primary);
  transition: transform 0.25s ease;
}
.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
}
.accordion-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.accordion-item.open .accordion-body { display: block; }
.accordion-body ul { margin: 0.5rem 0 0.5rem 1.1rem; padding: 0; }
.accordion-body li { margin-bottom: 0.3rem; }

/* ============================================================
   Info strip / contact bar
   ============================================================ */
.info-strip {
  background: var(--brand-primary);
  color: var(--text-inverse);
  padding: 1.75rem 1.25rem;
}
.info-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.info-strip-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.info-strip-item svg {
  width: 28px;
  height: 28px;
  color: var(--brand-accent);
  flex-shrink: 0;
}
.info-strip-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.15rem;
}
.info-strip-item span, .info-strip-item a {
  color: var(--text-inverse);
  font-size: 0.98rem;
}
.info-strip-item a:hover { color: var(--brand-accent); text-decoration: none; }
@media (max-width: 780px) {
  .info-strip-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Director profile card
   ============================================================ */
.director {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.director img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.director-info h3 { margin-bottom: 0.25rem; }
.director-info .role {
  color: var(--brand-accent-dark);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: block;
}
@media (max-width: 780px) {
  .director { grid-template-columns: 1fr; text-align: center; }
  .director img { margin: 0 auto; }
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border: 1px solid rgba(26, 58, 92, 0.2);
}
.badge-accent {
  background: #e0f7fb;
  color: var(--brand-accent-dark);
  border-color: rgba(0, 180, 216, 0.3);
}

/* ============================================================
   Forms
   ============================================================ */
.form {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   Contact list
   ============================================================ */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list svg {
  width: 22px;
  height: 22px;
  color: var(--brand-primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.contact-list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.contact-list span, .contact-list a { color: var(--text); font-size: 0.98rem; }

/* ============================================================
   Map
   ============================================================ */
.map-wrap {
  max-width: var(--container);
  margin: 2rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* ============================================================
   Floating WhatsApp button
   ============================================================ */
.fab-whatsapp {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  z-index: 95;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.fab-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
  color: #ffffff;
  text-decoration: none;
}
.fab-whatsapp svg { width: 30px; height: 30px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--surface-dark);
  color: #c5d1da;
  padding: 4rem 1.25rem 2rem;
  margin-top: 4rem;
}
.footer-wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer .footer-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}
.site-footer h4,
.site-footer .footer-col-title {
  color: var(--text-inverse);
  font-size: 0.88rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.site-footer p,
.site-footer li {
  color: #9fafbb;
  font-size: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #c5d1da; }
.site-footer a:hover { color: var(--brand-accent); text-decoration: none; }
.footer-acred {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.35);
  color: #a8e6f4;
  font-size: 0.78rem;
  font-weight: 600;
}
.footer-bottom {
  max-width: var(--container);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: #7a8a96;
}
@media (max-width: 780px) {
  .footer-wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   Utilities
   ============================================================ */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.lead { font-size: 1.1rem; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.list-clean li:last-child { border-bottom: none; }
.stack > * + * { margin-top: 1rem; }
