/* ============================================================
   FisioVital Barcelona — Landing Page Demo (490€)
   Calming, professional, minimal healthcare aesthetic
   ============================================================ */

:root {
  --teal: #0d9488;
  --teal-dark: #0a7a70;
  --teal-light: #ccfbf1;
  --teal-glow: rgba(13, 148, 136, 0.2);
  --warm-bg: #faf8f5;
  --white: #ffffff;
  --dark: #1a1a2e;
  --text: #334155;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --border: #e2e8f0;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { font-family: var(--font-body); color: var(--text); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; background: var(--white); }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.container { width: 90%; max-width: 1100px; margin: 0 auto; }

/* ── Demo Banner ── */
.demo-banner { background: var(--dark); color: #e2e8f0; text-align: center; padding: 10px 20px; font-size: 0.8rem; z-index: 1001; position: relative; }
.demo-banner a { color: var(--teal-light); text-decoration: underline; font-weight: 600; }

/* ── Navbar ── */
.navbar { position: fixed; top: 38px; left: 0; width: 100%; z-index: 1000; padding: 0 5%; height: 64px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(0,0,0,0.04); }
.logo { font-family: var(--font-display); font-size: 1.5rem; color: var(--dark); }
.logo span { color: var(--teal); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--text-light); transition: color var(--transition); }
.nav-links a:hover { color: var(--teal); }
.nav-cta { padding: 9px 22px; background: var(--teal); color: white; border-radius: 50px; font-size: 0.85rem; font-weight: 600; transition: all var(--transition); }
.nav-cta:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 4px 16px var(--teal-glow); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1001; }
.hamburger span { width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100dvh; background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; transition: right 0.4s ease; z-index: 999; }
.mobile-menu.open { right: 0; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.6rem; color: var(--dark); opacity: 0; transform: translateY(15px); transition: all 0.3s ease; }
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-cta { background: var(--teal); color: white !important; padding: 12px 32px; border-radius: 50px; font-family: var(--font-body) !important; font-size: 1rem !important; }

/* ── Hero ── */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #2a4a4a; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,148,136,0.85) 0%, rgba(10,80,70,0.9) 100%); }
.hero-content { position: relative; z-index: 2; padding: 120px 5% 80px; max-width: 650px; }
.hero-content h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); color: white; line-height: 1.1; margin-bottom: 20px; font-weight: 400; }
.hero-content h1 em { font-style: italic; }
.hero-content > p { font-size: clamp(1rem, 2vw, 1.15rem); color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 480px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; padding: 14px 30px; background: white; color: var(--teal-dark); font-weight: 700; font-size: 0.95rem; border-radius: 50px; transition: all var(--transition); border: none; cursor: pointer; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-ghost { display: inline-flex; align-items: center; padding: 14px 30px; background: transparent; color: white; font-weight: 600; font-size: 0.95rem; border-radius: 50px; border: 1.5px solid rgba(255,255,255,0.3); transition: all var(--transition); }
.btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ── Trust Bar ── */
.trust-bar { background: var(--teal); padding: 24px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-item strong { display: block; font-size: 1.2rem; font-weight: 800; color: white; line-height: 1.2; }
.trust-item span { font-size: 0.75rem; color: rgba(255,255,255,0.7); }

/* ── Sections ── */
.section-white { background: var(--white); padding: 80px 0; }
.section-warm { background: var(--warm-bg); padding: 80px 0; }
.section-teal { background: linear-gradient(135deg, #0d9488 0%, #0a7a70 100%); padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--dark); font-weight: 400; margin-bottom: 10px; }
.section-header h2 em { font-style: italic; color: var(--teal); }
.section-header p { font-size: 1rem; color: var(--text-light); max-width: 480px; margin: 0 auto; }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { padding: 28px 24px; border-radius: 12px; border: 1px solid var(--border); background: white; transition: all var(--transition); }
.svc-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(13,148,136,0.08); }
.svc-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-light); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--teal); transition: all var(--transition); }
.svc-icon svg { width: 20px; height: 20px; }
.svc-card:hover .svc-icon { background: var(--teal); color: white; }
.svc-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; margin-bottom: 6px; color: var(--dark); }
.svc-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }
.services-cta { text-align: center; margin-top: 36px; }
.services-cta .btn-primary { background: var(--teal); color: white; }
.services-cta .btn-primary:hover { background: var(--teal-dark); box-shadow: 0 8px 24px var(--teal-glow); }

/* ── About ── */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img { height: 360px; border-radius: 14px; background-size: cover; background-position: center; background-color: #cbd5e1; }
.about-text h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--dark); font-weight: 400; margin-bottom: 14px; line-height: 1.2; }
.about-text h2 em { font-style: italic; color: var(--teal); }
.about-text > p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 24px; line-height: 1.7; }
.about-details { display: flex; flex-direction: column; gap: 16px; }
.about-item { display: flex; gap: 12px; align-items: flex-start; }
.about-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--teal); margin-top: 2px; }
.about-item strong { display: block; font-size: 0.9rem; color: var(--dark); }
.about-item small { font-size: 0.8rem; color: var(--text-light); }

/* ── Contact ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: white; font-weight: 400; margin-bottom: 14px; }
.contact-info h2 em { font-style: italic; }
.contact-info > p { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin-bottom: 24px; line-height: 1.6; }
.contact-info strong { color: white; }
.contact-features { display: flex; flex-direction: column; gap: 10px; }
.cf-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 0.88rem; }
.cf-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal-light); }

.contact-form { background: white; border-radius: 16px; padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.8rem; color: var(--text); margin-bottom: 5px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 11px 14px; background: var(--warm-bg); border: 1px solid var(--border); border-radius: 10px; font-family: var(--font-body); font-size: 0.88rem; color: var(--text); outline: none; transition: all var(--transition); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.contact-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.contact-form textarea { resize: vertical; min-height: 80px; }
.btn-submit { width: 100%; padding: 14px; background: var(--teal); color: white; font-weight: 700; font-size: 0.95rem; border-radius: 50px; border: none; cursor: pointer; transition: all var(--transition); }
.btn-submit:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 6px 20px var(--teal-glow); }
.form-note { text-align: center; margin-top: 10px; font-size: 0.8rem; color: var(--text-lighter); }

.form-success { display: flex; flex-direction: column; align-items: center; text-align: center; background: white; border-radius: 16px; padding: 44px 32px; gap: 10px; }
.form-success svg { width: 52px; height: 52px; color: var(--teal); }
.form-success h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--dark); }
.form-success p { color: var(--text); }
.form-success small { color: var(--text-lighter); font-size: 0.78rem; margin-top: 6px; }

/* ── Footer ── */
.footer { background: var(--warm-bg); padding: 36px 0; border-top: 1px solid var(--border); }
.footer-content { text-align: center; }
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; color: var(--dark); margin-bottom: 10px; }
.footer-logo span { color: var(--teal); }
.footer-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: 0.82rem; color: var(--text-light); }
.footer-links a { transition: color var(--transition); }
.footer-links a:hover { color: var(--teal); }
.footer-copy { font-size: 0.75rem; color: var(--text-lighter); }
.footer-copy a { color: var(--teal); font-weight: 600; }

/* ── Back to DevEps ── */
.back-to-deveps { position: fixed; bottom: 24px; left: 24px; z-index: 900; display: flex; align-items: center; gap: 6px; padding: 10px 18px; background: var(--dark); color: white; border-radius: 50px; font-size: 0.8rem; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: all var(--transition); }
.back-to-deveps svg { width: 16px; height: 16px; }
.back-to-deveps:hover { background: #FF6B00; transform: translateY(-2px); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .navbar { top: 34px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .about-img { height: 240px; }
  .form-row { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .demo-banner { font-size: 0.72rem; }
  .back-to-deveps span { display: none; }
  .back-to-deveps { padding: 12px; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; justify-content: center; }
  .footer-links { flex-direction: column; gap: 4px; }
  .footer-links span { display: none; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
