html {
    scroll-behavior: smooth;
}

/* General */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #ffffff, #d1f3fb);
    color: #333;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 3rem;
    background: linear-gradient(to right, hsl(210, 100%, 73%), #2532af);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: top 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background-color: #4a148c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo img {
    width: 70px;
    transition: width 0.3s ease-in-out;
}

.navbar .logo span {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    transition: font-size 0.3s ease-in-out;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    position: relative;
    padding: 8px 12px;
    transition: color 0.3s ease, border 0.3s ease;
    border: 2px solid transparent;
    border-radius: 20px;
}

.nav-links li a:hover {
    color: #b2ebf2;
    border-color: #b2ebf2;
}

/* PORTADA */
.hero {
    position: relative;
    width: auto;
    height: 40vh;
    background: url('./img/informacion6.jpg') no-repeat center 33%/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 1rem 2rem;
    overflow: hidden;
    border-bottom-left-radius: 50% 15%;
    border-bottom-right-radius: 50% 15%;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.hero:hover {
    box-shadow: 0 -15px 80px rgba(0, 0, 0, 5);
}

.hero-content {
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    -webkit-text-stroke: 2px black; 
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: bold;
    -webkit-text-stroke: 1px #000000; 
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.cta-button {
    font-size: 1.2rem;
    background-color: #6a1b9a;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #4a148c;
}

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

/* SERVICIOS */
.services {
    background: linear-gradient(to right, #ffffff, #d1f3fb);
    padding: 0rem 2rem;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 1rem;
}

.services p {
    font-size: 1.2rem;
    text-align: justify;
    color: #555;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.service-cards {
    display: grid;
    /*grid-template-columns: repeat(3, 1fr);*/
    justify-content: center;
    gap: 3rem;
    margin: 1rem auto; /* centra horizontalmente */
    max-width: 800px;   /* o el ancho que tú quieras */
    width: 100%;        /* para que sea responsivo */
}

.service-card {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
}

.service-card img {
    width: 40%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.service-card h3 {
    font-size: 1.8rem;
    margin-top: 1rem;
    color: #000;
}

.service-card p {
    font-size: 1rem;
    color: #555;
    margin-top: 1rem;
}

.toggle-details-btn {
    background: linear-gradient(to right, #0015f6, #4a148c);
    text-decoration: none;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    transition: opacity 0.3s ease;
    opacity: 1;
    margin-bottom: 10px;
}

/* .service-card:hover .toggle-details-btn {
    opacity: 1;
} */

#service-cards::-webkit-scrollbar {
    display: none;
}

/* FOOTER */
footer {
    background: linear-gradient(to right, hsl(210, 100%, 73%), #2532af);
    color: white;
    text-align: center;
    padding: 2rem 0;
    font-family: 'Arial', sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-text p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.footer-text a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #f0e5ff;
}

.footer-social {
    margin-top: 1.5rem;
}

.footer-social p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.social-icon {
    margin: 0 2rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: #f0e5ff;
    transform: scale(1.1);
}

.social-icon.instagram {
    background-color: #E4405F;
}

.social-icon.facebook {
    background-color: #3b5998;
}

.social-icon.tiktok {
    background-color: #26ae00;
}

.footer-credits {
    margin-top: 2rem;
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid white;
}

.credit-link {
    color: #f0e5ff;
    text-decoration: none;
}

.credit-link:hover {
    color: white;
}

.postula-btn-container {
    text-align: center;
    margin: 50px 0;
}

.postula-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #4a148c;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.postula-btn:hover {
    background-color: #6a1b9a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.postula-btn:active {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* RESPONSIVE: Móviles y tablets */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
    }

    .hero {
        height: auto;
        padding: 2rem 1rem;
        border-bottom-left-radius: 30% 10%;
        border-bottom-right-radius: 30% 10%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }

    .service-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card img {
        width: 80%;
        margin: 0 auto;
        display: block;
    }

    .postula-btn {
        font-size: 1.2rem;
        padding: 12px 30px;
    }

    .footer-text p,
    .footer-text a,
    .footer-credits {
        font-size: 0.9rem;
    }

    .social-icon {
        display: inline-block;
        margin: 0.5rem;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
