
:root {
  --primary: #003366;
  --primary-dark: #022346;
  --accent: #f89b1b;
  --bg: #f4f6fb;
  --text: #1f2933;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.15);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: #ffffff;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.main-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 45%, #031624 100%);
  color: #ffffff;
  padding-bottom: 3rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.main-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at -10% -20%, rgba(248, 155, 27, 0.35), transparent 55%),
                    radial-gradient(circle at 110% 120%, rgba(248, 155, 27, 0.3), transparent 60%);
  opacity: 0.85;
  pointer-events: none;
}

.top-bar {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #ffffff;
  padding: 6px;
}

.logo-text h1 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 700;
}

.logo-text p {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  opacity: 0.9;
}

.main-nav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.main-nav a {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  opacity: 0.9;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.call-top {
  margin-left: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: #111827;
  font-weight: 600;
  font-size: 0.86rem;
  box-shadow: 0 12px 24px rgba(248, 155, 27, 0.45);
  white-space: nowrap;
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 3.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero-text h2 {
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  margin: 0 0 0.8rem;
}

.hero-text p {
  margin: 0 0 0.6rem;
  max-width: 36rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.4rem;
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
}

.hero-list li::before {
  content: "• ";
  color: var(--accent);
  margin-right: 0.2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.hero-note {
  font-size: 0.8rem;
  opacity: 0.95;
}

.hero-image-wrapper {
  justify-self: flex-end;
  max-width: 440px;
}

.hero-image {
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(248, 155, 27, 0.6);
}

/* General sections */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem;
}

.section:nth-of-type(odd) {
  background: #ffffff;
}

.section:nth-of-type(even) {
  background: var(--bg);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h3 {
  font-size: 1.7rem;
  margin: 0 0 0.4rem;
  color: var(--primary-dark);
}

.section-title p {
  margin: 0;
  color: #4b5563;
}

/* Trust section */

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: start;
}

.trust-grid > div:first-child p {
  color: #4b5563;
}

.trust-cards {
  display: grid;
  gap: 1rem;
}

.trust-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.trust-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--primary-dark);
}

.trust-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Doctors */

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.doctor-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  border-top: 3px solid var(--accent);
}

.doctor-card h4 {
  margin: 0;
  font-size: 1.15rem;
}

.doctor-cedula {
  margin: 0.2rem 0 0.6rem;
  font-size: 0.86rem;
  color: #6b7280;
}

.doctor-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #4b5563;
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.service-card h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--primary-dark);
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Packages */

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.package-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.3rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.package-card h4 {
  margin: 0 0 0.6rem;
  color: var(--primary-dark);
}

.package-card ul {
  margin: 0 0 0.6rem 1.2rem;
  padding: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.package-note {
  margin: 0;
  font-size: 0.86rem;
  color: #6b7280;
}

/* Highlight */

.highlight {
  background: radial-gradient(circle at top left, rgba(248, 155, 27, 0.12), transparent 50%), #ffffff;
}

.highlight-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.highlight-content p {
  color: #4b5563;
}

.highlight-image {
  max-width: 360px;
  justify-self: center;
}

.rounded-img {
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

/* Video */

.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.gallery-item {
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  opacity: 0.95;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  position: relative;
}

.lightbox img {
  width: 100%;
  border-radius: 18px;
}

.lightbox-close {
  position: absolute;
  top: -34px;
  right: 0;
  font-size: 2rem;
  color: #ffffff;
  cursor: pointer;
}

/* Social */

.social-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.fb-container {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.social-alt {
  align-self: center;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.contact-form {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.form-row {
  margin-bottom: 0.9rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font: inherit;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(248, 155, 27, 0.25);
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.84rem;
  color: #6b7280;
}

.contact-info h4 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
}

.map-wrapper {
  margin: 0.8rem 0 1rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.map-wrapper iframe {
  width: 100%;
  min-height: 220px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.contact-list li + li {
  margin-top: 0.3rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: #111827;
  box-shadow: 0 14px 32px rgba(248, 155, 27, 0.5);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(248, 155, 27, 0.6);
}

.btn.ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.section .btn.ghost {
  color: var(--primary-dark);
  border-color: rgba(15, 23, 42, 0.2);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn.full {
  width: 100%;
}

/* WhatsApp float */

.whatsapp-float {
  position: fixed;
  bottom: 18px;
  right: 16px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.7);
  z-index: 50;
}

.wa-icon {
  font-size: 1.7rem;
}

/* Footer */

.main-footer {
  text-align: center;
  padding: 1.4rem 1rem 1.6rem;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.main-footer p {
  margin: 0.2rem 0;
}

.main-footer a {
  color: #fbbf24;
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-image-wrapper {
    order: -1;
    justify-self: center;
  }
  .trust-grid,
  .highlight-content,
  .social-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-wrap: wrap;
  }
  .main-nav {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0;
    margin-top: 0.4rem;
  }
  .call-top {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 1.4rem;
  }
  .main-nav {
    display: none;
  }
  .section {
    padding-inline: 1.1rem;
  }
}
