/* === IPS Mi Casa Mi Hospital — Landing Page === */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --blue-900: #0b3d5c;
  --blue-700: #115e89;
  --blue-600: #1a6fa5;
  --blue-500: #2a8cc4;
  --blue-400: #4da8da;
  --blue-100: #e3f0f9;
  --blue-50: #f4f9fc;
  --green-600: #2d9f6f;
  --green-700: #238c5e;
  --white: #ffffff;
  --gray-50: #f8fafb;
  --gray-100: #eef2f5;
  --gray-200: #dce4ea;
  --gray-500: #6b8299;
  --gray-700: #3d5167;
  --gray-900: #1c2d3f;
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 1px 3px rgba(11,61,92,.08);
  --shadow-md: 0 4px 16px rgba(11,61,92,.1);
  --shadow-lg: 0 12px 40px rgba(11,61,92,.12);
  --radius: 12px;
  --transition: .3s ease;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }

.container { max-width:1140px; margin:0 auto; padding:0 24px; }

/* ---------- HEADER ---------- */
.header {
  position: fixed; top:0; left:0; width:100%; z-index:100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.header .container {
  display:flex; align-items:center; justify-content:space-between;
  height: 72px;
}

.logo { display:flex; align-items:center; gap:10px; }
.logo-icon {
  width:42px; height:42px; background: var(--blue-600);
  border-radius:8px; display:flex; align-items:center; justify-content:center;
  position:relative;
}
.logo-icon svg { width:24px; height:24px; fill:var(--white); }
.logo-text { font-family:var(--font-heading); font-weight:700; font-size:1.05rem; color:var(--blue-900); line-height:1.2; }
.logo-text span { display:block; font-size:.72rem; font-weight:500; color:var(--gray-500); letter-spacing:.3px; }

.nav { display:flex; align-items:center; gap:32px; }
.nav a {
  font-size:.9rem; font-weight:500; color:var(--gray-700);
  transition: var(--transition); position:relative;
}
.nav a::after {
  content:''; position:absolute; bottom:-4px; left:0; width:0;
  height:2px; background:var(--blue-600); transition:var(--transition);
}
.nav a:hover { color:var(--blue-600); }
.nav a:hover::after { width:100%; }

.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 22px; border-radius:8px; font-size:.9rem;
  font-weight:600; font-family:var(--font-body);
  transition:var(--transition); cursor:pointer; border:none;
}
.btn-primary {
  background:var(--blue-600); color:var(--white);
}
.btn-primary:hover { background:var(--blue-700); transform:translateY(-1px); box-shadow:var(--shadow-md); }

.btn-outline {
  background:transparent; color:var(--blue-600);
  border:1.5px solid var(--blue-500);
}
.btn-outline:hover { background:var(--blue-100); }

.btn-green { background:var(--green-600); color:var(--white); }
.btn-green:hover { background:var(--green-700); transform:translateY(-1px); box-shadow:var(--shadow-md); }

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

/* ---------- HERO ---------- */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(165deg, var(--blue-50) 0%, var(--white) 50%, var(--blue-50) 100%);
  position: relative; overflow:hidden;
}
.hero::before {
  content:''; position:absolute; top:-120px; right:-200px;
  width:600px; height:600px; border-radius:50%;
  background: radial-gradient(circle, rgba(26,111,165,.06) 0%, transparent 70%);
}
.hero .container { display:flex; align-items:center; gap:60px; }
.hero-content { flex:1; max-width:560px; }
.hero-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:var(--blue-100); color:var(--blue-600);
  padding:6px 14px; border-radius:20px; font-size:.8rem;
  font-weight:600; margin-bottom:20px;
}
.hero-badge svg { width:14px; height:14px; fill:var(--blue-600); }
.hero h1 {
  font-family:var(--font-heading); font-size:3rem; font-weight:700;
  line-height:1.15; color:var(--blue-900); margin-bottom:18px;
}
.hero h1 em {
  font-style:normal; color:var(--blue-600);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.hero p {
  font-size:1.1rem; color:var(--gray-700); margin-bottom:32px;
  max-width:480px; line-height:1.8;
}
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; }
.hero-image { flex:1; position:relative; }
.hero-image img {
  border-radius:var(--radius); box-shadow:var(--shadow-lg);
  object-fit:cover; max-height:480px; width:100%;
}
.hero-image::after {
  content:''; position:absolute; bottom:-16px; right:-16px;
  width:120px; height:120px; border-radius:var(--radius);
  border:3px solid var(--blue-400); opacity:.3; z-index:-1;
}

/* ---------- STATS BAR ---------- */
.stats {
  padding:40px 0; background:var(--white);
  border-bottom:1px solid var(--gray-100);
}
.stats .container { display:flex; justify-content:center; gap:60px; flex-wrap:wrap; }
.stat-item { text-align:center; }
.stat-number {
  font-family:var(--font-heading); font-size:2.2rem;
  font-weight:700; color:var(--blue-600);
}
.stat-label { font-size:.85rem; color:var(--gray-500); margin-top:2px; }

/* ---------- SERVICES ---------- */
.services { padding:100px 0; background:var(--gray-50); }
.section-header { text-align:center; max-width:600px; margin:0 auto 60px; }
.section-tag {
  font-size:.8rem; font-weight:600; text-transform:uppercase;
  letter-spacing:1.5px; color:var(--blue-500); margin-bottom:10px;
}
.section-header h2 {
  font-family:var(--font-heading); font-size:2.3rem;
  font-weight:700; color:var(--blue-900); margin-bottom:14px;
}
.section-header p { color:var(--gray-500); font-size:1rem; }

.services-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:24px;
}
.service-card {
  background:var(--white); border-radius:var(--radius);
  padding:36px 28px; border:1px solid var(--gray-100);
  transition:var(--transition); position:relative; overflow:hidden;
}
.service-card:hover {
  transform:translateY(-4px); box-shadow:var(--shadow-md);
  border-color:var(--blue-400);
}
.service-card::before {
  content:''; position:absolute; top:0; left:0;
  width:100%; height:3px; background:var(--blue-600);
  transform:scaleX(0); transform-origin:left;
  transition:var(--transition);
}
.service-card:hover::before { transform:scaleX(1); }
.service-icon {
  width:56px; height:56px; border-radius:10px;
  background:var(--blue-100); display:flex;
  align-items:center; justify-content:center; margin-bottom:20px;
}
.service-icon svg { width:28px; height:28px; stroke:var(--blue-600); fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.service-card h3 {
  font-family:var(--font-heading); font-size:1.2rem;
  font-weight:600; color:var(--blue-900); margin-bottom:10px;
}
.service-card p { font-size:.92rem; color:var(--gray-500); line-height:1.7; }

/* ---------- ABOUT ---------- */
.about { padding:100px 0; background:var(--white); }
.about .container { display:flex; align-items:center; gap:60px; }
.about-image { flex:1; position:relative; }
.about-image img {
  border-radius:var(--radius); box-shadow:var(--shadow-md);
  object-fit:cover; height:420px; width:100%;
}
.about-content { flex:1; }
.about-content h2 {
  font-family:var(--font-heading); font-size:2.2rem;
  font-weight:700; color:var(--blue-900); margin-bottom:18px;
}
.about-content > p {
  color:var(--gray-700); margin-bottom:24px; font-size:1rem; line-height:1.8;
}
.values-list { display:flex; flex-direction:column; gap:16px; margin-top:28px; }
.value-item { display:flex; gap:14px; align-items:flex-start; }
.value-icon {
  width:40px; height:40px; min-width:40px; border-radius:8px;
  background:var(--blue-100); display:flex;
  align-items:center; justify-content:center;
}
.value-icon svg { width:20px; height:20px; stroke:var(--blue-600); fill:none; stroke-width:2; }
.value-item h4 { font-family:var(--font-heading); font-size:.95rem; font-weight:600; color:var(--blue-900); margin-bottom:2px; }
.value-item p { font-size:.88rem; color:var(--gray-500); }

/* ---------- WHY US ---------- */
.why-us { padding:100px 0; background:var(--blue-900); color:var(--white); }
.why-us .section-tag { color:var(--blue-400); }
.why-us .section-header h2 { color:var(--white); }
.why-us .section-header p { color:rgba(255,255,255,.6); }
.why-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); gap:28px; }
.why-card {
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius); padding:32px 24px; transition:var(--transition);
}
.why-card:hover { background:rgba(255,255,255,.1); transform:translateY(-2px); }
.why-card-num {
  font-family:var(--font-heading); font-size:2rem;
  font-weight:700; color:var(--blue-400); margin-bottom:12px;
}
.why-card h3 { font-size:1.1rem; font-weight:600; margin-bottom:8px; }
.why-card p { font-size:.9rem; color:rgba(255,255,255,.6); line-height:1.7; }

/* ---------- SCHEDULE & LOCATION ---------- */
.location { padding:100px 0; background:var(--gray-50); }
.location .container { display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.location-info h2 {
  font-family:var(--font-heading); font-size:2.2rem;
  font-weight:700; color:var(--blue-900); margin-bottom:24px;
}
.schedule-table {
  width:100%; border-collapse:collapse; margin-bottom:32px;
}
.schedule-table th,
.schedule-table td {
  padding:12px 16px; text-align:left; font-size:.92rem;
  border-bottom:1px solid var(--gray-200);
}
.schedule-table th { font-weight:600; color:var(--blue-900); }
.schedule-table td { color:var(--gray-700); }
.schedule-table tr:last-child td,
.schedule-table tr:last-child th { border-bottom:none; }

.contact-details { display:flex; flex-direction:column; gap:16px; }
.contact-item { display:flex; gap:12px; align-items:center; }
.contact-item svg { width:20px; height:20px; stroke:var(--blue-600); fill:none; stroke-width:2; min-width:20px; }
.contact-item span { font-size:.95rem; color:var(--gray-700); }
.contact-item a { color:var(--blue-600); font-weight:500; }
.contact-item a:hover { text-decoration:underline; }

.location-map { border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-md); height:100%; min-height:400px; }
.location-map iframe { width:100%; height:100%; border:none; }

/* ---------- CONTACT CTA ---------- */
.cta {
  padding:80px 0;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-900) 100%);
  text-align:center; color:var(--white);
}
.cta h2 {
  font-family:var(--font-heading); font-size:2.2rem;
  font-weight:700; margin-bottom:14px;
}
.cta p { font-size:1.05rem; opacity:.85; margin-bottom:32px; max-width:500px; margin-left:auto; margin-right:auto; }
.cta-actions { display:flex; justify-content:center; gap:16px; flex-wrap:wrap; }
.btn-white { background:var(--white); color:var(--blue-700); }
.btn-white:hover { background:var(--gray-100); transform:translateY(-1px); box-shadow:var(--shadow-md); }

/* ---------- CONTACT FORM ---------- */
.contact { padding:100px 0; background:var(--white); }
.contact .container { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
.contact-text h2 {
  font-family:var(--font-heading); font-size:2.2rem;
  font-weight:700; color:var(--blue-900); margin-bottom:14px;
}
.contact-text > p { color:var(--gray-500); margin-bottom:32px; }

.form { display:flex; flex-direction:column; gap:18px; }
.form-group { display:flex; flex-direction:column; gap:6px; }
.form-group label { font-size:.85rem; font-weight:600; color:var(--gray-700); }
.form-group input,
.form-group textarea {
  padding:12px 16px; border:1.5px solid var(--gray-200);
  border-radius:8px; font-family:var(--font-body);
  font-size:.95rem; transition:var(--transition);
  background:var(--gray-50);
}
.form-group input:focus,
.form-group textarea:focus {
  outline:none; border-color:var(--blue-500);
  box-shadow:0 0 0 3px rgba(26,111,165,.1);
  background:var(--white);
}
.form-group textarea { resize:vertical; min-height:120px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }

/* ---------- FOOTER ---------- */
.footer { padding:48px 0 24px; background:var(--gray-900); color:rgba(255,255,255,.6); }
.footer .container { display:flex; justify-content:space-between; align-items:start; gap:40px; flex-wrap:wrap; }
.footer-brand { max-width:320px; }
.footer-brand .logo-text { color:var(--white); margin-bottom:12px; }
.footer-brand .logo-text span { color:rgba(255,255,255,.5); }
.footer-brand p { font-size:.88rem; line-height:1.7; }
.footer-links h4 { color:var(--white); font-size:.9rem; margin-bottom:12px; }
.footer-links a { display:block; font-size:.88rem; margin-bottom:8px; transition:var(--transition); }
.footer-links a:hover { color:var(--white); }
.footer-bottom {
  margin-top:40px; padding-top:20px;
  border-top:1px solid rgba(255,255,255,.1);
  text-align:center; font-size:.82rem;
}

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity:0; transform:translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ---------- MOBILE NAV ---------- */
.mobile-nav {
  display:none; position:fixed; top:72px; left:0; width:100%;
  background:var(--white); border-bottom:1px solid var(--gray-100);
  box-shadow:var(--shadow-md); padding:20px 24px;
  flex-direction:column; gap:16px; z-index:99;
}
.mobile-nav.active { display:flex; }
.mobile-nav a { font-size:1rem; font-weight:500; color:var(--gray-700); padding:8px 0; }
.mobile-nav a:hover { color:var(--blue-600); }

/* ---------- RESPONSIVE ---------- */
@media (max-width:960px) {
  .nav { display:none; }
  .hamburger { display:flex; }
  .hero .container { flex-direction:column; text-align:center; }
  .hero-content { max-width:100%; }
  .hero h1 { font-size:2.4rem; }
  .hero p { margin-left:auto; margin-right:auto; }
  .hero-actions { justify-content:center; }
  .hero-image { max-width:480px; width:100%; }
  .about .container { flex-direction:column; }
  .about-image { max-width:100%; }
  .about-image img { height:300px; }
  .location .container { grid-template-columns:1fr; }
  .contact .container { grid-template-columns:1fr; }
  .stats .container { gap:32px; }
}

@media (max-width:600px) {
  .hero { padding:120px 0 60px; }
  .hero h1 { font-size:2rem; }
  .services, .about, .why-us, .location, .contact { padding:70px 0; }
  .section-header h2, .about-content h2,
  .location-info h2, .contact-text h2, .cta h2 { font-size:1.8rem; }
  .form-row { grid-template-columns:1fr; }
  .footer .container { flex-direction:column; }
  .hero-actions { flex-direction:column; align-items:center; }
  .hero-image::after { display:none; }
}
