body {
    background-color: rgb(82, 72, 59);
 }

 .titulo3 {
    margin-bottom: 10px;
    position: relative;
 }

h3 {
    color: beige;
    cursor: pointer;
    padding: 10px 15px;
    background-color: black;
    border-radius: 5px;
    transition: background-color 0.3s ease;
} 

h3:hover {
    background-color: black;
}

.texto-oculto {
    display:none;
    position: absolute;
    background-color: rgb(189, 4, 4);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;
    z-index: 10;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.titulo3 h3:hover .texto-oculto {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cartas {
    width: 420px;
    height: 470px;
    perspective: 1000px;
}

.ineer {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.cartas:hover .ineer {
    transform: rotateY(180deg);
}

.frente,
.carta-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.frente img,
.carta-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carta-back {
    transform: rotateY(180deg);
}

.organizador {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: repeat(3, auto);
    justify-content: center;
    gap: 8px;
}

div  {
    width: 800px;
    max-width: 95%;
    margin: auto;
}

header {
    color: beige;
    cursor: pointer;
    background-color: black;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center; 
} 

h1 {
    text-align: center;
    font-family: fantasy;
    font-size: 500%;
}
 p {
    font-weight: 800;
    text-align: left;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 }

 .palitos { 
   width: 8%;
   height: auto;
 }

 .palitos:hover { 
   width: 10%;
   height: auto;
 }

 .ajustar  {
    width: 790px;
    height:100px;
    align-items: center;
 }

 .pie {
    background-color:  rgb(95, 84, 69);
    margin: auto;
    border-radius: 5px;
 }

 html {
    scroll-behavior: smooth;
 }


