/* ==========================================================================
   CCICOL - Hoja de estilos principal
   Reconstrucción limpia del sitio (HTML5 + CSS moderno)
   Paleta corporativa:
     Rojo  : rgb(210, 29, 31)  -> header y sección de contacto
     Azul  : rgb(22, 43, 111)  -> footer, títulos, texto base, overlays
     Blanco: rgb(255, 255, 255)
   Tipografías: Oswald (títulos) · Raleway (cuerpo / menú / botones)
   ========================================================================== */

:root {
  --rojo: rgb(210, 29, 31);
  --azul: rgb(22, 43, 111);
  --blanco: rgb(255, 255, 255);

  --font-titulo: 'Oswald', sans-serif;
  --font-cuerpo: 'Raleway', sans-serif;

  --contenedor: 980px;
  --ancho-max: 1526px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--blanco);
  color: var(--azul);
  font-family: var(--font-cuerpo);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.contenedor {
  width: 100%;
  max-width: var(--contenedor);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background: var(--rojo);
  width: 100%;
  position: relative;
}

.site-header .contenedor {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 60px;
  max-width: 1440px;
  min-height: 130px;
  padding-top: 18px;
  padding-bottom: 19px;
}

.site-logo {
  flex: 0 0 auto;
}

.site-logo img {
  width: 228px;
  height: 93px;
  object-fit: cover;
}

/* Menú principal */
.menu-toggle {
  display: none;
  background: transparent;
  border: 3px solid var(--blanco);
  border-radius: 8px;
  width: 48px;
  height: 42px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--blanco);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.main-nav a {
  display: inline-block;
  padding: 0 10px;
  line-height: 30px;
  color: var(--blanco);
  font-family: var(--font-cuerpo);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: opacity .3s ease;
}

.main-nav a:hover {
  opacity: .8;
}

.main-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   HERO (Inicio)
   ========================================================================== */
.hero {
  position: relative;
  background: var(--azul);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 275px;
  padding: 50px 0 34px;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
}

.hero .contenedor {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  color: var(--blanco);
  font-family: var(--font-titulo);
  font-weight: 500;
  font-size: 50px;
  line-height: 1em;
  text-align: center;
  max-width: 887px;
  margin-bottom: 34px;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cuerpo);
  font-size: 15px;
  font-weight: 700;
  color: var(--blanco);
  background: var(--azul);
  border: 3px solid var(--blanco);
  border-radius: 100px;
  min-width: 185px;
  height: 56px;
  padding: 0 25px;
  cursor: pointer;
  text-align: center;
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}

.btn:hover {
  background: var(--blanco);
  color: var(--azul);
  border-color: var(--azul);
}

.btn--ghost {
  background: transparent;
  min-width: 209px;
  height: 45px;
  font-weight: 400;
}

.btn--ghost:hover {
  background: var(--blanco);
  color: var(--azul);
}

/* ==========================================================================
   SECCIÓN: TÍTULO DE SERVICIOS
   ========================================================================== */
.section-title {
  background: var(--blanco);
  text-align: center;
  padding: 40px 0;
}

.section-title h2 {
  font-family: var(--font-titulo);
  font-weight: 500;
  font-size: 62px;
  line-height: 1.41em;
  color: var(--azul);
}

/* ==========================================================================
   BANNERS DE SERVICIO (Inicio)
   ========================================================================== */
.service-banner {
  position: relative;
  background: var(--azul);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 15px;
}

.banner-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .65;
}

.service-banner > .contenedor {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-banner h3 {
  font-family: var(--font-titulo);
  font-weight: 500;
  font-size: 88px;
  line-height: 1.41em;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 15px;
}

/* Alturas propias de cada banner (fieles al original) */
.banner-cardiologia   { min-height: 355px; }
.banner-vascular      { min-height: 340px; }
.banner-medicina      { min-height: 324px; }
.banner-ginecologia   { min-height: 393px; }

/* ==========================================================================
   SECCIÓN DE CONTACTO (roja)
   ========================================================================== */
.contact-info {
  background: var(--rojo);
  color: var(--blanco);
  padding: 34px 0 48px;
}

.contact-info .contenedor {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  position: relative;
}

.contact-col {
  font-size: 16px;
  line-height: 1.75;
}

.contact-col p {
  margin-bottom: 12px;
  font-size: 16px;
}

.contact-col p:last-child {
  margin-bottom: 0;
}

.contact-col strong {
  font-weight: 700;
}

.contact-col .lead {
  font-size: 18px;
}

.contact-col a {
  text-decoration: underline;
}

.contact-col a:hover {
  opacity: .85;
}

/* Divisores verticales entre columnas */
.contact-col + .contact-col {
  position: relative;
}

.contact-col + .contact-col::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 7px;
  background: var(--blanco);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--azul);
  color: var(--blanco);
  padding: 20px 0;
}

.site-footer .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-social-title {
  font-family: var(--font-titulo);
  font-weight: 500;
  font-style: italic;
  font-size: 35px;
  line-height: 1.41em;
  color: var(--blanco);
  margin: 0;
}

.social-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-bar a {
  display: block;
  width: 51px;
  height: 51px;
  transition: transform .3s ease, opacity .3s ease;
}

.social-bar a:hover {
  opacity: .8;
  transform: translateY(-2px);
}

.social-bar img {
  width: 51px;
  height: 51px;
  object-fit: cover;
}

.footer-logo img {
  width: 204px;
  height: 83px;
  object-fit: cover;
}

.footer-copy {
  text-align: center;
  font-size: 18px;
  margin-top: 10px;
}

.footer-copy em {
  font-style: italic;
}

.footer-copy strong {
  font-weight: 700;
}

/* ==========================================================================
   PÁGINAS INTERNAS - encabezado de página
   ========================================================================== */
.page-hero {
  background: var(--azul);
  color: var(--blanco);
  text-align: center;
  padding: 45px 15px;
}

.page-hero h1 {
  font-family: var(--font-titulo);
  font-weight: 500;
  font-size: 47px;
  line-height: 1.35em;
  color: var(--blanco);
}

.page-hero p {
  max-width: 980px;
  margin: 15px auto 0;
  font-size: 18px;
  line-height: 1.75em;
  color: var(--blanco);
}

/* ==========================================================================
   PÁGINA: QUIÉNES SOMOS
   ========================================================================== */
.about-section {
  background: var(--blanco);
  padding: 45px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  align-items: stretch;
}

.about-grid--reverse {
  grid-template-columns: 220px 1fr;
}

.about-text h2 {
  font-family: var(--font-titulo);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.35em;
  text-align: center;
  color: var(--azul);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--azul);
}

.about-text ul {
  font-size: 16px;
  padding-left: 25px;
  list-style: disc;
  color: var(--azul);
}

.about-text ul a {
  text-decoration: underline;
}

.about-text ul a:hover {
  opacity: .8;
}

.about-strip {
  background-size: cover;
  background-position: center;
  min-height: 100%;
}

.clients-list {
  font-size: 18px;
  padding-left: 25px;
  list-style: disc;
  color: var(--azul);
}

.clients-list li {
  margin-bottom: 4px;
}

/* ==========================================================================
   PÁGINA: NUESTROS SERVICIOS
   ========================================================================== */
.services-page {
  background: var(--azul);
  color: var(--blanco);
  padding: 45px 0 60px;
}

.service-block {
  margin-bottom: 45px;
}

.service-block h2 {
  font-family: var(--font-titulo);
  font-weight: 500;
  font-style: italic;
  font-size: 57px;
  line-height: 1.3em;
  color: var(--blanco);
}

.service-block .codigos-title {
  font-family: var(--font-titulo);
  font-size: 21px;
  font-style: italic;
  font-weight: 500;
  color: var(--blanco);
  margin: 10px 0 12px;
}

.service-block ul {
  list-style: disc;
  padding-left: 25px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--blanco);
}

.service-block ul li {
  margin-bottom: 4px;
}

.service-block ul strong {
  font-weight: 700;
}

.services-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ==========================================================================
   PÁGINA: EQUIPO DE TRABAJO
   ========================================================================== */
.team-section {
  background: var(--blanco);
  padding: 45px 0 60px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 25px;
}

.team-card {
  text-align: center;
}

.team-card .team-photo {
  width: 100%;
  height: 132px;
  object-fit: cover;
  background: #e9edf7;
}

.team-card h3 {
  font-family: var(--font-titulo);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.41em;
  color: var(--azul);
  margin: 15px 0 5px;
}

.team-card p {
  font-size: 18px;
  line-height: 1.2em;
  color: var(--azul);
  margin-bottom: 4px;
}

.team-card p em {
  font-style: italic;
}

/* ==========================================================================
   PÁGINA: CONTACTO
   ========================================================================== */
.contact-page {
  background: var(--blanco);
  padding: 45px 0 60px;
}

.contact-page .contenedor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-detail p {
  font-size: 22px;
  line-height: 1.75;
  margin-bottom: 14px;
  color: var(--azul);
}

.contact-detail a {
  text-decoration: underline;
}

.contact-detail a:hover {
  opacity: .8;
}

.contact-logo {
  text-align: center;
}

.contact-logo img {
  width: 420px;
  height: 171px;
  object-fit: cover;
  margin: 0 auto;
}

/* ==========================================================================
   PÁGINA: REGLAMENTO INTERNO
   ========================================================================== */
.pdf-frame {
  display: block;
  width: 100%;
  max-width: 980px;
  height: 950px;
  margin: 0 auto;
  border: 1px solid rgb(216, 222, 233);
  border-radius: 8px;
  background: var(--blanco);
  box-shadow: 0 4px 18px rgba(22, 43, 111, .12);
}

.pdf-download {
  text-align: center;
  margin-top: 25px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .site-header .contenedor {
    min-height: 110px;
  }

  .site-logo img {
    width: 180px;
    height: auto;
  }
}

@media (max-width: 1200px) and (min-width: 1025px) {
  .main-nav ul {
    gap: 6px;
  }

  .main-nav a {
    font-size: 13px;
    padding: 0 8px;
  }
}

/* Menú hamburguesa en tablet y móvil */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--rojo);
    display: none;
    z-index: 50;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
  }

  .main-nav a {
    display: block;
    padding: 12px 20px;
    line-height: 1.4;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .25);
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .site-header .contenedor {
    min-height: 90px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-logo img {
    width: 150px;
    height: auto;
  }

  .hero {
    min-height: 220px;
  }

  .hero-title {
    font-size: 32px;
  }

  .section-title h2 {
    font-size: 38px;
  }

  .service-banner h3 {
    font-size: 42px;
  }

  .service-banner {
    min-height: 240px !important;
  }

  .contact-info .contenedor {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-col + .contact-col::before {
    display: none;
  }

  .contact-col + .contact-col {
    border-top: 2px solid rgba(255, 255, 255, .4);
    padding-top: 20px;
  }

  .site-footer .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-social-title {
    font-size: 28px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .about-grid,
  .about-grid--reverse {
    grid-template-columns: 1fr;
  }

  .about-strip {
    min-height: 150px;
    order: -1;
  }

  .about-text h2 {
    font-size: 36px;
  }

  .service-block h2 {
    font-size: 34px;
  }

  .services-two-col {
    grid-template-columns: 1fr;
  }

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

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

  .contact-detail p {
    font-size: 18px;
  }

  .pdf-frame {
    height: 600px;
  }

  .contact-logo img {
    width: 300px;
    height: auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .service-banner h3 {
    font-size: 30px;
  }

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

  .team-card .team-photo {
    height: 180px;
  }

  .footer-social-title {
    font-size: 24px;
  }
}
