:root {
    --color-principal: #ed1202;
    --color-secundari: #3c3843;
    --color-fons: #1e1c21;
}

body {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0px;
    background-color: var(--color-fons);
}

h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    display: flex;

}
header {
    height: 240px;
    padding: 80px;
    text-align: center;
    color: white;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(header2.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

header h1 {
    font-family: 'Títol';
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    text-align: start;
}

header p {
    font-size: 1.2em;
    opacity: 0.8;
}

footer {
    padding: 30px;
    text-align: center;
    background: black;
    color: white;
}

footer p {
    opacity: 0.8;
    font-size: 0.9em;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    background-color: black;
    display: flex;
    
}

nav a {
    font-family: A;
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgb(56, 102, 201);
    transform: translateY(-4px);
}

aside {
    background-color: var(--color-secundari);
    color: white;
    padding: 60px;
    flex: 30%;
}

aside img {
    height: 300px;
    border-radius: 8px;
      transition: transform 0.3s ease;
}

aside img:hover {
    transform: scale(1.1);
}

main {
    display: flex;
}

@media screen and (max-width: 700px) {
    main {
        flex-wrap: wrap;
    }

    nav {
        flex-direction: column;
    }
}

section {
    padding: 60px;
    background-color: var(--color-fons);
    color: white;
}

section img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin: 15px 0px;
    border-radius: 4%;
    transition: transform 0.3s ease;
    }

section img:hover {
    transform: scale(1.1);
}


.parallax {
    background-image: url(https://cdn-p.smehost.net/sites/5b3bac59eb36401694af3a241173447f/wp-content/uploads/2021/01/AnuelAA_Ozuna-copia.jpg);
    height: 400px;
    width: 100%;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 60px 0px;
}


.flip-card {
  width: 273px;
  height: 273px;
  margin: 30px;
  display: inline-block;
  padding: 0px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.9s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(38, 143, 192, 0.3);
  box-sizing: border-box;
  overflow: hidden;
}

.flip-card-front {
  background: rgb(31, 106, 150)
}

.flip-card-back {
  background: var(--color-secundari);
  color: white;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: rotateY(180deg);
  overflow: hidden;
}

.flip-card-back h3 {
  margin: 0 0 8px 0;
  color: white;
  font-size: 1.1em;
  font-weight: bold;
}

.flip-card-back p {
  margin: 0;
  font-size: 0.8em;
  line-height: 1.3;
  /* Limitar el text per evitar desbordament */
  max-height: 100px;
  overflow: hidden;
}

.flip-card-front .personatge {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  margin: 0px;
}

article {
    background-image: url(ZXYKG4VBURHQ7ITI65TW5WYKSI.avif);
    background-color: #2e647e;
    width:40em;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

article a {
    color: white;
}

iframe {
    transition: transform 0.3s ease-in-out;
}

iframe:hover {
    transform: scale(1.05);
    z-index: 10;
}