:root {
    --primary: #0071bc;
    --secondary: #00a99d;
    --light: #f7f7f7;
    --dark: #333333;
    --accent: #ff6b6b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto',sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://lh3.googleusercontent.com/p/AF1QipNgP9oYQT_YOzZvTZWnJJylWy_e0IaHKsUdBgMj=s680-w680-h510-rw') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: grey;
    color: white;
}

.btn-primary:hover {
    background-color: black;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: black;
    border: 2px solid grey ;
}

.btn-secondary:hover {
    background-color: grey;
    color: white;
    transform: translateY(-2px);
}

section {
    padding: 5rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: rgb(102, 97, 97);
    margin-bottom: 1rem;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

.benefits {
    background-color: white;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.benefit-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.benefit-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.programs {
    background-color: var(--light);
}

.programs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Configuración básica para el contenedor de imágenes */
.program-img {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    overflow: hidden;
}

/* Estilos específicos para cada tarjeta de programa */
/* Programa de becarios - Primera tarjeta */
.programs-container .program-card:nth-child(1) .program-img {
    background-image: url('https://www.mesoestetic.es/media/static_pages/trabaja-con-nosotros2.jpg');
    background-size: cover;
    background-position: center;
}

/* Graduate Program - Segunda tarjeta */
.programs-container .program-card:nth-child(2) .program-img {
    background-image: url('https://www.mesoestetic.es/pub/media/static_pages/Formacio_n_mesoestetic-opt.jpg');
    background-size: cover;
    background-position: center;
}

/* Mentoring - Tercera tarjeta */
.programs-container .program-card:nth-child(3) .program-img {
    background-image: url('https://media.licdn.com/dms/image/v2/D4D22AQE5-Mf_yBMQLg/feedshare-shrink_800/feedshare-shrink_800/0/1732785721103?e=2147483647&v=beta&t=cqbkl_PK7CuaePAfz-qWICRPQPhSTOI1IZWWAB77qpw');
    background-size: cover;
    background-position: center;
}

/* Opción alternativa usando imágenes directas en HTML */
.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.program-img:hover img {
    transform: scale(1.05);
}

.program-content {
    padding: 2rem;
    text-align: center;
}

.program-content h3 {
    margin-bottom: 1rem;
    color: grey;
}

.program-content p {
    margin-bottom: 1.5rem;
}

.testimonials {
    background-color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-info {
    display: flex;
    align-items: center;
}

.testimonial-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    background-color: #ddd;

}

/* Imágenes para los testimonios */
.testimonial-grid .testimonial-card:nth-child(1) .testimonial-img {
    background-image: url('https://media.licdn.com/dms/image/v2/D4D03AQF-NSuuNkZ8yw/profile-displayphoto-shrink_200_200/profile-displayphoto-shrink_200_200/0/1712403439975?e=2147483647&v=beta&t=6QiGE1HJjejsa9mxxZqxl12bn1A7zc69FT9WKDGhiwg');
    background-size: cover;
    background-position: center;
}

.testimonial-grid .testimonial-card:nth-child(2) .testimonial-img {
    background-image: url('https://media.licdn.com/dms/image/v2/C4E03AQESeZHD6LHIVw/profile-displayphoto-shrink_200_200/profile-displayphoto-shrink_200_200/0/1630418325540?e=2147483647&v=beta&t=n_RtXI98szUhYi-SNymSThhoqLBJ65EN5onI2X-E9rc');
    background-size: cover;
    background-position: center;
}

.testimonial-grid .testimonial-card:nth-child(3) .testimonial-img {
    background-image: url('https://media.licdn.com/dms/image/v2/D4D03AQGecj1uzkSKLQ/profile-displayphoto-shrink_200_200/profile-displayphoto-shrink_200_200/0/1707926214319?e=2147483647&v=beta&t=f9eCU2yGT_yUdTKI2rwuZdr1KSagbRC3U0e6bBB4MIc');
    background-size: cover;
    background-position: center;
}

.careers {
    background-color: var(--light);
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.career-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.career-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.career-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.career-card p {
    margin-bottom: 1rem;
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}
.social-links a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.feedback-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 0;
    z-index: 1000;
    max-width: 300px;
    transform: translateX(400px);
    transition: transform 0.5s ease;
}

.feedback-popup.show {
    transform: translateX(0);
}

.popup-content {
    padding: 20px;
    text-align: center;
}

.popup-content h3 {
    color: grey;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.popup-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close-popup:hover {
    color: var(--dark);
}
.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.faq-question {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.faq-answer {
    display: none;
    padding: 10px 0;
}

.btn-subir {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}
.contact {
    background: #e0e0e0; /* Gris claro para que combine con el resto */
    padding: 50px 20px;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

#contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form input, 
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #bbb; /* Un gris suave en vez de un borde negro fuerte */
    background: #f7f7f7; /* Fondo gris claro para los inputs */
    border-radius: 5px;
    font-size: 1rem;
    color: var(--dark);
}

#contact-form textarea {
    height: 150px;
    resize: none;
}

#contact-form button {
    background: grey;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

#contact-form button:hover {
    background: black;
    transform: translateY(-2px);
}
#chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#chatbot-header {
    background: var(--primary);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

#chatbot-close {
    cursor: pointer;
}

#chatbot-messages {
    height: 250px;
    padding: 10px;
    overflow-y: auto;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
}

.mensaje {
    padding: 8px;
    margin: 5px;
    border-radius: 5px;
    max-width: 80%;
    font-size: 14px;
}

.mensaje.usuario {
    background: #d1e7ff;
    align-self: flex-end;
    text-align: right;
    color: black;
}

.mensaje.bot {
    background: #f1f1f1;
    align-self: flex-start;
    text-align: left;
    color: black;
}

#chatbot-input-container {
    display: flex;
    border-top: 1px solid #ddd;
}

#chatbot-input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    outline: none;
}

#chatbot-send {
    width: 60px;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
}

#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
}
.desplegable-faq {
    margin: 10px 0;
}

.desplegable-faq select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}