/* ================================
   VARIABLES
================================ */
:root {
    --primary: #FF1493;
    --secondary: #9C27B0;
    --glass-dark: rgba(0, 0, 0, 0.35);
    --glass-border: rgba(255, 255, 255, 0.25);
    --text-main: #ffffff;
    --text-muted: #e0e0e0;
}

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

/* ================================
   BODY & BACKGROUND
================================ */
body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle, #FF1493, #E91E63, #C71585, #FF006E, #9C27B0, #6A1B9A);
    background-size: 100% 200%;
    animation: gradientAnimation 20s infinite;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    overflow-x: hidden;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

/* ================================
   LOGO
================================ */
.logo-container {
    text-align: center;
    padding: 60px 20px 20px;
    animation: float 6s ease-in-out infinite;
}

.logo-container img {
    max-width: 450px;
    width: 85%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* ================================
   TYPOGRAPHY
================================ */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ================================
   INDEX: HERO TEXT
================================ */
.hero-text h1 {
    font-size: 3.5em;
    text-align: center;
    margin-bottom: 15px;
}

.hero-text .subtitle {
    text-align: center;
    font-size: 1.4em;
    color: #ffeef5;
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 400;
}

/* ================================
   CONTAINERS
================================ */
.content-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* ================================
   HIGHLIGHT BOX
================================ */
.highlight-box {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin: 0 auto 60px;
    max-width: 800px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.highlight-box p {
    font-size: 1.25em;
    font-weight: 600;
}

/* ================================
   SECTION TITLES
================================ */
.section-title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 50px;
    width: 100%;
}

.section-title span {
    /* CAMBIO: Eliminado el borde inferior */
    border-bottom: none; 
    padding-bottom: 0;
}

/* ================================
   BENEFITS GRID
================================ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.benefit-card {
    background: var(--glass-dark);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.6);
}

.benefit-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4em;
}

.benefit-card h3 i {
    color: #ff8ec6;
}

/* ================================
   REQUIREMENTS LIST
================================ */
.requirements-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-left: 5px solid #fff;
    padding: 40px;
    border-radius: 0 20px 20px 0;
    margin-bottom: 80px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.requirements-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.requirements-list li {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.requirements-list strong {
    display: flex;
    align-items: center;
    font-size: 1.1em;
}

.requirements-list strong i {
    margin-right: 10px;
    color: #ff8ec6;
}

.requirements-list span {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: var(--text-muted);
}

/* ================================
   FORM
================================ */
.cta-section h2 {
    font-size: 2.8em;
    margin-bottom: 10px;
}

.form-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin: 0 auto 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
}

.full-width {
    grid-column: 1 / -1;
}

.submit-btn {
    background: linear-gradient(135deg, #FF1493, #C71585);
    color: white;
    padding: 20px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: none;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.6);
}

/* ================================
   SHARED COMPONENTS FOR INTERNAL PAGES
================================ */
.page-title h1 {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 40px;
}

.glass-box {
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.glass-box h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #fff;
}

.glass-box ul {
    margin-left: 20px;
}

/* ================================
   FOOTER
================================ */
footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.9em;
    color: #fff;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.divider {
    margin: 0 10px;
}

/* ================================
   UPLOAD & PREVIEW STYLES (NUEVO)
================================ */
.upload-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.upload-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--primary);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1; /* Mantiene formato cuadrado */
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-delete-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(231, 29, 54, 0.9);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform 0.2s;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.btn-delete-photo:hover {
    transform: scale(1.1);
    background: #ff0000;
}

.form-message {
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
    text-align: center;
    font-weight: bold;
}

.form-message.error {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.5);
    color: #fff;
}

.form-message.success {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.5);
    color: #fff;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {

    body { font-size: 1.1em; }

    .hero-text h1 { font-size: 3em; }
    .hero-text .subtitle { font-size: 1.15em; }
    .highlight-box p { font-size: 1.1em; }

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

    .requirements-list {
        grid-template-columns: 1fr;
    }
}

/* ================================
   ACCORDION (BLOQUE DESPLEGABLE)
================================ */
.accordion-box {
    max-width: 900px; /* Un poco más ancho que el highlight-box */
    margin: -30px auto 60px; /* Margen negativo arriba para acercarlo al título */
    background: var(--glass-dark);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.accordion-header {
    width: 100%;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05); /* Ligeramente más claro */
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25em;
    font-weight: 600;
    text-align: left;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.15);
}

.accordion-header .arrow-icon {
    transition: transform 0.4s ease;
    font-size: 0.9em;
    color: var(--primary);
}

.accordion-header.active .arrow-icon {
    transform: rotate(180deg);
}

/* El contenedor que se expande */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out; /* Animación suave */
    background: rgba(0, 0, 0, 0.2);
}

/* El texto interno con padding */
.accordion-inner-text {
    padding: 30px;
    color: #e0e0e0;
    font-size: 1.1em;
    line-height: 1.7;
}

.accordion-inner-text p {
    margin-bottom: 20px;
}

.accordion-inner-text p:last-child {
    margin-bottom: 0;
}

.accordion-inner-text strong {
    color: #fff;
    font-weight: 700;
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .accordion-header {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .accordion-inner-text {
        font-size: 1em;
        padding: 20px;
    }
}

/* ================================
   BOTÓN DE POSTULACIÓN (NUEVO)
================================ */
.cta-section {
    text-align: center;
    margin: 40px 0;
}

.cta-main-btn {
    background: linear-gradient(135deg, #FF1493, #C71585);
    color: white;
    padding: 20px 50px;
    border-radius: 50px; 
    font-size: 1.5em;
    font-weight: 800;
    text-transform: uppercase;
    /* CAMBIO: Se añadió el borde blanco */
    border: 3px solid #ffffff; 
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6);
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    animation: pulse 2s infinite;
}

.cta-main-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #ff46a9, #e01b97);
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.9);
}

/* Animación de latido */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 20, 147, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 20, 147, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 20, 147, 0);
    }
}