/* ============================================
  1. UTILIDADES
   ============================================ */
.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}
.clearfix::after {
  clear: both;
}
.clearfix {
  *zoom: 1;
}

/* ============================================
   2. LAYOUT PRINCIPAL
   ============================================ */
.contenedor-hospital {
  float: left;
  margin-top: 15px;
  width: 705px;
}

.page-empresa-saludable.hospital-page {
  max-width: 702px;
  margin: auto;
  line-height: 1.6em;
}

/* ============================================
   3. HERO SECTION
   ============================================ */
.hero-hospital {
  margin-bottom: 40px;
}

/* Hero Image + Título */
.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%;
  height: 280px;
  display: block;
}
.hero-title {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #0074b7;
  color: white;
  padding: 12px 20px;
  font-size: 22px;
  font-weight: bold;
}

/* Hero Attention Box */
.attention {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 10px 15px;
  font-size: 20px;
  color: #0074b7;
  font-weight: bold; 
  text-align: center;
}

.attention-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}
.attention-phone:focus {
  outline: none;
  box-shadow: none;
}

/* Hero Bottom (Info Box + Mapa) */
.hero-bottom {
  display: flex;
  align-items: stretch;
}

.hero-info-box {
  width: 45%;
  padding: 20px;
  box-sizing: border-box;
  background: #f4f4f4;
}
.hero-info-box .attention {
  margin-bottom: 20px;
  color: #0074b7;
}

.contact-item {
    overflow: hidden;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.contact-item:first-child .text {
    font-size: 18px;
    padding: 0;
}

.contact-item .icon {
    float: left;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #e6e6e6;
    text-align: center;
}
.contact-item .icon img {
  width: 36px;
  height: 36px;
  vertical-align: middle;
}
.contact-item .icon a:focus {
  outline: none;
  box-shadow: none;
}

.contact-item .text {
  float: left;
  width: calc(100% - 63px);
  font-size: 15px;
  color: #545353;
  padding-left: 15px;
}
.contact-item .text a {
    color: #545353;
    text-decoration: underline !important;
    outline: none;
}
.contact-item .text a strong {
    text-decoration: none !important;
    display: inline-block
}

.contact-item .text a:hover {
    color: #0074b7;
}
.contact-item .text a:focus {
  outline: none;
  box-shadow: none;
}

.hero-map {
  position: relative;
  width: 55%;
  overflow: hidden;
}

.hero-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-map a:focus {
  outline: none;
  box-shadow: none;
}

.hero-map-link {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background: #e6e6e6;
    color: #333;
    padding: 0px 10px;
    font-size: 14px;
}
.hero-map-link:link {
    text-decoration: underline !important;
}

/* Hover muy sutil */
.hero-map-link:hover {
  background: #dcdcdc;
}
.hero-map-link:focus {
  outline: none;
  box-shadow: none;
}

/* ============================================
   4. INTRO
   ============================================ */
.intro {
  margin: 20px 0;
}
.intro p {
  font-size: 16px;
  line-height: 1.8;
}

/* ============================================
   5. ESPECIALIDADES (Cards)
   ============================================ */

.card-hospital {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

/* =========================
   IMÁGENES
   ========================= */

/* Imagen izquierda */
.card-hospital img {
    width: 50%;
    height: auto;
    display: block;
    border-radius: 0px 32px 0px 24px;
}

/* Imagen derecha */
.card-hospital.reverse {
  flex-direction: row-reverse;
  align-items: center;
}

.card-hospital.reverse img {
    border-radius: 32px 0 24px 0;
    position: relative;
    z-index: 2; /* ✅ sobre el fondo */
}

/* =========================
   TEXTO NORMAL (sin fondo)
   ========================= */

.card-hospital .text {
  width: 50%;
  padding: 0 20px;
  max-width: 600px;
}

.card-hospital:not(.reverse) .text p:last-child {
    margin-bottom: 0!important;
}

/* =========================
   TEXTO CON FONDO (SOLO reverse)
   ========================= */

.card-hospital.reverse .text {
    background: #f2f2f2;
    width: 80%;
    max-width: 600px;
    padding: 18px 190px 0px 18px;
    position: relative;
    z-index: 1;
    margin-right: -160px;
    border-radius: 4px;
} 

/* Títulos */
.card-hospital .text h3 {
    color: #6d6d6d;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 22px;
}

/* ============================================
   6. TÍTULOS DECORATIVOS
   ============================================ */ 
 .title-deco {
    font-size: 24px;
    color: #0062a3;
    position: relative;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.title-deco span {
    display: inline-block;
    padding-right: 15px;
    white-space: nowrap;
}

.title-deco:after {
    content: '';
    width: 100%;
    height: 1px;
    background: #0062a3;
    display: inline-block;
    margin-bottom: 5px;
}

/* ============================================
   7. SERVICIOS
   ============================================ */
.services {
  background: #f4f4f4;
  margin-bottom: 40px;
}
 
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  margin: 10px;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 5px 20px 5px;
  font-size: 14px;
}

.service-item img {
  width: 48px;
  height: 48px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   8. INFO CARDS
   ============================================ */
.info-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.info-card {
  flex: 1;
  margin: 0;
  padding: 15px;
  border: 1px solid #dddddd;
  min-height: 180px;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.info-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.info-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  background: #f4f4f4;
  border-radius: 50%;
  text-align: center;
  line-height: 48px;
}

.info-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.info-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.info-card p {
  font-size: 14px;
  color: #666;
  line-height: 20px;
}

.info-link {
  margin-top: auto;
  color: #f49e00;
}
.info-link:link {
    text-decoration: underline !important;
}
.info-link:hover {
  text-decoration: underline;
}
.info-link:focus {
  outline: none;
  box-shadow: none;
}

/* ============================================
   10. BUZON DE SUGERENCIAS
   ============================================ */
.buzon-section {
    margin-bottom: 40px;
}

/* Botón */
.buzon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f39200;
    color: #ffffff;
    text-decoration: none;
    padding: 20px 40px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Icono */
.buzon-icon {
  width: 24px;
  height:24px;
  min-width: 24px;
  text-align: center;
}
.buzon-icon img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}
.buzon-icon a:focus {
  outline: none;
  box-shadow: none;
}

.buzon-text {
  margin-left: 15px;
  font-size: 18px;
  font-weight: bold;
}

/* ============================================
   10. VISITA BANNER
   ============================================ */
.visita-img {
  position: relative;
}
.visita-img img {
  width: 100%;
  height: 220px;
  display: block;
}

.visita-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

.visita-btn {
  display: inline-block;
padding: 8px 40px;
  font-size: 14px;
  font-weight: 600;
  background: #0062a3;
  color: #fff;
  text-decoration: none;
}
.visita-btn:hover {
  background: #004f85;
  color: #fff;
}
.visita-btn:focus {
  outline: none;
  box-shadow: none;
}

/* ============================================
   11. BADGES & UTILIDADES VISUALES
   ============================================ */
.attention-badge {
  font-size: 20px;
  font-weight: bold;
}

/* ============================================
   12. MEDIA QUERIES - RESPONSIVE
   ============================================ */

/* Tablet (< 950px) */
@media (max-width: 950px) {

    .contenedor-hospital {
        float: none;
        width: 100%;
        margin: 15px auto;
    }
    
    .info-card {
        width: calc((100% - 20px) / 2);
    }

}

/* Tablet pequeño / Móvil grande (< 768px) */
@media (max-width: 768px) {
 
}

/* Móvil (< 480px) */
@media (max-width: 480px) {

    .hero-image img {
        height: auto;
    }
    .hero-title {
        position: relative;
        text-align: center;
    }
    .attention {
        flex-direction: column;
        gap: 10px;
    }
    .hero-bottom {
        flex-direction: column;
    }
    .hero-info-box,
    .hero-map {
        width: 100%;
    }

    .card-hospital,
    .card-hospital.reverse {
        flex-direction: column;
    }

    .card-hospital img {
        width: 100%;
        margin-bottom: 20px;
    }

    .card-hospital .text {
        width: 100%;
        padding: 0;
        max-width: 100%;
    }

    .card-hospital.reverse .text {
        width: 100%;
        max-width: 100%;
        padding: 20px 20px 0;
        margin: 0;
    }

    .info-grid {
        flex-wrap: wrap;
    }

    .info-card {
        flex: auto;
        width: 47%;
        margin-right: 0;
    }

    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
    }
  
  .visita-img img {
    height: auto;
  }
    .visita-overlay {
        position:relative;
    }
}