/* Estilos de la página: trabaja-con-nosotros.php */

/* Variables */
:root {
    --primary-color: #0056a8;
    --secondary-color: #26c485;
    --accent-color: #2395FF;
    --dark-color: #1a1f2e;
    --light-bg: #f8fafc;
    --text-dark: #2d3748;
    --text-gray: #718096;
    --border-color: #e2e8f0;
}

/* Fondo artístico con gradiente y formas SVG - Mismo diseño que contacto */
.careers-bg-art {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    animation: subtle-float 18s ease-in-out infinite;
}

.careers-bg-art svg {
    position: absolute;
    width: 100vw;
    height: auto;
    left: 0;
    top: 0;
    opacity: 0.18;
    filter: blur(2px);
    transition: all 1.5s ease;
}

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

.careers-section-unique {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ef 0%, #f9fafb 70%, #eef2f7 100%);
    padding: 80px 0 60px 0;
    overflow: hidden;
}

.careers-section-unique::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(37,99,235,0.05) 0%, transparent 60%),
        radial-gradient(circle at 85% 85%, rgba(56,189,248,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.careers-glass-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    max-width: 1180px;
    width: 100%;
    background: rgba(255,255,255,0.62);
    box-shadow: 
        0 22px 70px 0 rgba(37,99,235,0.11),
        0 4px 25px 0 rgba(30,41,59,0.08),
        0 0 0 1.5px rgba(56,189,248,0.08) inset;
    border-radius: 32px;
    backdrop-filter: blur(20px) saturate(1.4);
    overflow: hidden;
    border: 1.5px solid rgba(37,99,235,0.10);
    margin: 0 18px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Formulario principal */
.careers-glass-form {
    flex: 3 1 600px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 32px 0 0 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.careers-glass-form h3 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.careers-glass-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

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

.careers-glass-form .input-container {
    margin-bottom: 25px;
    position: relative;
}

.careers-glass-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.careers-glass-form input,
.careers-glass-form textarea {
    width: 100%;
    padding: 18px 22px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: inherit;
}

.careers-glass-form textarea {
    min-height: 160px;
    resize: vertical;
}

.careers-glass-form input:focus,
.careers-glass-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 86, 168, 0.15);
    background-color: #fff;
}

.careers-glass-form input::placeholder,
.careers-glass-form textarea::placeholder {
    color: var(--text-gray);
    font-weight: 500;
}

/* File upload styling */
.file-upload {
    position: relative;
    margin-bottom: 25px;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: var(--light-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 86, 168, 0.05);
}

.file-label i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.file-label .file-text {
    color: var(--text-dark);
    font-weight: 600;
}

.file-label .file-info {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 5px;
}

.careers-glass-form .submit-button {
    width: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 18px 28px;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 86, 168, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.careers-glass-form .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 86, 168, 0.3);
}

.careers-glass-form .submit-button .button-text {
    margin-right: 12px;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

.careers-glass-form .submit-button i {
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.careers-glass-form .submit-button:hover i {
    transform: translateX(5px);
}

/* Info lateral */
.careers-glass-info {
    flex: 1 1 380px;
    background: linear-gradient(135deg, var(--primary-color) 80%, var(--accent-color) 100%);
    color: #fff;
    padding: 64px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 320px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    border-radius: 0 32px 32px 0;
}

.careers-glass-info::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(140deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 80%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.careers-glass-info::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: linear-gradient(140deg, rgba(38, 196, 133, 0.4) 0%, rgba(38, 196, 133, 0) 80%);
    border-radius: 50%;
    bottom: -75px;
    left: -75px;
    z-index: 0;
}

.careers-glass-info h2 {
    font-size: 2.7rem;
    margin-bottom: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.12);
    position: relative;
    z-index: 2;
    animation: fadeSlideIn 0.8s ease-out;
}

.careers-glass-info p {
    font-size: 1.16rem;
    margin-bottom: 32px;
    opacity: 0.96;
    font-weight: 400;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    animation: fadeSlideIn 0.8s 0.2s both ease-out;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.benefits-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    animation: fadeSlideIn 0.8s calc(0.4s + var(--delay, 0s)) both ease-out;
    transition: transform 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(5px);
}

.benefits-list li:nth-child(1) { --delay: 0s; }
.benefits-list li:nth-child(2) { --delay: 0.15s; }
.benefits-list li:nth-child(3) { --delay: 0.3s; }
.benefits-list li:nth-child(4) { --delay: 0.45s; }

.benefits-list li i {
    margin-right: 16px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(38, 196, 133, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    font-size: 1.2rem;
    color: #fff;
}

.benefits-list li:hover i {
    transform: scale(1.05);
    background-color: rgba(38, 196, 133, 0.5);
}

.contact-info {
    margin-top: 28px;
    position: relative;
    z-index: 2;
    animation: fadeSlideIn 0.8s 1s both ease-out;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-info h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
}

.contact-info p {
    margin: 8px 0;
    font-size: 1rem;
    opacity: 0.95;
}

.contact-info i {
    margin-right: 10px;
    width: 20px;
    color: var(--secondary-color);
}

/* Estilos para la introducción */
.careers-intro-unique {
    text-align: center;
    padding: 7rem 2rem 5rem;
    background: url('/assets/img/trabaja/hero-trabaja.webp') center/cover no-repeat;
    color: #fff;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.careers-intro-unique::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0, 86, 168, 0.85), rgba(35, 149, 255, 0.75));
    z-index: 1;
}

.careers-intro-unique h1 {
    font-size: 3.5rem;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    animation: fadeInDown 0.8s ease-out;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.careers-intro-unique p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 0.8s 0.2s both ease-out;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Form message */
.form-message {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    animation: fadeIn 0.4s ease-out;
}

.form-message.success {
    background-color: #e6f7ef;
    color: #0d9360;
    border-left: 4px solid #10b981;
}

.form-message.error {
    background-color: #fee2e2;
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1100px) {
    .careers-glass-card {
        flex-direction: column;
        border-radius: 18px;
    }
    
    .careers-glass-form {
        border-radius: 18px 18px 0 0;
        padding: 40px 35px;
    }
    
    .careers-glass-info {
        border-radius: 0 0 18px 18px;
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .careers-section-unique {
        padding: 40px 0 20px 0;
    }
    
    .careers-glass-form {
        padding: 30px 20px;
    }
    
    .careers-glass-form h3 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .careers-glass-form input,
    .careers-glass-form textarea {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .careers-glass-form .submit-button {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .careers-glass-info h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .careers-intro-unique h1 {
        font-size: 2.2rem;
    }
    
    .careers-intro-unique p {
        font-size: 1.1rem;
    }
    
    .careers-intro-unique {
        padding: 40px 15px 30px;
    }
    
    .file-label {
        padding: 30px 20px;
        flex-direction: column;
    }
    
    .file-label i {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .careers-glass-form {
        padding: 25px 20px;
        border-radius: 0 0 15px 15px;
    }
    
    .careers-glass-form h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .careers-glass-form .input-container {
        margin-bottom: 15px;
    }
    
    .careers-glass-form input,
    .careers-glass-form textarea {
        padding: 12px 14px;
        border-radius: 8px;
        font-size: 0.9rem;
    }
    
    .careers-glass-form .submit-button {
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    
    .form-message {
        padding: 12px;
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .careers-intro-unique h1 {
        font-size: 1.8rem;
    }
    
    .careers-intro-unique p {
        font-size: 1rem;
    }
    
    .careers-intro-unique {
        padding: 30px 15px 20px;
    }
}

/* =========================================================
   Secciones inferiores (antes eran estilos escritos en línea)
   ========================================================= */

/* El encabezado fijo no tapa el formulario al saltar a #postulacion */
#postulacion {
    scroll-margin-top: 100px;
}

.careers-why {
    padding: 80px 0;
    background: #ffffff;
}

.careers-why__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.careers-why__header {
    text-align: center;
    margin-bottom: 60px;
}

.careers-why__header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.careers-why__header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.careers-why__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.careers-benefit {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.careers-benefit:hover {
    transform: translateY(-10px);
}

.careers-benefit__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.careers-benefit h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.careers-benefit p {
    color: var(--text-gray);
    line-height: 1.7;
}

.careers-numbers {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    padding: 60px 40px;
    color: white;
    text-align: center;
}

.careers-numbers h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.careers-numbers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.careers-numbers__value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.careers-numbers__label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.careers-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
}

.careers-cta__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.careers-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.careers-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.careers-cta__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.careers-cta__btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.careers-cta__btn--solid {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.careers-cta__btn--solid:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.careers-cta__btn--outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.careers-cta__btn--outline:hover {
    background: white;
    color: var(--primary-color);
}
