/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}


.header-content {
    display: flex; /* Corregido de flexbox a flex */
    width: 100vw;
    max-width: 100%;
    margin-top: 15vh; /* Revisaremos esta propiedad más adelante */
}

.header {
    position:relative;
    width: 100%;
    padding: 25px;
    background-color: #f1f1f1;
    text-align: center;
  }
  
  .breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .breadcrumb li {
    display: inline;
    margin-right: 5px;
  }
  
  .breadcrumb a {
    color: #2a1c73;
    text-decoration: none;
  }
  
  .breadcrumb li::after {
    content: ">";
    margin-left: 5px;
  }
  
  .breadcrumb li:last-child::after {
    content: "";
  }
  


/* Sección hospitalización */
.hospitalizacion-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.sub-content {
    flex: 1;
    padding: 20px;
    text-align: center;
}

.sub-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.sub-content img {
    width: 100%;
    max-width: 500px;
    margin-top: 10px;
    border-radius: 8px;
}

/*seccion de habitaciones*/

.hospitalization {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.badge {
    background-color: #00c853;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.rooms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.room-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.room-content {
    padding: 1.5rem;
}

.room-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.room-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

.room-features {
    margin-top: 1rem;
    color: #777;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .rooms-container {
        grid-template-columns: 1fr;
    }
}

/* Sección contacto */
.contacto-hospital {
    background-color: #f4f4f4;
    padding: 50px 20px;
    text-align: center;
}

.contacto-hospital h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contacto-hospital p {
    margin-bottom: 20px;
}

.contacto-hospital .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2a1c73;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contacto-hospital .btn:hover {
    background-color: #413485;
}

/* Footer */
footer {
    background-color: #2a1c73;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px;
}

.footer-section {
    flex: 1;
    padding: 10px;
    max-width: 300px;
}

.footer-section h3 {
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hospitalizacion-content {
        flex-direction: column;
        padding: 20px;
    }

    .sub-content {
        margin-bottom: 20px;
    }

    .footer-content {
        flex-direction: column;
    }

    .header-content
    {
    display:flexbox;
    max-width: 100%;
    margin-top:10vh;
   }

}

.hospital-section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.content-wrapper {
    flex: 1;
    min-width: 100%;
}

.slideshow-wrapper {
    flex: 1;
    min-width: 100%;
    background-color: white; /* Color verde claro similar al de la imagen */
}

.hospital-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.hospital-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.feature-box {
    padding: 1.25rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.feature-title {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 0.5rem;
}

.feature-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.slideshow {
    position: relative;
    height: 500px;
    border-radius: 8px;
    background-color: white;
    overflow: hidden;
    margin-top: 1rem;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: white;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    background-color: white;
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slide-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

/* Tablet (768px y superior) */
@media (min-width: 768px) {
    .hospital-section {
        padding: 3rem 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .hospital-title {
        font-size: 2.25rem;
    }

    .slideshow {
        height: 350px;
    }
}

/* Desktop pequeño (1024px y superior) */
@media (min-width: 1024px) {
    .hospital-section {
        padding: 4rem 2rem;
    }

    .content-wrapper {
        min-width: 45%;
    }

    .slideshow-wrapper {
        min-width: 45%;
    }

    .hospital-title {
        font-size: 2.5rem;
    }

    .slideshow {
        height: 400px;
    }

    .feature-box {
        padding: 1.5rem;
    }

    .feature-title {
        font-size: 1.25rem;
    }

    .feature-text {
        font-size: 0.95rem;
    }
}

/* Desktop grande (1280px y superior) */
@media (min-width: 1280px) {
    .hospital-section {
        gap: 3rem;
    }

    .slideshow {
        height: 450px;
    }
}
