/* ===========================================
   CSS COMPLETO CORREGIDO - PERSONAL WEBSITE UFV
   =========================================== */

/* RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* TYPOGRAPHY Y LINKS */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

p {
    margin-bottom: 15px;
}

/* HEADER GENERAL */
header {
    background-color: #002855;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

header h1 {
    margin-bottom: 10px;
    font-size: 2.2em;
}

/* NAVEGACIÓN */
nav a {
    display: inline-block;
    background-color: #002855;
    color: #FFD100;
    padding: 10px 15px;
    margin-right: 10px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #001F3D;
    transform: translateY(-2px);
}

/* CONTENEDOR PRINCIPAL */
.container,
main,
article {
    max-width: 1100px;
    margin: 0 auto 20px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* SECCIONES */
section {
    margin-bottom: 30px;
}

section h2 {
    color: #002855;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e0e7ff;
}

section h3 {
    color: #1e40af;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* IMÁGENES */
img {
    max-width: 100%;
    max-height: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin: 15px auto;
    display: block;
}

.top-right {
    position: absolute;
    top: 15px;
    right: 15px;
}

.top-right img {
    width: 120px;
    max-width: 140px;
    height: auto;
}

/* ABOUT ESPECÍFICO */
.about img {
    max-width: 180px !important;
    width: 150px;
    height: auto;
    display: block;
    margin: 15px auto;
    border: 3px solid #002855;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.about img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,40,85,0.4);
}

.about {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    padding: 30px;
    border-radius: 16px;
    border-left: 6px solid #002855;
    margin: 30px 0;
}

.about section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.about ul {
    list-style: square;
    padding-left: 25px;
    margin: 15px 0;
}

.about li {
    margin-bottom: 10px;
    font-size: 1.05em;
    line-height: 1.7;
}

/* TABLAS */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

th, td {
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: linear-gradient(135deg, #002855, #1e40af);
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: #f8fafc;
}
.contact {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #002855;
    box-shadow: 0 10px 40px rgba(0,40,85,0.2);
}

.contact h2 {
    text-align: center;
    color: #002855;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact label {
    font-weight: 700;
    color: #002855;
    font-size: 1.05em;
    margin-bottom: 8px;
}

.contact input,
.contact textarea,
.contact select {
    padding: 15px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.05em;
    background: white;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.contact input:focus,
.contact textarea:focus {
    border-color: #002855;
    box-shadow: 0 0 0 3px rgba(0,40,85,0.1);
    outline: none;
    transform: translateY(-2px);
}

.contact textarea {
    min-height: 120px;
    resize: vertical;
}

.contact button {
    background: linear-gradient(135deg, #002855, #1e40af);
    color: #FFD100;
    padding: 18px 300px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact button:hover {
    background: linear-gradient(135deg, #001F3D, #1e3a8a);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,40,85,0.4);
}


/* FOOTER */
/* 🚨 FOOTER AZUL PEQUEÑO Y CENTRADO - VERSIÓN FINAL */
footer {
    background: linear-gradient(135deg, #002855 0%, #1e40af 100%) !important;
    color: white !important;
    text-align: center !important;
    padding: 20px 15px !important;        /* ← PADDING REDUCIDO */
    margin: 30px auto 0 auto !important;  /* ← MARGEN REDUCIDO */
    max-width: 900px !important;          /* ← ANCHO CONTROLADO */
    border-radius: 10px !important;
    box-shadow: 0 -6px 25px rgba(0,40,85,0.3) !important;
    font-size: 0.95em !important;         /* ← TEXTO MÁS PEQUEÑO */
    line-height: 1.4 !important;
}

footer p {
    margin: 5px 0 !important;             /* ← MARGEN ENTRE LÍNEAS REDUCIDO */
    padding: 0 !important;
}

footer strong {
    color: #FFD100 !important;
    font-size: 1.1em !important;
}

/* EVITA SOBREESCRITURAS */
footer * {
    background: transparent !important;
    color: white !important;
}

footer::before,
footer::after {
    display: none !important;
}
