﻿/* Importar fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Poppins:wght=400;600&display=swap');



:root {
    --primary-color: #007bff; /* Azul vibrante */
    --secondary-color: #6c757d; /* Gris */
    --accent-color: #28a745; /* Verde para CTAs */
    --background-light: #f8f9fa;
    --text-dark: #343a40;
    --text-light: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden; /* Previene scroll horizontal no deseado */
}

/* Contenedor principal de contenido */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative; /* Para posicionar imágenes 'breaking' dentro */
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    font-size: 2.8em;
    margin-top: 50px; /* Espacio para la imagen que rompe la pared */
}

h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

ul {
    list-style: none; /* Eliminar viñetas predeterminadas */
    padding-left: 0;
    margin-bottom: 20px;
}

    ul li {
        background-color: #e9ecef;
        padding: 10px 15px;
        margin-bottom: 8px;
        border-radius: var(--border-radius);
        display: flex;
        align-items: center;
    }

        ul li::before {
            content: '✅'; /* Un ícono personalizado para las listas */
            margin-right: 10px;
        }




/* --- Secciones Generales --- */
.section {
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
}

    .section:last-of-type {
        border-bottom: none;
    }

/* --- Hero Section --- */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: url('fondo-hero.jpg') center/cover no-repeat;
    overflow: hidden;
    text-align: center;
}

/* Superposición de color y forma */
.hero-bg-overlay {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient( 130deg, rgba(0, 123, 255, 0.8), rgba(33, 56, 139, 0.7) );
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
}

    .hero-content h1 {
        font-family: 'Montserrat', sans-serif;
        font-size: 3em;
        line-height: 1.2;
        margin-bottom: 20px;
        text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    }

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25em;
    margin-bottom: 40px;
}

/* Botón CTA */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #28a745;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .cta-button:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    }

/* Imagen 'rompiendo la pared' */
.breaking-image {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.hand-pointing {
    position: absolute;
    z-index: 2;
    width: 350px;
    left: -60px;
    bottom: -150px;
    transform: rotate(-25deg);
    animation: bounceAndPoint 2s infinite alternate ease-in-out;
}

.person-peeking {
    width: 280px;
    height: auto;
    right: -50px; /* Sale por la derecha */
    bottom: -80px; /* Sale por abajo */
    transform: rotate(5deg);
    z-index: 3; /* Para que parezca que está más cerca del observador */
}

.eye-peeking {
    width: 180px;
    height: auto;
    left: -40px; /* Sale por la izquierda */
    top: 50%;
    transform: translateY(-50%) rotate(-10deg);
    z-index: 0; /* Puede estar un poco más atrás para un efecto diferente */
}

.hero-section .hero-content h1 {
    color: #ffffff !important;
}

/* Animación sin cambios */
@keyframes bounceAndPoint {
    from {
        transform: translateY(0) rotate(-18deg);
    }

    to {
        transform: translateY(-12px) rotate(-18deg);
    }
}
/* Tablet y pantallas medianas */
@media (max-width: 768px) {
    .hand-pointing {
        top: auto !important; /* anula el top de desktop */
        bottom: -45px !important; /* sigue anclada abajo */
        left: -50px !important; /* sale un poco por la izquierda */
        width: 180px; /* mano más pequeña */
        transform: rotate(-20deg);
    }
}


/* --- Formulario de Postulación --- */

.apply-section {
    background-color: #eaf6ff;
    border-radius: var(--border-radius);
    padding: 50px 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
    }

/* Campos de texto y select */
.input-field,
.select-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 1em;
    background: #fff;
    color: var(--text-dark, #333);
}

/* File input escondido + botón estilizado */
.input-file {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-button {
    display: inline-block;
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-light);
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .file-button:hover {
        background-color: #0056b3;
    }

.form-group .file-name {
    margin-left: 10px;
    font-style: italic;
    color: var(--secondary-color);
}

/* Botón enviar */
.submit-button {
    width: 100%;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

    .submit-button:hover {
        background-color: #218838;
        transform: translateY(-2px);
    }

    .submit-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Mensajes de estado */
#uploadMessage {
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.small-print {
    font-size: 0.9em;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 20px;
}

/* –– Requerimientos: ojo arriba a la derecha –– */
.requirements-section .content-wrapper {
    position: relative;
}

    .requirements-section .content-wrapper .eye-peeking {
        top: -40px;
        right: 0;
        bottom: auto;
        left: auto;
        width: 200px;
        transform: rotate(-15deg);
        display: block;
    }


/* Tablet y pantallas medianas */
@media (max-width: 768px) {
    .requirements-section .content-wrapper .eye-peeking {
        top: 8px !important;
        right: -13px !important;
        bottom: auto !important;
        left: auto !important;
        width: 120px !important;
        transform: rotate(-8deg);
        display: block !important;
    }
}

/* --- Footer --- */

footer {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--text-dark);
    color: var(--text-light);
    font-size: 0.9em;
    justify-items: center;
}

/* --- Responsividad --- */

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.5em;
    }

    .hero-section {
        padding: 80px 20px;
        min-height: 400px;
    }

    .hand-pointing {
        width: 250px;
        left: 5%;
        bottom: -10px;
        transform: rotate(-20deg);
        animation: bounceAndPoint 2s infinite alternate ease-in-out;
        z-index: 1;
    }

    .eye-peeking {
        width: 120px;
        left: -20px;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 30px 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.3em;
    }

    .hero-section {
        padding: 60px 15px;
        min-height: 350px;
    }

    .hand-pointing {
        width: 150px;
        left: -10%;
        bottom: -5px;
        transform: rotate(-15deg);
    }

    .eye-peeking {
        display: none;
    }

    .submit-button {
        font-size: 1em;
        padding: 12px 20px;
    }
}


/* Tablet y pantallas medianas */
@media (max-width: 768px) {
    .person-peeking {
        width: 200px; /* tamaño adaptado */
        right: -20px; /* la acercamos un poco al contenido */
        bottom: -130px; /* sigue anclada abajo */
        transform: rotate(40deg); /* inclinada hacia el texto */
        transition: transform 0.3s ease;
    }
}

/* Tablet y pantallas medianas */
@media (max-width: 768px) {
    .project-section .content-wrapper {
        padding: 20px 15px;
    }

    .project-section h3 {
        font-size: 1.4em;
        margin-bottom: 12px;
    }

    .project-description {
        font-size: 1em;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .project-section ul {
        padding-left: 20px;
    }

        .project-section ul li {
            font-size: 0.95em;
            margin-bottom: 10px;
        }
}


.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border: 2px solid;
}

.modal-success {
    border-color: #28a745;
}

.modal-error {
    border-color: #dc3545;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-body {
    font-size: 1rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}
