@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root {
    --fondo: #ffffff;
    --texto: #1b1b1b;
    --card: #cfcfcf;
    --sombra: #1059a258;
    --footer: #001A30;
    --fondo-input: #fafafa;
    --fondo-input-focus: #ffffff;
    --icono-footer: #ffffff;
    --texto-mision-vision: #ffffff;
    --color-titulo: #001A30;
    --social-fondo: #fff;
    --titulo-header: #001A30;
    --icono-card: #00E6E1;
    --filter-card: none;
    --filter-hover: invert(1);
}

.darkmode {
    --fondo: #001A30;
    --texto: #cfdadd;
    --card: #05233b;
    --sombra: #000000;
    --footer: #01101c;
    --fondo-input: #000000;
    --fondo-input-focus: #08243f;
    --icono-footer: #105AA2;
    --texto-mision-vision: #001A30;
    --color-titulo: #00E6E1;
    --titulo-header: #00E6E1;
    --social-fondo: #00E6E1;
    --icono-card: #001A30;
    --filter-card: brightness(15.5) grayscale(1);
    --filter-hover: grayscale(1);
}

* {
    font-family: "Open Sans", sans-serif;
    box-sizing: border-box;
    margin: 0;
    color: var(--texto);
}



body,
header,
footer,
.botones>svg,
.opciones-menu,
img.card-icon,
.footer-icon,
.socials-container a {
    transition: background-color .5s ease, color .5s ease, fill .5s ease, filter .5s ease;
}

p,
h1,
h2,
a {
    transition: color .5s ease;
}

#tema>svg {
    height: 3rem;
    fill: var(--color-titulo);
    cursor: pointer;
    position: absolute;
    right: 3rem;
    top: 2rem;
}

#tema svg:last-child {
    display: none;
}

.darkmode #tema svg:first-child {
    display: none;
}

.darkmode #tema svg:last-child {
    display: block;
}

/* 


#tema {
    height: 3rem;
    right: 30px;
    cursor: pointer;
    animation: aparecer 1s ease;
    position: absolute;
    transition: opacity 0.5s ease-in-out;
}

#tema:hover {
    filter: hue-rotate(10deg);
} */

html {
    scroll-behavior: smooth;
}

#main-title {
    font-size: 4rem;
    text-align: center;
}

body {
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    row-gap: 5vh;
    background-color: var(--fondo);
    background-image: url(images/rivete.png);
    background-size: contain;
}

h1 {
    /* text-align: center;
    text-transform: uppercase; */

}

.titulo {
    font-family: "Anton", sans-serif;
    /* font-family: 'Montserrat', sans-serif; */
    font-size: 2.5rem;
    color: var(--color-titulo);
    text-align: center;
    /* text-transform: uppercase; */
    letter-spacing: 2px;
    margin: 20px 0;
    position: relative;
}

.titulo::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--color-titulo);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

header {
    background-color: var(--fondo);
    display: flex;
    justify-content: center;
    column-gap: 3%;
    align-items: center;
    height: 7rem;
    width: 100%;
    box-shadow: 0px 1px 4px var(--sombra);
    position: sticky;
    top: 0;
    z-index: 3;
}

header>a {
    text-decoration: none;
    color: var(--texto);
}

header>#menu {
    height: 2rem;
    cursor: pointer;
    display: none;
    fill: var(--color-titulo);
}

#menu-responsive {
    /* display: none; */
    position: fixed;
    top: 7rem;
    left: 0;
    width: 100%;
    height: 0px;
    background-color: #105aa224;
    backdrop-filter: blur(4px);
    z-index: 2;
    /* animation: menu-resp .5s ease; */
    transition: height .2s ease, opacity .2s ease;
}

@keyframes menu-resp {
    0% {
        height: 0px;
    }

    100% {
        height: 100%;
    }
}

.opciones-menu {
    width: 40vw;
    background-color: var(--fondo);
    height: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    padding: 5%;
    display: none;
    box-shadow: 0px 1px 4px var(--sombra);
}

.opciones-menu>a {
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-titulo);

}

@media(max-width:1000px) {
    header {
        justify-content: space-between;
        padding: 0px 5%;
    }

    header>#menu {
        display: block;
    }

    header>a {
        display: none;
    }
}

.logo {
    display: flex;
    align-items: center;
    position: absolute;
    left: 2rem;
}

.logo>h1 {
    font-family: "Lato", sans-serif;
    font-size: 2rem;
}

img#logo {
    height: 5rem;
    width: auto;
    position: absolute;
    left: 3rem;
}

#home {
    height: fit-content;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 80%;
    margin: 0px 10%;
    row-gap: 20px;
}

section#seccion2 {
    max-width: 100%;
    /* Ajusta según sea necesario */
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 4 0%, rgba(255, 255, 255, 1) 100%),
        url('images/pexels-markusspiske-2764993.jpg') center/cover no-repeat;
    height: 60vh;

}

.izquierda {
    animation: aparecer 1s ease;
    overflow: hidden;
}

.derecha {
    width: 40vw;
    height: 60vh;
    background-image: url('images/pexels-kindelmedia-7688336.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: derecha 1s ease;
    filter: drop-shadow(0 4px 8px var(--sombra));
    border-radius: 10px;
    /* Combinado con bordes redondeados */
}


footer {
    background-color: var(--footer);
    color: #fff;
    height: 20rem;
    display: flex;
    justify-content: center;
    box-shadow: 0px 1px 4px #105AA2;
    align-items: center;
    flex-direction: column;
    row-gap: 3rem;
    margin-top: 5vh;
}

#footer-menu {
    display: flex;
    column-gap: 3rem;
}

#footer-menu>a {
    color: #ffffff;
    text-decoration: none;
}

#copyright {
    display: flex;
    justify-content: center;
    height: 2rem;
    width: 100%;
    align-items: center;
    font-size: .8rem;
    color: #ffffff;
    /* background-color: #141414; */
}

@keyframes derecha {
    0% {
        opacity: 0;
        transform: rotate(-60deg);
    }

    100% {
        opacity: 1;
        transform: rotate(0deg);
    }
}

@keyframes aparecer {
    0% {
        opacity: 0;
        transform: scale(.5)
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

h1 {
    color: var(--color-titulo);
    font-size: 3rem;
    font-weight: 900;
}

#servicios {
    width: 80%;
    margin: auto;
    overflow: hidden;
    /* height: 33rem; */
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.carousel-container {
    display: flex;
    overflow: hidden;
    height: 100%;
    align-items: center;
}

.carousel-track {
    display: flex;
    flex-wrap: wrap;
    transition: transform 0.5s ease;
    /* padding: 10px 0px; */
    gap: 15px;
    padding-top: 20px;
    justify-content: center;
}


.card {
    flex: 0 0 calc(33% - 20px);
    box-sizing: border-box;
    /* margin: 0 10px; */
    background-color: var(--card);
    text-align: center;
    flex-direction: column;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 20px;
    height: 14rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.5s ease;
    transition-duration: 0.3s;
    display: flex;
    justify-content: center;
}

.card:hover {
    transform: translate3d(10px 0px 10px);
    /* Movimiento sutil al hover */
    box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px;
    filter: var(--filter-hover);
    perspective: 1000;
}

.card-icon {
    height: 4rem;
    /* background-color: var(--icono-card); */
    padding: 10px;
    border-radius: 10px;
    /* position: relative; */
    /* top: -1rem; */
    /* right: -30%; */
    transition: transform 0.3s ease;
    filter: var(--filter-card);
}

.card:hover>.card-icon {
    /* transform: translateX(-100px); */
    /* background-color: transparent; */
}

.card-header {
    /* background-color: var(--card-header); */
    /* height: 19rem; */
    /* min-height: 15vh; */
    height: fit-content;
    /* max-height: 15vh; */
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.card-header>h5 {
    color: var(--titulo-header);
    font-size: 1.2rem;
    text-align: center;
    padding: 0px 20px;
    animation: aparecer 1s ease;
    line-height: 1.5rem;
}

.card-content {
    padding: 20px;
    height: fit-content;
}

.card-content>p {
    font-size: .8rem;
    text-align: justify;
    display: -webkit-box;
    /* Requerido para la propiedad -webkit-line-clamp */
    -webkit-box-orient: vertical;
    /* Establece la orientación de la caja flexible en vertical */
    overflow: hidden;
    /* Esconde cualquier contenido que desborde el contenedor */
    text-overflow: ellipsis;
    /* Aplica los puntos suspensivos (...) */
    -webkit-line-clamp: 11;
    /* Limita el texto a 3 líneas (ajusta este valor según tus necesidades) */
    line-height: 1.5em;
    /* Altura de cada línea (ajusta según sea necesario) */
    max-height: calc(1.5em * 11);
}

.carousel-counter {
    font-size: 15px;
    color: #d1d1d1;
    height: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
}


.botones {
    display: flex;
    justify-content: center;
    column-gap: 30px;

}

.botones>svg {
    height: 2rem;
    cursor: pointer;
    fill: var(--color-titulo);
}

/****************** NOSOTROS ********************/
#nosotros {
    display: flex;
    width: 80%;
    margin: 0px 10%;
    row-gap: 3rem;
    flex-wrap: wrap;
}

#nosotros>div {
    width: 50%;
}

.nosotros-der {
    padding: 5% 0% 5% 5%;
    box-sizing: border-box;
    text-align: justify;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1rem;
    justify-content: center;
}

#mision-vision {
    width: 100% !important;
    display: flex;
    justify-content: space-evenly;
    column-gap: 3rem;
    row-gap: 3rem;
}

#mision-vision>div {
    height: 100%;
    width: 100%;
    /* filter: brightness(0.7); */
    border-radius: 5px;
    font-size: .9rem;
    background: var(--color-titulo);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#mision-vision>div:hover {
    transform: translateY(-10px);
    /* Movimiento sutil al hover */
    box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px;
}

#mision-vision>div>p,
#mision-vision>div>h4 {
    color: var(--texto-mision-vision);
}

#mision-vision>div>h4 {
    font-size: 2rem;
}



.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* FORMULARIO DE CONTACTO */
#contactanos {
    /* background-color: white; */
    /* padding: 40px; */
    border-radius: 8px;
    /* box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1); */
    width: 80%;
    margin: 5vh 10%;
}


.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: var(--fondo-input);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background-color: var(--fondo-input-focus);
}

textarea {
    resize: vertical;
}

.btn-submit {
    padding: 12px;
    font-size: 16px;
    background-color: var(--color-titulo);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #003563;
}

#valores {
    padding: 2rem 1rem;
    text-align: center;
}

.valores-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 5rem;
}

.valor {
    background: var(--color-titulo);
    padding: 1.5rem;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    /* Forma circular */
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.valor i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--texto-mision-vision);
}

.valor h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    color: var(--texto-mision-vision);
}

.valor p {
    font-size: 0.8rem;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    color: var(--texto-mision-vision);
}

.valor:hover {
    transform: translateY(-5px);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px;
}

.socials-container {
    display: flex;
    column-gap: 30px;
}

.socials-container a {
    background-color: var(--social-fondo);
    padding: 1rem;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.socials-container a::before {
    content: attr(data-social);
    position: absolute;
    background-color: var(--accent-color);
    color: #fff;
    padding: .5em 1em;
    border-radius: 100px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-30px) rotate(25deg);
    opacity: 0;
    transition: 200ms cubic-bezier(0.42, 0, 0.13, 2);

}

.socials-container a:hover {
    background-color: var(--accent-color);
    fill: #fff;
}

.socials-container a::after {
    content: '';
    height: 0;
    width: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--accent-color);
    transform: translateY(-30px) rotate(25deg);
    opacity: 0;
    transition: 200ms cubic-bezier(0.42, 0, 0.13, 2);
}

.socials-container a svg {
    height: 32px;
}

.socials-container a:hover::before {
    transform: translateY(-65px) rotate(0);
    opacity: 1;
}

.socials-container a:hover::after {
    transform: translateY(-62px) rotate(0);
    opacity: 1;
}

@media(max-width: 1330px) {
    #home {
        flex-direction: column;
    }

    .izquierda {
        height: 30%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .derecha {
        width: 100%;
    }

    #servicios {
        height: fit-content;
        /* padding: 5vh 0px; */
    }

    .card {
        flex: 0 0 calc(80vw / 2 - 25px);
    }

}

@media(max-width: 1000px) {
    .card {
        flex: 0 0 calc(80vw / 2 - 25px);
    }

    #mision-vision {
        flex-direction: column;
    }

    #tema {
        position: initial;
    }

    #logo {
        position: initial !important;
    }

    #nosotros {
        flex-direction: column;
    }

    #nosotros>div {
        width: 100%;
    }

}

@media(max-width: 800px) {

    .card {
        flex: 0 0 calc(80vw - 25px);
    }
    .opciones-menu {
        width: 70vw;
    }

    .derecha {
        height: 15rem;
    }

    #footer-icons {
        column-gap: 1rem;
    }

    .footer-icon {
        height: 3rem;
        width: 3rem;
    }

    .footer-icon>img {
        height: 1.5rem;
    }

    #footer-menu {
        display: none;
    }

    .izquierda>h4 {
        text-align: center;
    }
}

@media(max-width: 500px) {


    #main-title {
        font-size: 3rem;
    }

    .socials-container {
        column-gap: 20px;
    }

    .socials-container a {
        padding: .7rem;
        width: 54px;
        height: 54px;
    }

    .socials-container a:hover::after {
        transform: translateY(-63px) rotate(0);
    }

    .valor {
        padding: 1rem;
        width: 90%;
        height: fit-content;
        border-radius: 5px;
    }

    #tema>svg {
        height: 2rem;
        right: 1.5rem;
        top: 2.5rem;
    }

    img#logo {
        height: 4rem;
    }

}