/*
 * Archivo: styles_topografos.css
 * Estilos adaptados para la sección de registro y listado de topógrafos.
 */

:root {
    --color-primary: #07415e; /* Azul oscuro */
    --color-secondary: #ffaa00; /* Naranja vibrante */
    --color-dark: #1a1a1a; /* Texto oscuro */
    --color-light: #f7f9fc; /* Fondo claro */
    --border-radius-default: 8px;
    --shadow-card: 0 6px 15px rgba(0,0,0,0.1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 25px;
    background: white;
    border-radius: var(--border-radius-default);
    box-shadow: var(--shadow-card);
}

h1 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 25px;
    font-size: 2.5rem;
}

/* --- Estilos de Mensajes (Éxito/Error) --- */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius-default);
    text-align: center;
    font-weight: 600;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Estilos del Formulario --- */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--color-dark);
}

.form-input, .form-textarea, .form-file {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-default);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-file:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(255, 170, 0, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Estilo del botón (similar al button de index.php) */
.button {
    background: var(--color-secondary);
    color: white;
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: block; /* Para que ocupe todo el ancho del formulario */
    width: 100%;
    border-radius: var(--border-radius-default);
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.button:hover {
    background-color: #e69900;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* --- Estilos del Listado (Tabla para Consultoras) --- */
.listado-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 25px;
    background: white;
    border-radius: var(--border-radius-default);
    box-shadow: var(--shadow-card);
}

.topografos-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.topografos-table th, .topografos-table td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle; /* Alineación vertical centralizada */
    font-size: 0.95rem;
}

.topografos-table th {
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.topografos-table tr:nth-child(even) {
    background-color: #f7f7f7;
}

.topografos-table tr:hover {
    background-color: #ededed;
}

/* --- ESTILO DE LA FOTO DE PERFIL --- */
.profile-photo {
    width: 50px;
    height: 50px;
    object-fit: cover; /* Asegura que la imagen cubra el área sin distorsionarse */
    border-radius: 50%; /* La hace circular */
    border: 2px solid var(--color-secondary); /* Borde naranja */
    display: block;
    margin: 0 auto;
}

.download-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.download-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* --- Estilos para Header en Formularios Independientes --- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-primary);
}

.page-header img {
    height: 40px; /* Ajusta este valor al tamaño real de tu logo */
    vertical-align: middle;
}

.back-button {
    background: var(--color-primary);
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--border-radius-default);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #053347; /* Un tono más oscuro de azul */
}

/* Ajuste al contenedor para dar espacio al header */
.container {
    padding-top: 0;
}

.logo img {
            height: 80px;
            padding: 4px 0;
            border-radius: var(--border-radius-default);
        }
.logo a {
            display: inline-block;
        }
@media (max-width: 768px) {
    .container, .listado-container {
        padding: 15px;
        margin: 20px auto;
    }
    h1 {
        font-size: 2rem;
    }
    .topografos-table, .topografos-table thead, .topografos-table tbody, .topografos-table th, .topografos-table td, .topografos-table tr {
        display: block;
    }

    .topografos-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .topografos-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        border-radius: var(--border-radius-default);
        overflow: hidden;
    }

    .topografos-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
        font-size: 1rem;
    }
    
    /* Centrar contenido en la celda de la foto en móviles */
    .topografos-table td[data-label="Foto"] {
        text-align: center;
    }

    .topografos-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 10px;
        font-weight: bold;
        text-align: left;
        color: var(--color-primary);
    }

    .topografos-table td:last-child {
        border-bottom: 0;
    }
}