/* style.css */

/* Variables y Reseteo Básico */
:root {
    --primary-color: #007bff; /* Azul de marca */
    --secondary-color: #6c757d; /* Gris secundario */
    --background-light: #f8f9fa;
    --text-dark: #343a40;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 0.3rem;
    --padding-section: 4rem 2rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: white;
    line-height: 1.6;
}

/* ------------------------------------- */
/* Layout Base: Header, Main, Footer */
/* ------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Header (Barra de Navegación) --- */
header {
    background-color: var(--text-dark);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Botón de Administración (SSO) */
.admin-link {
    background-color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin-left: 1.5rem;
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Footer --- */
footer {
    background-color: var(--text-dark);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* ------------------------------------- */
/* Componentes Comunes */
/* ------------------------------------- */
section {
    padding: var(--padding-section);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* --- Formularios --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* ------------------------------------- */
/* Adaptabilidad (Responsive) */
/* ------------------------------------- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .admin-link {
        margin-top: 1rem;
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    section {
        padding: 2rem 1rem;
    }
}