/* sobre-mi.css - Estilos específicos para la sección Sobre Mí - VERSIÓN CORREGIDA */

/* =========================================== */
/* RESET Y ESTILOS GLOBALES */
/* =========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Fondo general de la página */
body {
    background: #f0f4f8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* Variables de colores */
:root {
    --color-primary: #1e90ff;
    --color-secondary: #4169e1;
    --color-accent: #667eea;
    --color-purple: #764ba2;
    --color-dark: #2c3e50;
    --color-light: #f8f9fa;
    --color-text: #333;
    --color-text-light: #666;
    --color-border: #e1e8ed;
    --gradient-blue: linear-gradient(135deg, #1e90ff 0%, #4169e1 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    --page-bg: #f0f4f8;
}

/* =========================================== */
/* CONTENEDOR PRINCIPAL - FONDO FIJO */
/* =========================================== */
.sobre-mi-container {
    padding: 30px;
    color: var(--color-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--page-bg); /* FONDO CLARO FIJO */
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* =========================================== */
/* ENCABEZADOS DE SECCIÓN */
/* =========================================== */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--color-primary);
    position: relative;
    z-index: 2;
}

.section-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.3);
}

.section-header h1 {
    font-size: 42px;
    color: var(--color-primary); /* COLOR SÓLIDO - SIN GRADIENTE */
    margin: 0;
    font-weight: 700;
    text-shadow: none;
    background: none !important; /* ASEGURAR QUE NO HAY FONDO */
}

/* =========================================== */
/* SECCIÓN 1: MI IDENTIDAD */
/* =========================================== */
.identidad-section {
    margin-bottom: 80px;
    padding: 40px;
    background: white; /* FONDO BLANCO */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 144, 255, 0.1);
    position: relative;
    z-index: 2;
}

.identidad-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.identidad-text .intro-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--color-text);
    text-align: justify;
}

.intro-text strong {
    color: var(--color-primary);
    font-size: 20px;
}

/* Tarjeta de información */
.info-card {
    background: var(--gradient-purple);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.2);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item h4 {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 5px 0;
    font-weight: 600;
}

.info-item p {
    font-size: 18px;
    color: white;
    margin: 0;
    font-weight: 500;
}

/* Imagen de perfil */
.identidad-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-frame {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
    border: 8px solid white;
    position: relative;
    background: white; /* Fondo para la imagen */
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: var(--gradient-blue);
    border-radius: 25px;
    z-index: -1;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    background: white; /* Fondo para la foto */
}

.image-frame:hover .profile-photo {
    transform: scale(1.05);
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: var(--color-text-light);
    font-size: 16px;
    padding: 15px 25px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.image-caption p {
    margin: 0;
}

/* =========================================== */
/* SECCIÓN 2: RAÍCES Y PERSONALIDAD */
/* =========================================== */
.raices-section {
    margin-bottom: 80px;
    padding: 40px;
    background: white; /* FONDO BLANCO */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 144, 255, 0.1);
    position: relative;
    z-index: 2;
}

.raices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.raices-card {
    background: white; /* FONDO BLANCO */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.raices-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

/* Imagen de la tarjeta */
.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: white; /* Fondo para imágenes */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.raices-card:hover .card-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.card-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contenido de la tarjeta */
.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white; /* Fondo blanco */
}

.card-content h2 {
    font-size: 24px;
    color: var(--color-dark);
    margin: 0 0 20px 0;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-border);
    background: none; /* Sin fondo */
}

/* Lista personalizada */
.custom-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.custom-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--color-text);
    font-size: 15px;
    text-align: justify;
}

.custom-list li:last-child {
    margin-bottom: 0;
}

.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 16px;
    top: 2px;
}

/* =========================================== */
/* SECCIÓN 3: CAMINO ACADÉMICO */
/* =========================================== */
.camino-section {
    margin-bottom: 60px;
    padding: 40px;
    background: white; /* FONDO BLANCO */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 144, 255, 0.1);
    position: relative;
    z-index: 2;
}

.camino-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.camino-card {
    background: white; /* FONDO BLANCO */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.camino-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 144, 255, 0.15);
}

.camino-card .card-image {
    height: 180px;
}

.camino-card .card-icon {
    background: var(--gradient-purple);
}

.camino-card .card-content {
    padding: 25px;
}

.camino-card h3 {
    font-size: 20px;
    color: var(--color-dark);
    margin: 0 0 15px 0;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-border);
    background: none; /* Sin fondo */
}

.camino-card .custom-list li::before {
    content: '•';
    color: var(--color-purple);
    font-size: 20px;
    top: 0;
}

/* Badge de Beca 18 */
.beca-badge {
    background: var(--gradient-blue);
    border-radius: 20px;
    padding: 30px 40px;
    max-width: 500px;
    margin: 0 auto;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.3);
    border: 3px solid white;
    position: relative;
    overflow: hidden;
}

.beca-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: badgeGlow 3s infinite alternate;
}

@keyframes badgeGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.badge-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.badge-content i {
    font-size: 50px;
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.badge-text h4 {
    font-size: 32px;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.badge-text p {
    font-size: 20px;
    margin: 0 0 5px 0;
    opacity: 0.9;
}

.badge-text span {
    font-size: 16px;
    opacity: 0.8;
    font-style: italic;
}

/* =========================================== */
/* BOTÓN VOLVER */
/* =========================================== */
.sobre-mi-actions {
    text-align: center;
    padding: 40px 0 20px;
    margin-top: 40px;
    background: transparent; /* Fondo transparente */
}

.btn-volver {
    background: var(--gradient-blue);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.3);
}

.btn-volver:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 144, 255, 0.4);
    background: var(--gradient-purple);
}

.btn-volver:active {
    transform: translateY(-1px);
}

.btn-volver i {
    transition: transform 0.3s ease;
}

.btn-volver:hover i {
    transform: translateX(-5px);
}

/* =========================================== */
/* RESPONSIVE DESIGN */
/* =========================================== */
@media (max-width: 1200px) {
    .sobre-mi-container {
        padding: 25px;
    }

    .identidad-section,
    .raices-section,
    .camino-section {
        padding: 30px;
    }

    .section-header h1 {
        font-size: 36px;
    }

    .raices-grid,
    .camino-content {
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .identidad-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .raices-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .camino-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-frame {
        max-width: 350px;
        margin: 0 auto 25px;
    }
}

@media (max-width: 768px) {
    .sobre-mi-container {
        padding: 15px;
    }

    .identidad-section,
    .raices-section,
    .camino-section {
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .section-header h1 {
        font-size: 28px;
    }

    .identidad-text .intro-text {
        font-size: 16px;
    }

    .raices-grid {
        grid-template-columns: 1fr;
    }

    .camino-content {
        grid-template-columns: 1fr;
    }

    .info-item {
        gap: 15px;
    }

    .info-item i {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .info-item h4 {
        font-size: 14px;
    }

    .info-item p {
        font-size: 16px;
    }

    .card-content h2 {
        font-size: 20px;
    }

    .camino-card h3 {
        font-size: 18px;
    }

    .custom-list li {
        font-size: 14px;
        padding-left: 25px;
    }

    .badge-content {
        flex-direction: column;
        gap: 15px;
    }

    .badge-content i {
        width: 60px;
        height: 60px;
        font-size: 35px;
    }

    .badge-text h4 {
        font-size: 24px;
    }

    .badge-text p {
        font-size: 16px;
    }

    .btn-volver {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .sobre-mi-container {
        padding: 10px;
    }

    .identidad-section,
    .raices-section,
    .camino-section {
        padding: 15px;
    }

    .section-header h1 {
        font-size: 24px;
    }

    .image-frame {
        max-width: 280px;
    }

    .raices-card,
    .camino-card {
        padding: 15px;
    }

    .card-image {
        height: 150px;
    }

    .beca-badge {
        padding: 20px;
    }

    .btn-volver {
        width: 100%;
        justify-content: center;
    }
}
