/* ===================================================
   FUNDACIÓN RECOMENZAR — Hoja de estilos compartida
   =================================================== */

/* ── Variables ── */
:root {
  --red:        #DD183B;
  --red-hover:  #CC1939;
  --navy:       #0F172A;
  --charcoal:   #3A3A3A;
  --peach:      #FFEDE6;
  --coral:      #FFD1BF;
  --white:      #FFFFFF;
  --header-bg:  #f7f7f7;
  --border:     #fde6f1;
  --shadow:     0 2px 20px rgba(0,0,0,0.07);
  --max:        1200px;
  --font-h:     'Amatic SC', cursive;
  --font-b:     'Poppins', sans-serif;
  --radius:     50px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-b); font-size: 15px; line-height: 1.65; color: var(--charcoal); background: var(--peach); }
img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
p     { margin-bottom: .9em; }
p:last-child { margin-bottom: 0; }

/* ── Container ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
h1 { font-family: var(--font-h); font-size: clamp(48px,6vw,84px); font-weight: 700; line-height: 1.05; color: var(--white); }
h2 { font-family: var(--font-b); font-size: clamp(22px,3vw,34px); font-weight: 700; line-height: 1.2; color: var(--navy); }
h3 { font-family: var(--font-b); font-size: clamp(17px,2vw,22px); font-weight: 600; color: var(--navy); }
h4 { font-family: var(--font-b); font-size: 16px; font-weight: 600; color: var(--navy); }

.sec-label {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.sec-title  { font-size: clamp(24px,3.2vw,36px); font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.sec-sub    { font-size: 15px; color: var(--charcoal); max-width: 660px; margin: 0 auto 36px; line-height: 1.75; }
.tag-red    {
  display: inline-block; background: var(--red); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 14px;
}

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: var(--radius);
  font-family: var(--font-b); font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  border: none; transition: background .25s, transform .15s;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-white   { background: var(--white); color: var(--red); }
.btn-white:hover { background: var(--coral); }

/* ── WhatsApp ── */
.wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: var(--white);
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; margin-top: 14px;
  transition: background .2s;
}
.wa-btn:hover { background: #1ebe5d; }
.wa-btn svg { flex-shrink: 0; }

/* ── Scroll reveal ── */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════
   HEADER
════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 999;
  background: var(--header-bg); border-bottom: 1px solid var(--border);
  height: 78px; display: flex; align-items: center;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 58px; width: auto; }
.logo-text { font-family: var(--font-b); font-size: 17px; font-weight: 700; color: var(--navy); }
.logo-text span { color: var(--red); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { font-size: 13.5px; font-weight: 400; color: var(--charcoal); transition: color .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--red); font-weight: 600; }
.nav-cta { margin-left: 6px; }
.site-nav a.nav-cta,
.site-nav a.nav-cta:hover,
.site-nav a.nav-cta.active { color: var(--white); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }

@media (max-width: 960px) {
  .hamburger { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 78px; left: 0; right: 0;
    background: var(--header-bg); flex-direction: column; align-items: flex-start;
    gap: 0; border-top: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(0,0,0,.09); padding: 14px 24px 24px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 0; width: 100%; border-bottom: 1px solid #f0e0e8; font-size: 15px; }
  .nav-cta { margin-left: 0; margin-top: 12px; }
}

/* ════════════════════════════════
   HERO HOME — SLIDER
════════════════════════════════ */
.home-hero {
  position: relative; min-height: 540px; display: flex; align-items: center; overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide  { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide-1 { background: linear-gradient(135deg,rgba(20,6,9,.7),rgba(58,10,20,.6)), url('../archivos/fotos/1-optimizada.jpg') center/cover; }
.hero-slide-2 { background: linear-gradient(135deg,rgba(20,6,9,.7),rgba(58,10,20,.6)), url('../archivos/fotos/2-optimizada.jpg') center/cover; }
.hero-slide-3 { background: linear-gradient(135deg,rgba(20,6,9,.7),rgba(58,10,20,.6)), url('../archivos/fotos/3-optimizada.jpg') center/cover; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg,rgba(20,6,9,.8) 0%,rgba(20,6,9,.35) 65%,transparent 100%); }
.hero-content { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 90px 24px; width: 100%; }
.hero-content h1 { max-width: 740px; text-shadow: 0 2px 20px rgba(0,0,0,.35); margin-bottom: 18px; }
.hero-content .hero-sub { font-size: clamp(14px,1.7vw,17px); color: rgba(255,255,255,.87); max-width: 580px; margin-bottom: 34px; line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: background .3s; }
.hero-dot.active { background: var(--red); }

/* ════════════════════════════════
   PAGE HERO (páginas internas)
════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg,#140609 0%,#3a0a14 50%,#1a0508 100%);
  padding: 72px 24px; text-align: center;
}
.page-hero h1 { font-size: clamp(36px,5.5vw,68px); margin-bottom: 14px; }
.page-hero p  { font-size: 16px; color: rgba(255,255,255,.84); max-width: 620px; margin: 0 auto; line-height: 1.75; }

/* Hero con imagen de fondo (configurable por página) */
.page-hero.has-bg {
  background-color: #140609;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 24px;
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: center;
}
.page-hero.has-bg h1 { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.page-hero.has-bg p  { color: rgba(255,255,255,.92); text-shadow: 0 1px 10px rgba(0,0,0,.5); max-width: 760px; }

/* ════════════════════════════════
   SECTIONS — GRID LAYOUTS
════════════════════════════════ */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }

@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ════════════════════════════════
   SERVICE CARDS
════════════════════════════════ */
.service-card {
  background: var(--white); border-radius: 16px; padding: 34px 26px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(221,24,59,.13); }
.service-num { font-family: var(--font-h); font-size: 52px; font-weight: 700; color: var(--coral); line-height: 1; margin-bottom: 8px; }
.service-card h3 { font-size: 16px; margin-bottom: 10px; }
.service-card p  { font-size: 14px; color: #555; line-height: 1.65; }

/* ════════════════════════════════
   NEWS CARDS
════════════════════════════════ */
.news-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(0,0,0,.13); }
.news-thumb { width: 100%; height: 190px; overflow: hidden; background: var(--coral); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-body { padding: 22px 20px; }
.news-body .news-date { font-size: 12px; color: #999; margin-bottom: 6px; }
.news-body h4 { font-size: 15px; margin-bottom: 8px; line-height: 1.4; }
.news-body p  { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 14px; }
.news-link { font-size: 13px; font-weight: 600; color: var(--red); letter-spacing: .05em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; }
.news-link::after { content: ' →'; }

/* ════════════════════════════════
   TEAM CARDS
════════════════════════════════ */
.team-card { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.team-card:hover { transform: translateY(-4px); }
.team-photo { width: 100%; height: 300px; overflow: hidden; background: linear-gradient(135deg,var(--coral),var(--red)); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-body { padding: 26px 24px; }
.team-body .role { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin: 4px 0 12px; }
.team-body p { font-size: 14px; color: #555; line-height: 1.65; }

/* ════════════════════════════════
   REHAB EXPERIENCE (dark section)
════════════════════════════════ */
.rehab-section { background: var(--navy); color: var(--white); padding: 72px 24px; }
.rehab-inner   { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.rehab-section h2 { color: var(--white); margin-bottom: 16px; }
.rehab-section p  { color: rgba(255,255,255,.8); }
.step-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.step-item { display: flex; align-items: flex-start; gap: 14px; background: rgba(255,255,255,.06); border-radius: 12px; padding: 14px 16px; }
.step-num  { background: var(--red); color: var(--white); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.step-text { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.5; padding-top: 4px; }
@media (max-width: 768px) { .rehab-inner { grid-template-columns: 1fr; gap: 36px; } }

/* ════════════════════════════════
   PATIENT STORIES (experience gallery)
════════════════════════════════ */
.patients-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 40px; }
.patient-card  { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.patient-photo { width: 100%; height: 200px; overflow: hidden; background: var(--coral); }
.patient-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.patient-card:hover .patient-photo img { transform: scale(1.05); }
.patient-name  { padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--navy); }
@media (max-width: 900px) { .patients-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .patients-grid { grid-template-columns: 1fr 1fr; } }

/* ════════════════════════════════
   HOW TO HELP
════════════════════════════════ */
.help-card {
  background: var(--white); border-radius: 16px; padding: 36px 28px;
  box-shadow: var(--shadow); transition: transform .25s;
}
.help-card:hover { transform: translateY(-4px); }
.help-icon { font-size: 40px; margin-bottom: 16px; }
.help-card h3 { margin-bottom: 12px; }
.help-card p  { font-size: 14px; color: #555; line-height: 1.65; }

/* ════════════════════════════════
   CONTACT SECTION
════════════════════════════════ */
.contact-section { background: var(--white); padding: 72px 24px; }
.contact-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.contact-card  {
  display: flex; align-items: center; gap: 14px;
  background: var(--peach); border-radius: 12px; padding: 13px 18px;
  transition: background .2s; color: inherit;
}
.contact-card:hover { background: var(--coral); }
.ccard-icon { font-size: 20px; flex-shrink: 0; }
.ccard-text strong { display: block; font-size: 14px; color: var(--navy); }
.ccard-text span   { font-size: 13px; color: var(--charcoal); }
.contact-form-wrap { background: var(--peach); border-radius: 20px; padding: 40px; }
.contact-form-wrap h3 { margin-bottom: 8px; }
.contact-form-wrap > p { color: #888; font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  width: 100%; border: 1.5px solid #e8d0d8; border-radius: 10px;
  padding: 11px 15px; font-family: var(--font-b); font-size: 14px;
  background: var(--white); transition: border-color .2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--red); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { text-align: right; }
@media (max-width: 768px) { .contact-inner { grid-template-columns: 1fr; gap: 32px; } }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.site-footer { background: var(--white); padding: 52px 24px 0; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px;
}
.footer-brand p { font-size: 14px; color: var(--charcoal); margin-top: 14px; line-height: 1.75; }
.footer-logo img { height: 54px; width: auto; }
.footer-logo .logo-text { font-family: var(--font-b); font-size: 17px; font-weight: 700; color: var(--navy); }
.footer-logo .logo-text span { color: var(--red); }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-link  { width: 36px; height: 36px; border-radius: 50%; background: var(--peach); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.social-link:hover { background: var(--coral); }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 14px; letter-spacing: .06em; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 14px; color: var(--charcoal); transition: color .2s; }
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto;
}
.footer-bottom p { font-size: 13px; color: #999; }
@media (max-width: 768px) {
  .footer-inner  { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}
