/* Estilos específicos para la página de "Únete a Nuestro Equipo" (pertenecer.html) */

/* Sección Hero */
.pertenecer-hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px; /* Altura mínima para la sección hero */
    padding: 100px 20px;
    text-align: center;
    color: var(--pure-white);
    background: url('https://placehold.co/1920x600/2C3E50/FFFFFF?text=Únete+a+Nuestro+Equipo') no-repeat center center/cover; /* Imagen de fondo motivacional */
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.6); /* Overlay oscuro para mejor legibilidad */
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.pertenecer-hero-section .hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
}

.pertenecer-hero-section h1 {
    font-size: 4.2rem;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--pure-white);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.pertenecer-hero-section p {
    font-size: 1.4rem;
    margin-bottom: 50px;
    color: var(--pure-white);
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.pertenecer-hero-section .btn {
    padding: 18px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: var(--pure-white);
    border: 2px solid var(--primary-color);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.pertenecer-hero-section .btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Estilos Generales para Secciones */
.why-join-us-section,
.opportunities-section,
.employee-testimonials-section,
.how-to-apply-section {
    padding: 80px 20px;
    text-align: center;
    border-radius: 15px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.why-join-us-section {
    background-color: var(--light-gray);
}

.opportunities-section {
    background-color: var(--pure-white);
}

.employee-testimonials-section {
    background-color: var(--dark-blue);
    color: var(--pure-white);
}

.how-to-apply-section {
    background-color: var(--light-blue);
}

.section-title {
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.employee-testimonials-section .section-title {
    color: var(--pure-white);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    border-radius: 3px;
}

.employee-testimonials-section .section-title::after {
    background-color: var(--secondary-color);
}

.section-intro {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.employee-testimonials-section .section-intro {
    color: rgba(255, 255, 255, 0.9);
}

/* Sección - Por Qué Unirte a Nosotros (Features) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    background-color: var(--pure-white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.feature-item h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Sección - Oportunidades Laborales */
.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.opportunity-card {
    background-color: var(--light-gray);
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.opportunity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.opportunity-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.opportunity-card h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin: 25px 25px 15px;
}

.opportunity-card p {
    font-size: 1rem;
    color: var(--text-color);
    padding: 0 25px 15px;
    line-height: 1.6;
}

.opportunity-card ul {
    list-style: none;
    padding: 0 25px 20px;
    margin: 0;
    flex-grow: 1; /* Permite que la lista ocupe el espacio restante */
}

.opportunity-card ul li {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.opportunity-card ul li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

.opportunity-card .btn-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--pure-white);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    margin: 0 25px 25px;
    transition: background-color 0.3s ease;
}

.opportunity-card .btn-secondary:hover {
    background-color: var(--secondary-dark);
}

/* Sección de Testimonios de Empleados */
.testimonials-slider {
    display: flex;
    overflow-x: auto; /* Permite el scroll horizontal si hay muchos testimonios */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px; /* Espacio para la barra de scroll */
    gap: 30px; /* Espacio entre los testimonios */
    justify-content: flex-start; /* Alinea al inicio para el scroll */
}

.testimonial-slide {
    flex: 0 0 350px; /* Ancho fijo para cada slide */
    scroll-snap-align: start;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.testimonial-slide:hover {
    transform: translateY(-5px);
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.3);
}

.testimonial-slide p {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--pure-white);
}

.testimonial-slide .testimonial-author {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-top: auto;
}

/* Sección - Cómo Aplicar y Contacto HR */
.apply-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.apply-step-item {
    background-color: var(--pure-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.apply-step-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.apply-step-item h3 {
    font-size: 1.6rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.apply-step-item p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

.contact-hr-info {
    background-color: var(--pure-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.contact-hr-info h3 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 25px;
    text-align: center;
}

.contact-hr-info p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-hr-info p i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 25px; /* Para alinear los iconos */
    text-align: center;
}

.contact-hr-info p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.contact-hr-info p a:hover {
    text-decoration: underline;
}

.contact-hr-info .btn-primary {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    padding: 15px 30px;
    border-radius: 10px;
    background-color: var(--primary-color);
    color: var(--pure-white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-hr-info .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Media Queries para Responsividad */
@media (max-width: 1024px) {
    .pertenecer-hero-section h1 {
        font-size: 3.5rem;
    }
    .pertenecer-hero-section p {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .feature-item h3, .opportunity-card h3 {
        font-size: 1.6rem;
    }
    .testimonial-slide {
        flex: 0 0 300px;
    }
}

@media (max-width: 768px) {
    .pertenecer-hero-section {
        min-height: 450px;
        padding: 80px 15px;
    }
    .pertenecer-hero-section h1 {
        font-size: 2.8rem;
    }
    .pertenecer-hero-section p {
        font-size: 1rem;
    }
    .pertenecer-hero-section .btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .why-join-us-section,
    .opportunities-section,
    .employee-testimonials-section,
    .how-to-apply-section {
        padding: 60px 15px;
        margin: 30px auto;
    }
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    .section-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .features-grid, .opportunity-grid, .apply-steps-grid {
        grid-template-columns: 1fr; /* Una sola columna en móviles */
        gap: 30px;
    }
    .feature-item, .opportunity-card, .apply-step-item {
        padding: 25px;
    }
    .feature-icon, .step-icon {
        font-size: 3rem;
    }
    .feature-item h3, .opportunity-card h3 {
        font-size: 1.5rem;
    }
    .testimonial-slide {
        flex: 0 0 85%; /* Ocupa más ancho en móviles para mejor visualización */
    }
    .contact-hr-info {
        padding: 30px;
    }
    .contact-hr-info h3 {
        font-size: 1.8rem;
    }
    .contact-hr-info p {
        font-size: 1rem;
    }
    .contact-hr-info p i {
        font-size: 1.1rem;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .pertenecer-hero-section h1 {
        font-size: 2rem;
    }
    .pertenecer-hero-section .btn {
        width: 100%;
        max-width: 250px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .feature-item h3, .opportunity-card h3 {
        font-size: 1.3rem;
    }
    .testimonial-avatar {
        width: 70px;
        height: 70px;
    }
    .testimonial-slide p {
        font-size: 1rem;
    }
    .contact-hr-info .btn-primary {
        font-size: 1rem;
        padding: 12px 20px;
    }
}

/* Variables de color (asegúrate de que estén definidas en Home.css o añádelas aquí si no lo están) */
:root {
    --primary-color: #007bff; /* Azul vibrante */
    --primary-dark: #0056b3; /* Azul más oscuro */
    --secondary-color: #28a745; /* Verde para acentos */
    --secondary-dark: #1e7e34; /* Verde más oscuro */
    --dark-blue: #2c3e50; /* Azul muy oscuro para texto/fondos */
    --light-blue: #e8f4f8; /* Azul muy claro */
    --dark-gray: #34495e; /* Gris oscuro */
    --light-gray: #f8f9fa; /* Gris muy claro */
    --pure-white: #ffffff; /* Blanco puro */
    --text-color: #555; /* Color de texto general */
    --primary-color-rgb: 0, 123, 255; /* RGB del color primario para sombras */
}
