/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

/* Estilos generales */
a {
  text-decoration: none;
  color: inherit;
}

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

button {
  cursor: pointer;
  background-color: transparent;
  border: none;
  font-size: 1rem;
}

/* Header */
.site-header {
  background-color: #002147;
  color: white;
  padding: 1rem 2rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  height: 80px;
}

.site-title {
  font-size: 1.8rem;
  color: white;
}

/* Hero Section */
.hero {
  background-color: #e3f2fd;
  padding: 2rem;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0d47a1;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Info Cards */
.info-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 2rem;
  gap: 1.5rem;
}

.card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 300px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.card h3 {
  padding: 1rem;
  font-size: 1.2rem;
  color: #0d47a1;
}

.card p {
  padding: 0 1rem 0.5rem;
  font-size: 0.95rem;
}

.card-button {
  display: inline-block;
  margin: 0.5rem 1rem 1rem;
  background-color: #0d47a1;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Carrusel automático - Imágenes se mueven solas */
.section-carousel {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  gap: 2rem;
  align-items: center;
  background-color: white;
  border-bottom: 1px solid #ddd;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  border-radius: 8px;
  height: 300px;
}

.carousel-images {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.section-text {
  flex: 1;
}

.section-text h2 {
  color: #0d47a1;
  margin-bottom: 1rem;
}

/* Carruseles de especialidades */
.carousel {
  background-color: white;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.slides {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.slides .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slides .slide.active {
  opacity: 1;
  z-index: 1;
}

.caption {
  margin-top: 1rem;
  text-align: center;
  font-style: italic;
  color: #666;
}

/* Footer */
.main-footer {
  background-color: #002147;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .info-cards {
    flex-direction: column;
    align-items: center;
  }

  .section-carousel {
    flex-direction: column;
    text-align: center;
  }

  .section-text {
    order: -1;
  }

  .logo-area {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .site-title {
    font-size: 1.3rem;
  }
}