/* ════════════════════════════════════════ */
/* MEDICO-CLINICA — Self-contained CSS        */
/* Professional medical landing page          */
/* ════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
  line-height: 1.6;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── CONTAINER ── */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── NAV ── */
.nav { 
  background: #fff; 
  border-bottom: 1px solid #e2e8f0; 
  position: sticky; 
  top: 0; 
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.nav-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  height: 64px; 
}
.nav-logo { 
  font-weight: 800; 
  font-size: 1.25rem; 
  color: #0f766e; 
  letter-spacing: -0.02em;
}
.nav-links { 
  display: flex; 
  align-items: center; 
  gap: 2rem; 
}
.nav-links a { 
  font-size: 0.875rem; 
  font-weight: 600; 
  color: #475569; 
  transition: color 0.2s;
}
.nav-links a:hover { color: #0f766e; }
.nav-cta { 
  background: #0f766e; 
  color: #fff !important; 
  padding: 0.5rem 1.25rem; 
  border-radius: 9999px; 
  font-weight: 700;
  transition: all 0.2s;
}
.nav-cta:hover { background: #115e59; }
.nav-toggle { 
  display: none; 
  background: none; 
  border: none; 
  font-size: 1.5rem; 
  cursor: pointer; 
}

@media (max-width: 768px) {
  .nav-links { 
    display: none; 
    position: absolute; 
    top: 64px; 
    left: 0; 
    right: 0; 
    background: #fff; 
    flex-direction: column; 
    padding: 1rem; 
    gap: 1rem;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  }
  .nav-links.nav-open { display: flex; }
  .nav-toggle { display: block; }
}

/* ── HERO ── */
.hero { 
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #fff 100%); 
  padding: 4rem 0 5rem; 
  border-bottom: 1px solid #e2e8f0;
}
.hero-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 3rem; 
  align-items: center; 
}
@media (max-width: 768px) { 
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; } 
}
.hero-tag { 
  display: inline-block; 
  background: #0f766e; 
  color: #fff; 
  font-size: 0.75rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 0.1em;
  padding: 0.375rem 1rem; 
  border-radius: 9999px; 
  margin-bottom: 1rem;
}
.hero-title { 
  font-size: 3rem; 
  font-weight: 800; 
  color: #0f172a; 
  line-height: 1.1; 
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.hero-subtitle { 
  font-size: 1.125rem; 
  color: #475569; 
  max-width: 500px; 
  margin-bottom: 1.5rem; 
  line-height: 1.7;
}
.hero-badges { 
  display: flex; 
  gap: 0.5rem; 
  flex-wrap: wrap; 
  margin-bottom: 2rem; 
}
.badge { 
  display: inline-flex; 
  align-items: center; 
  gap: 0.375rem; 
  background: #fff; 
  border: 1px solid #cbd5e1;
  padding: 0.375rem 0.875rem; 
  border-radius: 9999px; 
  font-size: 0.8rem; 
  font-weight: 600; 
  color: #475569;
}
.badge-green { 
  background: #d1fae5; 
  border-color: #6ee7b7; 
  color: #065f46; 
}
.hero-cta { 
  display: flex; 
  gap: 1rem; 
  flex-wrap: wrap; 
}
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.5rem;
  padding: 0.875rem 2rem; 
  border-radius: 0.75rem; 
  font-weight: 700; 
  font-size: 0.9375rem;
  transition: all 0.2s; 
  border: none; 
  cursor: pointer;
}
.btn-primary { 
  background: #0f766e; 
  color: #fff; 
  box-shadow: 0 4px 6px rgba(15,118,110,0.2);
}
.btn-primary:hover { 
  background: #115e59; 
  transform: translateY(-2px); 
  box-shadow: 0 6px 12px rgba(15,118,110,0.25);
}
.btn-whatsapp { 
  background: #22c55e; 
  color: #fff; 
  box-shadow: 0 4px 6px rgba(34,197,94,0.2);
}
.btn-whatsapp:hover { 
  background: #16a34a; 
  transform: translateY(-2px);
}
.btn-full { width: 100%; }
.hero-image { 
  position: relative; 
  display: flex; 
  justify-content: center; 
}
.hero-image img { 
  width: 320px; 
  height: 400px; 
  object-fit: cover; 
  border-radius: 1.5rem; 
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 4px solid #fff;
}
.hero-card { 
  position: absolute; 
  bottom: -20px; 
  left: 50%; 
  transform: translateX(-50%);
  background: #fff; 
  padding: 1rem 1.5rem; 
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
  display: flex; 
  align-items: center; 
  gap: 0.75rem;
  border: 1px solid #e2e8f0;
}
.hero-card-icon { 
  font-size: 1.5rem; 
}
.hero-card-label { 
  font-size: 0.75rem; 
  color: #94a3b8; 
  font-weight: 600; 
}
.hero-card-value { 
  font-weight: 700; 
  color: #0f172a; 
  font-size: 0.9rem;
}

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section-alt { background: #f8fafc; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag { 
  display: inline-block; 
  background: #ccfbf1; 
  color: #0f766e; 
  font-size: 0.75rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 0.1em;
  padding: 0.375rem 1rem; 
  border-radius: 9999px; 
  margin-bottom: 0.75rem;
}
.section-title { 
  font-size: 2.25rem; 
  font-weight: 800; 
  color: #0f172a; 
  line-height: 1.2; 
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.section-subtitle { 
  font-size: 1.1rem; 
  color: #64748b; 
  max-width: 600px; 
  margin: 0 auto;
  line-height: 1.7;
}

/* ── ABOUT ── */
.about-grid { 
  display: grid; 
  grid-template-columns: 1fr 2fr; 
  gap: 3rem; 
  align-items: start;
}
@media (max-width: 768px) { 
  .about-grid { grid-template-columns: 1fr; } 
}
.about-image img { 
  border-radius: 1.5rem; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 350px;
}
.about-text { 
  font-size: 1.05rem; 
  color: #475569; 
  line-height: 1.8; 
  margin-bottom: 2rem;
}
.about-subtitle { 
  font-size: 1.25rem; 
  font-weight: 700; 
  color: #0f172a; 
  margin-bottom: 1.25rem;
}
.about-studies { margin-bottom: 2rem; }
.study-item { 
  display: flex; 
  gap: 1.25rem; 
  padding: 1rem 0; 
  border-bottom: 1px solid #e2e8f0; 
}
.study-year { 
  font-weight: 800; 
  color: #0f766e; 
  font-size: 0.9rem;
  min-width: 50px;
}
.study-degree { 
  font-weight: 700; 
  color: #0f172a; 
  font-size: 0.95rem;
}
.study-school { 
  font-size: 0.875rem; 
  color: #64748b; 
}
.about-cert { margin-top: 1.5rem; }
.cert-grid { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.75rem; 
}
.cert-item { 
  background: #f0fdf4; 
  border: 1px solid #bbf7d0; 
  color: #166534;
  padding: 0.5rem 1rem; 
  border-radius: 9999px; 
  font-size: 0.85rem; 
  font-weight: 600;
}

/* ── SERVICES ── */
.services-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 1.5rem;
  justify-content: center;
}
@media (max-width: 768px) { 
  .services-grid { }

}
@media (max-width: 480px) { 
  .services-grid { grid-template-columns: 1fr; } 
}
.service-card { 
  background: #fff; 
  border: 1px solid #e2e8f0; 
  border-radius: 1.25rem; 
  padding: 2rem; 
  transition: all 0.2s;
  text-align: center;
}
.service-card:hover { 
  border-color: #0f766e; 
  box-shadow: 0 10px 30px rgba(15,118,110,0.08);
  transform: translateY(-4px);
}
.service-icon { 
  font-size: 2.5rem; 
  margin-bottom: 1rem; 
}
.service-card h3 { 
  font-weight: 700; 
  font-size: 1.1rem; 
  color: #0f172a; 
  margin-bottom: 0.5rem;
}
.service-card p { 
  font-size: 0.9rem; 
  color: #64748b; 
  line-height: 1.6;
}

/* ── SCHEDULE ── */
.schedule-wrapper { 
  max-width: 800px; 
  margin: 0 auto; 
}
.schedule-table { 
  width: 100%; 
  border-collapse: collapse; 
  background: #fff; 
  border-radius: 1rem; 
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
  border: 1px solid #e2e8f0;
}
.schedule-table thead { 
  background: #0f766e; 
  color: #fff; 
}
.schedule-table th { 
  padding: 1rem 1.5rem; 
  text-align: left; 
  font-weight: 700; 
  font-size: 0.875rem;
}
.schedule-table td { 
  padding: 1rem 1.5rem; 
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9375rem;
}
.schedule-table tr:hover { background: #f8fafc; }
.schedule-closed td { 
  color: #94a3b8; 
  font-style: italic;
}
.schedule-tag { 
  display: inline-block; 
  background: #ccfbf1; 
  color: #0f766e; 
  padding: 0.25rem 0.75rem; 
  border-radius: 9999px;
  font-size: 0.8rem; 
  font-weight: 600;
}
.schedule-note { 
  display: flex; 
  align-items: flex-start; 
  gap: 1rem; 
  margin-top: 1.5rem; 
  padding: 1.25rem;
  background: #eff6ff; 
  border: 1px solid #bfdbfe; 
  border-radius: 0.75rem;
  color: #1e40af;
}
.schedule-note-icon { font-size: 1.5rem; }

/* ── LOCATION ── */
.location-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 3rem; 
  align-items: start;
}
@media (max-width: 768px) { 
  .location-grid { grid-template-columns: 1fr; } 
}
.location-item { 
  display: flex; 
  gap: 1rem; 
  padding: 1.25rem 0; 
  border-bottom: 1px solid #f1f5f9;
}
.location-icon { 
  font-size: 1.5rem; 
  width: 40px; 
  text-align: center;
}
.location-label { 
  font-size: 0.8rem; 
  font-weight: 700; 
  color: #94a3b8; 
  text-transform: uppercase; 
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.location-value { 
  font-size: 1rem; 
  color: #334155; 
  font-weight: 500;
  line-height: 1.5;
}
.location-map img { 
  border-radius: 1.25rem; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* ── CONTACT ── */
.contact-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 3rem;
}
@media (max-width: 768px) { 
  .contact-grid { grid-template-columns: 1fr; } 
}
.contact-cta {
  background: linear-gradient(135deg, #f0fdf4, #ccfbf1);
  border: 2px solid #0f766e;
  border-radius: 1.25rem;
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contact-cta-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.contact-cta-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}
.contact-cta-text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 400px;
}
.contact-cta-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}
.contact-cta-note strong { color: #0f766e; }

.contact-cta-hours {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.7);
  border-radius: 0.75rem;
  width: 100%;
  max-width: 400px;
}
.contact-cta-hours-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-cta-hours-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}
.contact-cta-hours-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
}
.contact-methods { 
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
}
.contact-card { 
  background: #fff; 
  border: 1px solid #e2e8f0; 
  border-radius: 1rem; 
  padding: 1.5rem;
  transition: all 0.2s;
}
.contact-card:hover { 
  border-color: #0f766e; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.contact-emergency { 
  background: #fef2f2; 
  border-color: #fecaca; 
}
.contact-emergency:hover { border-color: #ef4444; }
.contact-icon { 
  font-size: 1.5rem; 
  margin-bottom: 0.5rem; 
}
.contact-label { 
  font-size: 0.75rem; 
  font-weight: 700; 
  color: #94a3b8; 
  text-transform: uppercase; 
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.contact-value { 
  font-size: 1.1rem; 
  font-weight: 700; 
  color: #0f766e; 
}
.contact-emergency .contact-value { color: #dc2626; }
.contact-emergency small { 
  display: block; 
  font-size: 0.8rem; 
  color: #991b1b; 
  margin-top: 0.25rem;
}

/* ── FORM ── */
.contact-form-wrapper { 
  background: #fff; 
  border: 1px solid #e2e8f0; 
  border-radius: 1.25rem; 
  padding: 2rem;
}
.form-title { 
  font-size: 1.25rem; 
  font-weight: 700; 
  color: #0f172a; 
  margin-bottom: 1.5rem;
}
.form-row { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 1rem; 
}
@media (max-width: 480px) { 
  .form-row { grid-template-columns: 1fr; } 
}
.form-group { 
  margin-bottom: 1.25rem; 
}
.form-group label { 
  display: block; 
  font-size: 0.875rem; 
  font-weight: 600; 
  color: #374151; 
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea { 
  width: 100%; 
  padding: 0.75rem 1rem; 
  border: 1px solid #d1d5db; 
  border-radius: 0.75rem;
  font-size: 0.9375rem; 
  font-family: inherit; 
  transition: border-color 0.2s;
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { 
  outline: none; 
  border-color: #0f766e; 
  box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}

/* ── INSURANCE ── */
.insurance-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: 1rem;
  justify-content: center;
}
.insurance-card {
  background: #fff; 
  border: 1px solid #e2e8f0; 
  border-radius: 1rem; 
  padding: 1.75rem; 
  text-align: center;
  transition: all 0.2s;
}
.insurance-card:hover { 
  border-color: #0f766e; 
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.insurance-logo { 
  font-size: 2rem; 
  margin-bottom: 0.75rem; 
}
.insurance-name { 
  font-weight: 700; 
  color: #0f172a; 
  margin-bottom: 0.25rem;
}
.insurance-type { 
  font-size: 0.85rem; 
  color: #64748b;
}

/* ── TESTIMONIALS ── */
.testimonials-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 1.5rem;
  justify-content: center;
}
.testimonial-card {
  background: #fff; 
  border: 1px solid #e2e8f0; 
  border-radius: 1.25rem; 
  padding: 2rem;
  transition: all 0.2s;
}
.testimonial-card:hover { 
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.testimonial-stars { 
  color: #fbbf24; 
  font-size: 1.1rem; 
  margin-bottom: 1rem;
}
.testimonial-text { 
  font-size: 0.95rem; 
  color: #475569; 
  line-height: 1.7; 
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author { 
  display: flex; 
  align-items: center; 
  gap: 0.75rem;
}
.testimonial-avatar { 
  font-size: 2rem; 
}
.testimonial-name { 
  font-weight: 700; 
  color: #0f172a;
}
.testimonial-role { 
  font-size: 0.8rem; 
  color: #94a3b8;
}

/* ── FAQ ── */
.faq-list { 
  max-width: 800px; 
  margin: 0 auto;
}
.faq-item { 
  background: #fff; 
  border: 1px solid #e2e8f0; 
  border-radius: 0.75rem; 
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-item summary { 
  padding: 1.25rem 1.5rem; 
  font-weight: 700; 
  color: #0f172a; 
  cursor: pointer;
  list-style: none; 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  transition: background 0.2s;
}
.faq-item summary:hover { 
  background: #f8fafc; 
}
.faq-item summary::after { 
  content: "+"; 
  font-size: 1.5rem; 
  color: #0f766e; 
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { 
  padding: 0 1.5rem 1.25rem; 
  color: #475569; 
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ── FOOTER ── */
.footer { 
  background: #0f172a; 
  color: #94a3b8; 
  padding: 4rem 0 2rem;
}
.footer-grid { 
  display: grid; 
  grid-template-columns: 2fr 1fr 1.5fr; 
  gap: 3rem; 
  margin-bottom: 3rem;
}
@media (max-width: 768px) { 
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; } 
}
.footer-logo { 
  font-size: 1.25rem; 
  font-weight: 800; 
  color: #fff; 
  margin-bottom: 1rem;
}
.footer-desc { 
  font-size: 0.9rem; 
  line-height: 1.7; 
  max-width: 300px;
}
.footer-links h4,
.footer-contact h4 { 
  color: #fff; 
  font-size: 0.875rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer-links a { 
  display: block; 
  padding: 0.375rem 0; 
  font-size: 0.9rem; 
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-contact p { 
  padding: 0.375rem 0; 
  font-size: 0.9rem;
}
.footer-bottom { 
  border-top: 1px solid #1e293b; 
  padding-top: 2rem;
  display: flex; 
  justify-content: space-between; 
  flex-wrap: wrap; 
  gap: 1rem;
  font-size: 0.8rem;
}
