* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    font-family: "Playfair Display", serif;

}

nav {
    background: #0a1a2a;
    height: 60px;
    width: 100%;
}

.enlace {
    position: absolute;
    padding: 1px 30px;
}



nav ul {
    float: right;
    margin-right: 110px;
    font-size: 18px;
}

nav ul li {
    display: inline-block;
    line-height: 65px;
    margin: 0px;
}

nav ul li a {
    color: white;
    font-size: 18px;
    padding: 3px 20px;
    border-radius: 3px;

}

li a.active,
li a:hover {
    background: none;
    transition: .5s;
}

.checkbtn {
    font-size: 30px;
    color: #fff;
    float: right;
    line-height: 50px;
    margin-right: 20px;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}

#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #E5D8ED;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: desaparecer 2s ease forwards;
    z-index: 9999;
}

#logo {
    width: 250px;
    animation:
        elegancia 1.5s ease-in-out forwards,
        cerrarLogo 1s ease forwards 1s;
    /* Empieza después de la entrada */
    opacity: 1;
    clip-path: circle(100% at 50% 50%);
}

@keyframes elegancia {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(4px);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
        filter: blur(0.5px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes cerrarLogo {
    0% {
        clip-path: circle(100% at 50% 50%);
        opacity: 1;
    }

    100% {
        clip-path: circle(0% at 50% 50%);
        opacity: 0;
    }
}

@keyframes desaparecer {
    0% {
        opacity: 1;
        visibility: visible;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.cover {

    padding: 8em 7em;
    animation: bgChange 16s infinite;
    background-size: cover;
    background-position: center 35%;
    height: 650px;
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: darken;
    color: #ffe0e0;
    text-shadow: 0.1em 0.1em 0.2em #0a1a2a;
    text-align: center;
    font-size: 15px;
    align-items: center;
    line-height: 20px;


}

@keyframes bgChange {
  0%   { background-image: url(images/duotone.webp); }
  40% { background-image: url(images/duotone2.webp); }
  80% { background-image: url(images/duotone3.webp); }
  100%   { background-image: url(images/duotone.webp); }
}

.cover h1 {
    font-size: 34px;
    line-height: 50px;
}


@media (max-width: 952px) {
    .enlace {
        padding-left: 20px;
    }

    nav ul li a {
        font-size: 16px;
    }
}

@media (max-width: 858px) {
    .checkbtn {
        display: block;
        margin-top: 10px;
    }

    ul {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #032340;
        top: 80px;
        left: -100%;
        text-align: center;
        transition: all .5s;

    }

    nav ul li {
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }

    nav ul li a {
        font-size: 20px;
    }

    li a:hover,
    li a.active {
        background: none;
        color: white;
    }

    #check:checked~ul {
        left: 0;
    }

    .cover {
        padding: 6em 1.5em;
        font-size: 13px;
    }

}

.transition0 {
    height: 15px;
    /* Ajusta la altura según sea necesario */
    background: linear-gradient(to bottom, #061525, #0b2034);
}

.contactenos {
    height: 400px;
    background-color: #0a1a2a;
    position: relative;
    /* Necesario para el pseudo-elemento */
    text-align: center;
    overflow: hidden;
    /* Asegura que el pseudo-elemento no se salga del contenedor */
}

.contactenos::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    /* Altura del degradado */
    background: linear-gradient(to bottom, #0a1a2a, #e5d8ed);
    /* Degradado hacia transparente */
    z-index: 1;
}

.contactenos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/fondoContacto.webp');
    /* Cambia por la ruta de tu imagen */
    background-size: cover;
    /* Ajusta la imagen al tamaño del contenedor */
    background-position: top;
    /* Centra la imagen */
    opacity: 0.2;
    /* Ajusta el nivel de transparencia */
    z-index: 0;
    /* Asegura que el pseudo-elemento esté detrás del contenido */
}

.contactenos p {
    position: relative;
    /* Coloca los elementos en una capa por encima del pseudo-elemento */
    z-index: 1;
    font-size: 1.2em;
    padding-bottom: 2em;
    padding-top: 5em;
    color: #E5D8ED;
}

.contactenosLlamada {
    position: relative;
    /* Coloca los elementos en una capa por encima del pseudo-elemento */
    z-index: 1;
    background-color: #01695a;
    padding: 15px 50px;
    border: none;
    display: inline-block;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.contactenosLlamada:hover {
    background-color: #025f62;
    transform: scale(1.05);
    position: relative;
    /* Coloca los elementos en una capa por encima del pseudo-elemento */
    z-index: 1;
}

.contactenosOpciones {
    margin-top: 2em;
    padding-bottom: 2em;
    position: relative;
    /* Coloca los elementos en una capa por encima del pseudo-elemento */
    z-index: 1;

}

.contactenos .contactenosOpciones a {
    color: rgb(118, 250, 241);
    font-size: 1.2em;
    margin: 0 1em;
    transition: color 0.3s ease;
}

.contactenosOpciones a:hover {
    color: aquamarine;
}

@keyframes glowEffect {

    0%,
    100% {
        box-shadow: 0 0 8px #1b8676;
    }

    50% {
        box-shadow: 0 0 20px #1b8676;
    }
}

.contactenosLlamada.glow {
    animation: glowEffect 2s infinite;
}

@media (max-width: 858px) {

    .contactenosLlamada {
        padding: 10px;
        font-size: 17px;
        margin-right: 0em;
        margin-left: 0em;

    }

    .contactenos a p {
        font-size: 15px;
        padding-right: 0em;
    }
}


.servicios {
    background: url(images/escribano.webp) no-repeat center center;
    background-color: #E5D8ED;
    background-size: cover;
    height: auto;
    width: 100%;
}

.servicios h2 {
    padding: 10px;
    border: #E5D8ED 2px solid;
}

.title-cards {
    width: fit-content;
    max-width: 1080px;
    margin: auto;
    padding: 20px;
    margin-top: 0px;
    text-align: center;
    color: #032340;
    background-color: rgba(229, 216, 237, 0.8);
}

.tarjetas h3 {
    font-size: 30px;
}

.container-card {
    width: 100%;
    display: flex;
    max-width: 1100px;
    margin: auto;

}

.card {
    width: 100%;
    margin: 20px;
    border-radius: 6px;
    overflow: hidden;
    background-color: rgba(229, 216, 237, 0.9);
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2);
    transition: all 400ms ease-out;
    cursor: default;
}

.card:hover {
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-3%);
}

.card img {
    width: 100%;
    height: 210px;
}

.card .contenido-card {
    padding: 15px;
    text-align: center;
}

.card .contenido-card h4 {
    margin-bottom: 15px;
    color: #032340;
}

.card .contenido-card p {
    line-height: 1.8;
    color: #032340;
    font-size: 14px;
    margin-bottom: 5px;
}

.card .contenido-card a {
    background-color: #025f62;
    display: inline-block;
    padding: 10px;
    margin-top: 10px;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid #025f62;
    border-radius: 4px;
    transition: all 400ms ease;
    margin-bottom: 5px;
}

.card .contenido-card a:hover {
    background: #efefef;
    color: #032340;
    border: 2px solid #032340;
}

.todaInfo {
    text-align: center;
    font-size: 18px;
    line-height: 25px;
    padding: 25px;
    padding-bottom: 3em;
}

.todaInfo p a {
    background-color: #1b8676;
    color: white;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.todaInfo a:hover {
    background-color: #025f62;
    color: #f8ecff;
}

.definition {
    padding: 6em 15em;
    background-color: #E5D8ED;
    color: #0a1a2a;
    line-height: 30px;


}

.definition h2 {
    margin-top: 35px;
    margin-bottom: 10px;
    text-align: center;
}


.definition h3 {
    font-size: larger;
    margin-top: 35px;
    margin-bottom: 10px;
    text-align: center;
}

@media (max-width: 858px) {
    .definition {
        padding: 2em 2em;
    }

    .todaInfo p a {
        background: none;
        color: #004280;
    }

    .todaInfo p a:hover {
        background: #143556;
        padding: 2px;
        color: aqua;
    }
}

@media (max-width: 350px) {
    .todaInfo p a {
        border: none;
    }
}


@media only screen and (min-width:320px) and (max-width:768px) {
    .container-card {
        flex-wrap: wrap;
    }

    .card {
        margin: 15px;
    }
}

.logoAnimado {
    background-color: #121212;
    height: 150px;
    background: linear-gradient(90deg, #0a1a2a, #c3acd1, #0a1a2a);
    background-size: 400% 100%;
    animation: cambioColores 12s linear infinite;
    /* 6 segundos para la animación */
    animation-delay: 4s;
}

@keyframes cambioColores {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100% 0;
    }
}





.pie-pagina {
    width: 100%;
    background-color: #032340;
    color: white;
}

.pie-pagina .grupo-1 {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 50px;
    padding: 45px 0px;
    text-align: center;
    line-height: 1;

}

.pie-pagina .grupo-1 .box h2 {
    color: #fff;
    font-size: 23px;
    text-align: center;
    line-height: 1;
    padding-bottom: 1.5em;
}

.pie-pagina .grupo-1 .box p {
    color: #efefef;
    font-size: 19px;
    text-align: center;
    line-height: 1;
    margin-bottom: 0;
    padding-bottom: 1em;
}

.pie-pagina .grupo-1 .box p a {
    color: #efefef;
    font-size: 19px;
    text-align: center;
    line-height: 1;
    padding-bottom: 1em;
}

.pie-pagina .grupo-1 .box p a:hover {
    color: aqua;
}

.pie-pagina .grupo-1 .box h2 a:hover {
    color: aqua;
}



.pie-pagina .grupo-1 .red-social a {
    display: inline-block;
    text-decoration: none;
    width: 45px;
    height: 45px;
    line-height: 45px;
    color: #fff;
    margin-right: 10px;
    background-color: #0d2033;
    text-align: center;
    transition: all 300ms ease;
}

.pie-pagina .grupo-1 .red-social a:hover {
    color: aqua;
}

.pie-pagina .grupo-2 {
    background-color: #0a1a2a;
    padding: 15px 10px;
    text-align: center;
    color: #fff;
}

.pie-pagina .grupo-2 small {
    font-size: 15px;
}

@media screen and (max-width:800px) {
    .pie-pagina .grupo-1 {
        width: 90%;
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 30px;
        padding: 35px 0px;
    }
}

@media (max-width: 858px) {
    .pie-pagina .grupo-1 .box p a {
        color: #efefef;
        font-size: 16px;
    }
}

a:link,
a:visited,
a:active {
    text-decoration: none;
    color: white;
}