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

body {
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  background: linear-gradient(135deg, #ff8c42, #ff6b35);
  color: #333;
}

header {
  text-align: center;
  padding: 20px;
  background-color: rgba(58, 63, 71, 0.9);
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.7); 
}

header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(90deg, #fff, #c0c0c0 50%, #fff);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding: 20px;
  perspective: 1000px;
}

.flip-container {
  width: 100%;
  max-width: 500px;
  height: auto;
  position: relative;
  perspective: 1000px;
}

.flipper {
  display: grid; /* Usamos grid para apilar .front y .back */
  grid-template-areas: 'flip';
  width: 100%;
  height: 100%;
  transition: transform 1s ease;
  transform-style: preserve-3d;
}

.flip-container:hover .flipper {
  transform: rotateY(180deg);
}

.front, .back {
  grid-area: flip; /* Ambos ocupan el mismo espacio */
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
}

.front {
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

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

.back {
  background-color: #fff;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transform: rotateY(180deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

footer {
  background-color: #282c34;
  color: white;
  text-align: center;
  padding: 20px;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.7);
  margin-top: auto;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

footer a {
  color: #61dafb;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
