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

body {
  font-family: 'Poppins', sans-serif;
  background: #fff8fb;
  color: #333;
}

header {
  width: 90%;
  max-width: 1100px;
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #d63384;
  margin-bottom: 5px;
}

nav {
  display: flex;
  gap: 15px;
}

nav a {
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #ff4f81;
}

.historia-card {
  max-width: 900px;
  margin: 150px auto 80px;
  background: white;
  padding: 55px 60px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.historia-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: #d63384;
  margin-bottom: 35px;
}

.historia-texto p {
  line-height: 1.9;
  font-size: 0.97rem;
  color: #555;
  margin-bottom: 16px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.historia-texto p:last-child {
  margin-bottom: 0;
}

.historia-divisor {
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, #ff4f81, #d63384);
  border-radius: 50px;
  margin: 45px auto;
}

.historia-fotos {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.foto-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 85px;
  max-width: 110px;
}

.foto-item p {
  font-size: 0.65rem;
  color: #888;
  font-weight: 300;
  line-height: 1.4;
  text-align: center;
  margin-top: 2px;
}

.foto-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(214, 51, 132, 0.12);
  transition: transform 0.3s;
}

.foto-item img:hover {
  transform: translateY(-5px);
}

.foto-item span {
  font-size: 0.65rem;
  color: #d63384;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.historia-cta {
  text-align: center;
  padding: 50px 20px;
  background: white;
}

.historia-cta p {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #d63384;
  margin-bottom: 20px;
}

.historia-cta a {
  text-decoration: none;
}

.historia-cta button {
  padding: 14px 35px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff4f81, #d63384);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: 0.3s;
}

.historia-cta button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

footer {
  background: linear-gradient(135deg, #ff4f81 0%, #ff6f91 100%);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  width: 100%;
}

@media (max-width: 768px) {
  .historia-card {
    padding: 35px 25px;
    margin: 120px 20px 60px;
  }

  .historia-card h2 {
    font-size: 1.7rem;
  }

  .foto-item {
    min-width: 100px;
    max-width: 130px;
  }

  header {
    width: 95%;
    padding: 10px 15px;
  }
}