body {
    background-image: url('imagenes/fondo\ paginaweb.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    min-height: 100vh; /* asegura que el fondo cubra toda la página */
    position: relative; /* necesario para el pseudo-elemento */
}

body::before {
    content: "";
    position: absolute; /* cambia a absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
    pointer-events: none;
}
body > * {
    position: relative;
    z-index: 1;
}

.barra-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #181718, #165f94);
    padding: 10px 5px; /* Espaciado alrededor del contenido */
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.botones{
    display: flex;
    justify-content: flex-end;
    padding: 20px 5px; /* Opcional: igual que nav */
    gap: 16px;
}

.home {
    display: flex;
    justify-content: flex-start;
}

button {
    background: linear-gradient(90deg, #823572, #3333FF);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;           /* ajustado un poco el padding */
    cursor: pointer;
    font-size: 13px;
    position: relative;         /* necesario para el pseudo-elemento */
    border-radius: 10px;        /* hace al botón redondeado */
    overflow: visible;
    transition: transform 0.12s ease, color 0.12s ease; /* animaciones suaves */
}

/* pseudo-elemento que actúa como "cuadrado redondo" detrás del botón */
button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100% + 10px);   /* un poco más grande que el botón */
    height: calc(100% + 10px);
    background: rgba(0, 0, 0, 0);/* por defecto transparente */
    border-radius: 14px;        /* esquinas redondeadas del "cuadrado" */
    z-index: -1;                /* detrás del contenido del botón */
    transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
    opacity: 0;
}

/* al pasar el cursor: oscurece y muestra el "cuadrado redondo" */
button:hover {
    transform: translateY(-2px); /* pequeño levantamiento opcional */
    color: #fff;                 /* opcional: cambiar color del texto */
}

button:hover::before {
    background: rgba(0, 0, 0, 0.18); /* oscurecimiento */
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.bienvenida {
    margin: 40px auto 0 auto;
    height: 120px;
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 38px;
    font-family: 'Segoe UI', Arial, sans-serif;
    text-align: center;
    line-height: 1.3;
    background: rgba(30, 30, 60, 0.55); /* fondo semitransparente */
    border-radius: 24px;                 /* bordes redondeados */
    box-shadow: 0 8px 32px rgba(0,0,0,0.18); /* sombra suave */
    border: 1.5px solid rgba(255,255,255,0.18); /* borde sutil */
    backdrop-filter: blur(2px);          /* efecto de desenfoque */
    transition: box-shadow 0.2s;
}

.bienvenida:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}

.botones_inferiores {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px; /* Espacio entre bienvenida y los botones */
}

.contactos {
    margin: 40px auto 32px auto;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;      /* Fija la sección al fondo de la ventana */
    bottom: 0;            /* Pegada abajo */
    margin: 0;
    padding: 16px 0;
    background: rgba(30, 30, 60, 0.75);
    border-radius: 24px 24px 0 0; /* Solo arriba redondeado */
    box-shadow: 0 -4px 32px rgba(0,0,0,0.18);
    border: 1.5px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(2px);
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    text-align: center;
    font-size: 15px;
    transition: box-shadow 0.2s;
    z-index: 10;
}
.contactos-titulo {
    margin-top: 0;
    font-size: 15px;
    font-weight: 600;
}
.contactos_a{
    color: #aeefff;
    text-decoration: underline;
}
.contactos:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}

@media (max-width: 600px) {
    .barra-superior .botones {
        display: none; 
    }
    .barra-superior .home {
        width: auto;
        justify-content: flex-start;
        align-items: center;
        display: flex;
        padding-left: 10px;
    }
    .barra-superior {
        flex-direction: row;
        padding: 10px 0;
    }
    .home button {
        font-size: 16px;
        padding: 8px 16px;
        min-width: 0;
        width: auto;
    }
    .bienvenida, .contactos {
        width: 90%;
        font-size: 28px;
        padding: 10px 0;
        border-radius: 16px;
    }
    .bienvenida {
        height: auto;
        font-size: 22px;
    }
    .contactos {
        font-size: 13px;
        padding: 10px 0;
        border-radius: 16px 16px 0 0;
    }
    .botones, .botones_inferiores {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
        align-items: center;
    }
    button {
        width: 90%;
        font-size: 15px;
        padding: 10px 0;
    }
}