:root{
    --color-rojo: #660000;
}

body {
    background-color: white !important; /* Fondo blanco para evitar herencia */
}

.hero-directorio {
    background-image: url('/imagenes/estandar1/fondo1.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
}

section, .container {
    background-color: white;
}

.tarjeta-contacto {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.tarjeta-contacto:hover {
    transform: translateY(-5px);
}

.tarjeta-contacto h5 {
    color: var(--color-rojo);
    font-weight: bold;
}

.tarjeta-contacto p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.telefono-section {
    background: #f8f9fa;
    padding: 40px 20px;
    text-align: center;
}

.telefono-section h2 {
    font-weight: bold;
    color: var(--color-rojo);
}

.telefono-section .numero {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-rojo);
}

/*el efecto de que de vuelta*/
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 150px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 2px solid var(--color-rojo);
    border-radius: 10px;
    padding: 1rem;
}

.flip-card-front {
    background-color: #fff;
    color: var(--color-rojo);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-back {
    background-color: var(--color-rojo);
    color: white;
    transform: rotateY(180deg);
}
