/* Salud Visual PR – Lozada Ophthalmology Group */

:root {
  --white: #ffffff;
  --bg-soft: #f6f8f9;
  --medical-blue: #1a5fa8;
  --medical-blue-hover: #144d8a;
  --dark-blue: #0f2432;
  --text: #1c2b36;
  --text-muted: #5c6a74;
  --border: #e2e8ed;
  --shadow: 0 1px 2px rgba(15, 36, 50, 0.04), 0 4px 16px rgba(15, 36, 50, 0.04);
  --shadow-hover: 0 2px 8px rgba(15, 36, 50, 0.06), 0 8px 24px rgba(15, 36, 50, 0.06);
  --radius: 2px;
  --radius-sm: 2px;
  --header-h: 80px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --hero-bg-mid: #f4f6f8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  padding-top: var(--header-h);
}

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

a {
  color: var(--medical-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: none;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.brand-logo {
  max-height: 58px;
  max-width: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nav-toggle {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  background: var(--dark-blue);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem 2.25rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav-list a {
  color: var(--text);
  font-weight: 400;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.4rem 0;
  transition: color 0.2s;
}

.nav-list a:hover {
  color: var(--medical-blue);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.65rem 1.4rem;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--medical-blue);
  color: var(--white);
  border-color: var(--medical-blue);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--medical-blue-hover);
  border-color: var(--medical-blue-hover);
  color: var(--white);
  opacity: 0.95;
}

.btn-outline {
  background: transparent;
  color: var(--medical-blue);
  border-color: var(--medical-blue);
}

.btn-outline:hover {
  background: rgba(26, 95, 168, 0.06);
  color: var(--medical-blue);
}

.btn-lg {
  padding: 0.8rem 1.65rem;
  font-size: 0.75rem;
}

.btn-nav {
  flex-shrink: 0;
  text-transform: none;
  letter-spacing: 0.1em;
  font-size: 0.6875rem;
}

.hero-actions .btn {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #1eb855;
  border-color: #1eb855;
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(90deg, #ffffff 0%, #f7fbff 45%, #edf5fb 100%);
  padding: 80px 6%;
  overflow: hidden;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: center;
  gap: 48px;
  min-width: 0;
  box-sizing: border-box;
}

.hero-text {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 520px;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #1d68b3;
  font-weight: 600;
  margin: 0 0 18px;
}

.hero h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(44px, 4.7vw, 76px);
  line-height: 0.98;
  letter-spacing: -2.5px;
  font-weight: 300;
  color: #081f3a;
  margin: 0 0 28px;
}

.hero p:not(.hero-eyebrow) {
  font-size: 17px;
  line-height: 1.65;
  color: #4d6378;
  max-width: 430px;
  margin: 0 0 28px;
  box-sizing: border-box;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0;
  max-width: 100%;
}

.hero-image {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 760px;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border: none;
  border-radius: 0;
  filter: drop-shadow(0 18px 35px rgba(11, 31, 58, 0.08));
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 300;
  color: var(--dark-blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  font-weight: 400;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.cards-services {
  grid-template-columns: repeat(2, 1fr);
}

.cards-doctors {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #d0d8de;
  transform: translateY(-1px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: #f0f3f5;
  color: var(--medical-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--dark-blue);
  letter-spacing: 0.01em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Section: doctores (editorial) */
#doctores.section {
  background: #fafbfc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#doctores .section-head h2 {
  text-transform: none;
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Doctor cards (foto + contenido) */
.card.card-doctor {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid #e5e8eb;
}

.card-doctor:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  border-color: #d8dde1;
}

.doctor-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  background: #e8ebed;
  overflow: hidden;
}

.card-doctor .doctor-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
}

.card-doctor-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.5rem 1.6rem;
  gap: 0.6rem;
  min-height: 0;
  text-align: left;
  border-top: 1px solid #eceef0;
}

.card-doctor h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
  font-weight: 400;
  color: var(--dark-blue);
  letter-spacing: 0.01em;
}

.card-doctor .doctor-role {
  margin: 0 0 0.35rem;
  color: var(--medical-blue);
  font-weight: 500;
  font-size: 0.625rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.card-doctor .doctor-bio {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
  flex: 1;
  font-weight: 400;
}

.card-doctor .doctor-cta {
  margin-top: 1.1rem;
  width: 100%;
  text-align: center;
  align-self: stretch;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.6rem 1rem;
  font-size: 0.6875rem;
  text-transform: none;
}

/* Locations */
.locations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  border-top: 2px solid var(--medical-blue);
  min-width: 0;
}

.location-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--dark-blue);
  letter-spacing: 0.02em;
}

.location-card address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Contact */
.section-contact {
  background: linear-gradient(180deg, #ffffff 0%, #f0f6fc 100%);
  border-top: 1px solid var(--border);
}

.contact-block {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem 0;
}

.contact-block p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  color: var(--text);
}

.contact-block a {
  font-weight: 500;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

.contact-actions .btn {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

/* Footer */
.site-footer {
  background: var(--dark-blue);
  color: rgba(255, 255, 255, 0.88);
  padding: 1.75rem 1.25rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
}

.site-footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.site-footer-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer-facebook:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-footer-facebook-icon {
  flex-shrink: 0;
  opacity: 0.9;
  margin-top: 0.5px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    padding: 56px 6%;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-text {
    max-width: 100%;
    text-align: center;
    order: 2;
    margin: 0 auto;
  }

  .hero-image {
    order: 1;
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .hero-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .hero-text p:not(.hero-eyebrow) {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-eyebrow {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .locations {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
    margin-left: auto;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(12, 39, 64, 0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .nav .btn-nav {
    width: 100%;
    text-align: center;
  }

  .nav-toggle:checked ~ .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .cards-services,
  .cards-doctors {
    grid-template-columns: 1fr;
  }
}

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

@media (min-width: 1000px) {
  .cards-services {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards-doctors {
    grid-template-columns: repeat(4, 1fr);
  }
}

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