/* Estilos para la vista de Normas de la Casa y sus Tarjetas 3D */
.normas-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.normas-header {
    text-align: center;
    margin-bottom: 3rem;
}

.normas-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.normas-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.normas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    padding: 10px;
}

/* Base de la tarjeta 3D */
.norma-card {
    background-color: transparent;
    perspective: 1000px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    width: 100%;
}

.norma-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

/* Efecto Hover opcional para indicar que es clickeable */
.norma-card:hover .norma-card-inner {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-card);
}

/* Activador del giro 3D en el eje Y (sentido agujas del reloj) */
.norma-card.is-flipped .norma-card-inner {
    transform: rotateY(180deg);
}

.norma-card-front, .norma-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

/* Apariencia del Anverso (Frente) */
.norma-card-front {
    background-color: var(--surface-color);
    color: var(--text-primary);
}

.norma-card-front-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.norma-card-front-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.norma-card-front h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Apariencia del Reverso (Atrás) */
.norma-card-back {
    background-color: var(--primary-color);
    color: var(--surface-color);
    transform: rotateY(180deg);
    border-color: var(--primary-color);
}

.norma-card-back p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    color: var(--surface-color);
}
