/* Reset para evitar márgenes y paddings no deseados */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

nav a {
    color: #333;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #e74c3c;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
section:nth-child(odd) {
    background-color: #ffffff;
}
section:nth-child(even) {
    background-color: #f8f8f8;
}

.hero {
    height: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, rgba(192, 57, 43, 0.7), rgba(192, 57, 43, 0.7)), url('images/sancristobal.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
}

.hero-options{
    margin-left: 20px;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 60px 10px;
    max-width: 100%;
    flex-wrap: wrap;
}

.contact-form {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #c0392b;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.p-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
}
.p-inputtext {
    width: 100%;
    padding: 12px;
    border: 2px solid #c0392b;
    border-radius: 10px;
    transition: border-color 0.3s ease-in-out;
    box-sizing: border-box;
}
.p-inputtext:focus {
    border-color: #c0392b;
    outline: none;
}

.p-button {
    width: 100%;
    padding: 14px;
    border-radius: 20px;
    background-color: #c0392b;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}
.p-button:hover {
    background-color: #a93226;
}

footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

.card img {
    height: 200px;
    object-fit: cover;
    max-width: 100%;
}

/* Diseño responsivo */
@media (max-width: 768px) {
    .hero {
        height: auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .hero-options {
        flex-direction: column;
        gap: 15px;
        position: static;
        transform: none;
        width: 100%;
        text-align: center;
        margin-top: 10 px;
    }
    .auth-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 20px;
    }
    .contact-form {
        width: 90%;
        padding: 20px;
    }
    .p-button {
        width: 100%;
        padding: 12px;
    }
    .card img {
        height: 150px;
    }
}



@media (min-width: 401px) and (max-width: 578px) {
    .hero-options {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Dos columnas */
        gap: 10px; /* Espacio entre botones */
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 300px; /* Ajuste para evitar que se extiendan demasiado */
        margin: 0 auto;
    }

    .button-link {
        text-align: center;
        padding: 12px 15px; /* Ajuste de padding para evitar que se alarguen */
        font-size: 14px; /* Tamaño de fuente más equilibrado */
        width: 100%; /* Para que ocupen la columna entera */
    }
}

@media (max-width: 400px) {
    .hero-options {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Dos columnas */
        gap: 8px; /* Espacio más pequeño entre botones */
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 260px; /* Ajuste para que no se desborde */
        margin: 0 auto;
    }

    .button-link {
        text-align: center;
        padding: 10px 12px; /* Reduzco el padding para que no sean tan grandes */
        font-size: 13px; /* Tamaño de fuente más pequeño */
        width: 100%; /* Para que ocupen la columna entera */
    }
}

/* Estilo para enlaces tipo botón */
.button-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: white;
    color: #c0392b; /* Rojo */
    border: 2px solid white; /* Borde blanco */
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.button-link:hover {
    background-color: #c0392b; /* Rojo */
    color: white;
}
