/* ═══════════════════════════════════════════════════════════════
   CIO — Consultorio de Odontología Integral
   Stylesheet
   ═══════════════════════════════════════════════════════════════ */


/* ─── RESET & BASE ──────────────────────────────────────────────── */

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

:root {
  --blue:        #2B7DC1;
  --blue-dark:   #1E5E9A;
  --blue-light:  #EAF3FB;
  --green:       #2DAA50;
  --green-dark:  #208C3B;
  --green-light: #E8F7ED;
  --navy:        #0D1B3E;
  --white:       #FFFFFF;
  --gray-50:     #F7F9FC;
  --gray-100:    #EEF1F6;
  --gray-400:    #9AA3B2;
  --gray-600:    #5A6272;
  --gray-800:    #1E2533;
  --font-body:   'Inter', sans-serif;
  --font-head:   'Playfair Display', serif;
  --radius:      10px;
  --shadow-sm:   0 2px 8px rgba(13, 27, 62, .08);
  --shadow-md:   0 6px 24px rgba(13, 27, 62, .12);
  --shadow-lg:   0 16px 48px rgba(13, 27, 62, .16);
  --transition:  .3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

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

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

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 3px;
}


/* ─── NAVBAR ─────────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .01em;
}

.nav-brand-sub {
  font-size: .72rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 8px 16px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-links .btn-cta {
  background: var(--blue);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 6px;
}

.nav-links .btn-cta:hover {
  background: var(--blue-dark);
  color: var(--white);
}


/* ─── SECTION HELPERS ────────────────────────────────────────────── */

section {
  scroll-margin-top: 72px;
}

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

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-tag.blue {
  background: var(--blue-light);
  color: var(--blue);
}

.section-tag.green {
  background: var(--green-light);
  color: var(--green-dark);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 18px;
}

.section-title span {
  color: var(--blue);
}

.section-title span.green {
  color: var(--green);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.75;
}

.divider {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  margin: 20px 0 32px;
}

.divider.blue {
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
}

.divider.green {
  background: linear-gradient(90deg, var(--green), var(--green-dark));
}


/* ─── BUTTONS ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  letter-spacing: .02em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(45, 170, 80, .35);
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 24px rgba(45, 170, 80, .45);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, .3);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .08);
}


/* ─── HERO ───────────────────────────────────────────────────────── */

#home {
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  background: linear-gradient(135deg, var(--navy) 0%, #162750 55%, #1A3A6E 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 125, 193, .18) 0%, transparent 70%);
  top: -120px;
  right: -100px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 170, 80, .12) 0%, transparent 70%);
  bottom: -80px;
  left: 10%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--green);
}

.hero-title span {
  color: #6FC3EF;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .72);
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 36px;
  backdrop-filter: blur(8px);
}

.hero-card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.hero-pillars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.pillar-icon.blue {
  background: rgba(43, 125, 193, .25);
}

.pillar-icon.green {
  background: rgba(45, 170, 80, .25);
}

.pillar-icon.navy {
  background: rgba(255, 255, 255, .1);
}

.pillar-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.pillar-text {
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.5;
}


/* ─── FEATURES STRIP ─────────────────────────────────────────────── */

.features-strip {
  background: var(--white);
  padding: 52px 0;
  border-bottom: 1px solid var(--gray-100);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.feature-item {
  padding: 28px 36px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-right: 1px solid var(--gray-100);
}

.feature-item:last-child {
  border-right: none;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-icon.blue {
  background: var(--blue-light);
}

.feature-icon.green {
  background: var(--green-light);
}

.feature-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.feature-desc {
  font-size: .83rem;
  color: var(--gray-600);
  line-height: 1.55;
}


/* ─── FILOSOFÍA ──────────────────────────────────────────────────── */

.filosofia {
  padding: 96px 0;
  background: var(--gray-50);
}

.filosofia-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.filosofia-quote {
  position: relative;
  padding: 44px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--blue);
}

.quote-mark {
  font-family: var(--font-head);
  font-size: 5rem;
  line-height: 1;
  color: var(--blue-light);
  position: absolute;
  top: 16px;
  left: 28px;
  font-weight: 700;
}

.quote-text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.65;
  font-style: italic;
  position: relative;
  z-index: 1;
  padding-top: 28px;
}

.values-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .92rem;
  color: var(--gray-600);
}

.value-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.value-dot.blue {
  background: var(--blue);
}

.value-dot.green {
  background: var(--green);
}


/* ─── QUIÉNES SOMOS ──────────────────────────────────────────────── */

#quienes-somos {
  padding: 96px 0;
  background: var(--white);
}

.team-header {
  text-align: center;
  margin-bottom: 64px;
}

.team-header .section-lead {
  margin: 0 auto;
}

.team-header .divider {
  margin: 20px auto 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 72px;
}

.doctor-card {
  background: var(--gray-50);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow var(--transition), transform var(--transition);
}

.doctor-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.doctor-card-header {
  padding: 36px 36px 0;
}

.doctor-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.doctor-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.doctor-role {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.doctor-card-body {
  padding: 20px 36px 36px;
}

.doctor-bio {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 24px;
}

.doctor-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.tag.blue {
  background: var(--blue-light);
  color: var(--blue);
}

.tag.green {
  background: var(--green-light);
  color: var(--green-dark);
}

.team-photo-section {
  background: var(--navy);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.team-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-photo-content {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-photo-content .section-tag {
  background: rgba(45, 170, 80, .2);
  color: #6EDB90;
  margin-bottom: 20px;
}

.team-photo-title {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 18px;
}

.team-photo-text {
  font-size: .9rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.75;
}


/* ─── CONTACTO ───────────────────────────────────────────────────── */

#contacto {
  padding: 96px 0;
  background: var(--gray-50);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.contact-card {
  background: var(--white);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-icon.blue {
  background: var(--blue-light);
}

.contact-icon.green {
  background: var(--green-light);
}

.contact-icon.navy {
  background: var(--gray-100);
}

.contact-card-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.contact-card-value {
  font-size: .97rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.contact-card-sub {
  font-size: .83rem;
  color: var(--gray-600);
}

.map-placeholder {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #1E3A6E 100%);
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px dashed rgba(255, 255, 255, .15);
  position: relative;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 0h20v20H0V0zm20 20h20v20H20V20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.map-pin {
  font-size: 2.8rem;
  position: relative;
  z-index: 1;
}

.map-label {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.map-sub {
  font-size: .85rem;
  color: rgba(255, 255, 255, .45);
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 32px;
}

.map-btn {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.map-btn:hover {
  background: rgba(255, 255, 255, .18);
}


/* ─── HORARIO ────────────────────────────────────────────────────── */

.horario-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-100);
}

.horario-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.horario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.horario-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-100);
}

.horario-day {
  font-size: .86rem;
  font-weight: 600;
  color: var(--navy);
}

.horario-time {
  font-size: .82rem;
  color: var(--gray-600);
}

.horario-time.closed {
  color: #E05252;
  font-weight: 600;
}


/* ─── FOOTER ─────────────────────────────────────────────────────── */

footer {
  background: var(--navy);
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 28px;
}

.footer-brand-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand-desc {
  font-size: .88rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.75;
  max-width: 280px;
}

.footer-col-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: .88rem;
  color: rgba(255, 255, 255, .6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255, 255, 255, .3);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .3);
}

.footer-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}


/* ─── RESPONSIVE ─────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    border-right: none;
    border-bottom: 1px solid var(--gray-100);
  }

  .feature-item:last-child {
    border-bottom: none;
  }

  .filosofia-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-photo-section {
    grid-template-columns: 1fr;
  }

  .team-photo-img {
    height: 280px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .nav-inner {
    padding: 0 20px;
  }

  .container {
    padding: 0 20px;
  }

  .hero-inner {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .horario-grid {
    grid-template-columns: 1fr;
  }
}
