@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333333;
    background-color: #f0f0f0;
}


img {
    max-width: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.header {
    background-color: #f5f7fa;
    padding: 150px 0 100px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;

}

.menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(30px);
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    border-bottom: 2px solid #3a6ea5;
}

.menu .container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.menu .navbar ul {
    display: flex;
}

.menu .navbar ul li {
    position: relative;
    margin: 0 15px;
}

.menu .navbar ul li a {
    font-size: 18px;
    padding: 10px 15px;
    color: #323232;
    display: block;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 5px;
}

.menu .navbar ul li a:hover {
    color: #FFFFFF;
    background-color: #3a6ea5;
}

.logo{
    font-size: 25px;
    font-weight: 800;
    color: #3a6ea5;
    text-transform: uppercase;
}

#menu {
    display: none;
}

.menu-icono {
    width: 25px;
}

.menu label {
    cursor: pointer;
    display: none;
}

.header-content {
    display: flex;
}

.header-text {
    width: 50%;
}

.header-text h1 {
    line-height: 1;
    color: #323232;
    text-transform: uppercase;
    font-size: 75px;
    margin-bottom: 10px;
}

.header-text p {
    font-size: 16px;
    color: #818181;
    margin-bottom: 45px;
}

.header-img {
    width: 60%;
    margin-top: 100px;
}

.header-img img {
    width: 100%;
}

.btn-1 {
    display: inline-block;
    padding: 11px 25px;
    background-color: #3a6ea5;
    color: #FFFFFF;
    border-radius: 15px;
    transition: background-color 0.3s;
}

.btn-1:hover {
    background-color: #2c5282;
}

.about {
    padding: 100px 0;
    display: flex;
}

.about-img {
    width: 50%;
}

.about-img img {
    width: 500px;
    border-radius: 15px;
}

.about-txt {
    width: 50%;
    margin-left: 25px;
}

.about-txt h2 {
    color: #323232;
    font-size: 50px;
    margin-bottom: 15px;
}

.about-txt p {
    font-size: 16px;
    color: #818181;
}

.servicios {
    padding: 50px 0 100px 0;
    text-align: center;
    background-color: #f5f7fa;
}

.servicios h2 {
    color: #323232;
    font-size: 50px;
    margin-bottom: 15px;
}

.servicios-content {
    margin-top: 55px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.servicio-1 {
    padding: 25px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    flex-basis: calc(25% - 20px);
    background-color: #ffffff;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.servicio-1:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.servicio-1 i {
    font-size: 30px;
    color: #3a6ea5;
    margin-bottom: 15px;
}

.servicio-1 h3 {
    font-size: 20px;
    color: #323232;
    text-transform: capitalize;
}

/* Añadir margen inferior a la segunda fila de servicios */
.servicios-content > .servicio-1:nth-child(n+5) {
    margin-top: 25px; /* Ajusta este valor según el espacio que desees */
}

.formulario {
    margin-top: 100px;
    margin-bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

form {
    padding: 50px;
    width: 500px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

form h2 {
    font-size: 25px;
    color: #323232;
    text-transform: uppercase;
    margin-bottom: 35px;
}

.input-container {
    position: relative;
}

.input-container > i {
    padding: 14px;
    border-radius: 50%;
    background-color: #3a6ea5;
    color: #FFFFFF;
    position: absolute;
    font-size: 20px;
    top: 4px;
    left: 10px;
}

.input-container > input, textarea {
    padding: 17px 15px 17px 65px;
    width: 100%;
    margin-bottom: 25px;
    border-radius: 35px;
    background-color: transparent;
    border: 2px solid #3a6ea5;
    font-size: 16px;
    outline: none;
    color: #323232;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-container > input:focus, textarea:focus {
    border-color: #2c5282;
    box-shadow: 0 0 0 2px rgba(58, 110, 165, 0.2);
}

textarea {
    font-family: 'Poppins', sans-serif;
    height: 150px;
}

::placeholder {
    color: #a0a0a0;
    font-size: 16px;
}

.btn {
    background-color: #3a6ea5;
    padding: 17px 30px;
    width: 100%;
    border: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    color: #FFFFFF;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2c5282;
}

.footer {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(56, 189, 248, 0.9));
    color: #ffffff;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.footer::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.footer-content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    align-items: flex-start;
}

.footer-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
}

.footer-social .social-links {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.25);
}

.footer-bottom {
    position: relative;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

.footer-bottom a {
    color: #ffffff;
    font-weight: 600;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.footer-credit a {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease, color 0.3s ease;
}

.footer-credit a:hover {
    background: #ffffff;
    color: #0f766e;
}

@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 50px 0 25px;
    }

    .footer-content {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width:991px) {

    .menu {
        padding: 20px;
    }

    .menu label {
        display: initial;
    }

    .menu .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #FFFFFF;
        display: none;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .menu .navbar ul {
        flex-direction: column;
        width: 100%;
    }

    .menu .navbar ul li {
        width: 100%;
        margin: 0;
        text-align: center;
    }
    
    .menu .navbar ul li a {
        padding: 15px;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .menu .navbar ul li:last-child a {
        border-bottom: none;
    }

    #menu:checked ~ .navbar {
        display: initial;
    }

    .header {
        min-height: 0vh;
        padding: 80px 30px 50px 30px;
    }
    
    .header-content {
        flex-direction: column;
    }

    .header-txt {
        text-align: center;
        width: 100%;
        margin-bottom: 0;
    }

    .header-img {
        width: 100%;
        margin-top: 20px;
    }

    .header-img img {
        width: 100%;
    }

    .about{
        padding: 30px;
        flex-direction: column;
    }

    .about-img {
        width: 100%;
        order: 2;
    }

    .about-img img {
        width: 100%;
    }

    .about-txt {
        width: 100%;
        margin-left: 0;
        text-align: center;
        margin-bottom: 25px;
    }

    .servicios {
        padding: 30px;
    }

    .servicios-content {
        margin-top: 25px;
        flex-direction: column;
    }

    .servicio-1 {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .formulario {
        padding: 30px;
        margin-top: 0;
        margin-bottom: 0;
        width: 100%;
    }

    form {
        width: 100%;
        padding: 30px 20px;
        box-sizing: border-box;
    }
    
    .input-container > input, textarea {
        padding: 15px 15px 15px 60px;
        font-size: 16px;
    }
    
    .input-container > i {
        padding: 12px;
        font-size: 18px;
        top: 5px;
        left: 8px;
    }
    
    ::placeholder {
        font-size: 14px;
    }
    
    .btn {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    textarea {
        height: 120px;
    }

    .footer {
        padding: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .link ul {
        flex-direction: column;
    }

    .link ul li {
        margin: 0 0 15px 0;
    }

    .header-txt h1 {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .header-txt p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .header-txt br {
        display: none;
    }
    
    .about-txt h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .about-txt p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .frase-motivacional {
        padding: 12px 15px;
        margin-bottom: 25px;
    }
    
    .frase-motivacional p {
        font-size: 16px;
    }

    /* Eliminar el margen superior adicional para la segunda fila en móviles */
    .servicios-content > .servicio-1:nth-child(n+5) {
        margin-top: 0;
    }

}

/* Añadir breakpoint para dispositivos más pequeños */
@media (max-width:576px) {
    .header {
        padding: 100px 15px 40px 15px;
    }
    
    .header-txt h1 {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .header-txt p {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 12px;
        padding: 0 5px;
    }
    
    .about {
        padding: 20px 15px;
    }
    
    .about-txt h2, .servicios h2 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .about-txt p {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 12px;
        padding: 0 5px;
    }
    
    .frase-motivacional {
        padding: 10px 12px;
        margin-bottom: 20px;
    }
    
    .frase-motivacional p {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .carousel {
        height: 200px;
    }
}

/* Ajustes para la navegación en dispositivos muy pequeños */
@media (max-width:360px) {
    .logo {
        font-size: 20px;
    }
    
    .header-txt h1 {
        font-size: 28px;
    }
    
    .header-txt p {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .about-txt h2, .servicios h2 {
        font-size: 28px;
    }
    
    .about-txt p {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}

.frase-motivacional {
    background-color: rgba(255, 255, 255, 0.8);
    color: rgb(0, 0, 0);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-style: italic;
    position: relative;
    overflow: hidden;
}

.frase-motivacional:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.frase-motivacional p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.frase-motivacional i {
    font-size: 14px;
    opacity: 0.8;
}

/* Estilos para el carrusel */
.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: none;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #3a6ea5;
}

@media (max-width: 991px) {
    .carousel {
        height: 300px;
    }
}
