/* main */
.main {
    background-color: var(--colorPrincipal);
    padding: 0 0 5rem 0;
}

.titulo-seccion {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0;
    padding: 5rem 2rem;
    color: var(--colorBlanco);
    text-transform: uppercase;
}


.sub-seccion {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0;
    padding: 2rem;
    color: var(--colorBlanco);
    text-transform: uppercase;
}

.grid-destacados {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    padding: 0 0 2rem 0
}

@media (min-width: 768px){ 
    .grid-destacados {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .grid-destacados {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fa-heart:hover{
    color:red;
}

.fa-whatsapp:hover{
    color:green
}

.options:hover{
    color:burlywood;
}

.btn-edit{
    display: inline-flex;
    padding: .5rem;
    border: 1px solid orange;
    border-radius: 5px;
    color: orange;
    transition: .3s;
}

.btn-edit:hover{
    display: inline-flex;
    padding: .5rem;
    border: 1px solid white;
    border-radius: 5px;
    color: white;
    background-color: orange;
}

.btn-success{
    display: inline-flex;
    padding: .5rem;
    border: 1px solid green;
    border-radius: 5px;
    color: green;
    transition: .3s;
}
.btn-success:hover{
    display: inline-flex;
    padding: .5rem;
    border: 1px solid white;
    border-radius: 5px;
    color: white;
    background-color: green;
}

.btn-error{
    display: inline-flex;
    padding: .5rem;
    border: 1px solid red;
    border-radius: 5px;
    color: red;
    transition: .3s;
    background-color: transparent;
}
.btn-error:hover{
    display: inline-flex;
    padding: .5rem;
    border: 1px solid white;
    border-radius: 5px;
    color: white;
    background-color: red;
}

.btn-visita{
    width: 100%;
    padding: 1rem 0;
    border-radius: 20px;
    margin-bottom: 2rem;
    background-color: #ff6600;
    color:white;
    border: none;
    transition: .3s;
    cursor: pointer;
}

.btn-visita:hover{
    background-color: #ff3c00;
    font-size:2rem
}

.radio-success{
    color:green;
    font-size: .5rem;
    transition: .3s;
    cursor: pointer;
}

.radio-success:hover{
    scale: 1.1;
}

.radio-error{
    color:red;
    font-size: .5rem;
    transition: .3s;
}

.radio-error:hover{
    scale: 1.1;
}

#code_search{
    all:unset;
    background-color: white;
    border:none;
    border-radius: 20px;
    padding-left: 1rem;
}

.boton-busqueda{
    background-color: transparent;
    border:none;
    cursor: pointer;
    transition: .3s;
    border-radius: 0;
    margin-left: -35px;
}

input[type="search"]::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}

/* .boton-busqueda:hover{
    background-color: #000;
    scale: 1.2;
    color:#ff6600;
} */

pre{
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: Arial, Helvetica, sans-serif;
}

/* Estilos del botón flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@media print {
    .whatsapp-float {
        display: none !important;
    }
}

/* Ocultar por defecto en la web */
.only-print {
    display: none;
}

@media print {
    /* Mostrar solo al imprimir */
    .only-print {
        display: block !important;
        text-align: center;
        font-size: 12px;
        color: #555;
        margin-top: 20px;
        border-top: 1px solid #ccc;
        padding-top: 10px;
    }

    /* Opcional: ocultar el resto del footer real si no lo quieres en papel */
   
}

@media print {
    /* Fuerza un salto de página ANTES del elemento */
    .salto-pagina {
        break-before: page;
        /* Compatibilidad con navegadores antiguos */
        page-break-before: always; 
    }

    /* Evita que un elemento se corte entre dos páginas */
    .evitar-corte {
        break-inside: avoid;
    }
}