*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif; /* Fuente más moderna */
    color: #333;
}

.hero{
    background-image: linear-gradient(120deg, #385DA690 0%, rgba(85, 27, 35, 0.692) 100%), url("../imagenes/indexpic.png");
    width: 100%;
    height: 650px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.textos-hero{
    margin-top: 100px;
    height: 500px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.textos-hero h1{
    font-size: clamp(32px, 8vw, 80px);
    text-align: center;
}

.textos-hero p{
    font-size: clamp(18px, 5vw, 35px);
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.textos-hero a{
    font-size: 1.5vw;
    margin-top: 50px;
    font-weight: bold;
    border-radius: 10px;
    display: inline-block;
    text-decoration: none;
    padding: 12px 20px;
    background: linear-gradient(120deg, #5E4996 40%, #56BEC8 100%);
    color: #fff;
    transform: scale(1);
    transition: transform 0.6s;
    box-shadow: 1px 1px 1px 1px rgba(208, 208, 208, 0.5);
}

.textos-hero a:hover{
    box-shadow: 3px 3px 3px 3px rgba(215, 215, 215, 0.5);
    transform: scale(1.03);
    cursor: pointer;
}

.svg-hero{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: block;
    transform: translateY(2px);
}

/* Estilos generales */

.contenedor,
.wave-contenedor{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 80px 0;
    border: none;
}
.contenedor{
    padding: 80px 0;
}

.titulo{
    font-weight: bold;
    font-size: clamp(28px, 6vw, 35px);
    text-align: center;
    margin-bottom: 40px;
}

.titulo.left{
    text-align: left;
    font-size: clamp(28px, 6vw, 40px);
    font-weight: bold;
    color: linear-gradient(120deg, #5E4996 40%, #56BEC8 100%);
}

.titulo.right{
    text-align: right;
    color: linear-gradient(120deg, #5E4996 40%, #56BEC8 100%);
}

/* Section */

.website{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    border: none;
    margin-top: 0 !important;
    border-top: 1px solid transparent !important;
}

.website img{
    width: 48%;
    min-width: 250px;
}

.website .contenedor-textos-main{
    width: 40%;
}

.parrafo{
    text-align: justify;
    margin-bottom: 20px;
    font-size: clamp(16px, 3vw, 23px);
}

.cta{
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    background-image: linear-gradient(120deg, #5E4996 40%, #56BEC8 100%);
    padding: 12px 15px;
    border-radius: 8px;
    color: #fff;
    transform: scale(1);
    transition: transform 0.6s;
    box-shadow: 1px 1px 1px 1px rgba(94, 94, 94, 0.5);
}

.cta:hover{
    box-shadow: 3px 3px 3px 3px rgba(94, 94, 94, 0.5);
    transform: scale(1.03);
    cursor: pointer;
}



/* Info */

.info{
    background: linear-gradient(120deg, #5E4996 40%, #56BEC8 100%);
    color: #fff;
}


/* Cards */

.content-cards{
    margin: 0;
    display: flex;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 40px;
}

.card{
    margin-top: 30px;
    color: #fff;
    padding: 40px 30px;
    background: linear-gradient(135deg, #5E4996 0%, #56BEC8 100%);
    border-radius: 15px;
    width: 30%;
    min-width: 280px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.card:hover{
    box-shadow: 0 20px 40px rgba(94, 76, 150, 0.4);
    transform: translateY(-10px);
    cursor: pointer;
    background: linear-gradient(135deg, #6d5ba7 0%, #63c9d4 100%);
}

.card i{
    margin: 0 0 25px 0;
    color: #ffd700;
    font-size: clamp(40px, 5vw, 60px);
    transition: transform 0.4s ease;
}

.card:hover i{
    transform: scale(1.2) rotate(10deg);
}

.card h3{
    font-weight: 700;
    font-size: clamp(20px, 4vw, 28px);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.card p{
    font-weight: 300;
    font-size: clamp(14px, 2.5vw, 16px);
    margin-bottom: 25px;
    line-height: 1.6;
    opacity: 0.95;
    flex-grow: 1;
}

.servicios{
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    color: #fff;
    display: inline-block;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    transform: translateY(0);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 15px;
}

.servicios:hover{
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

/* info2 */

.last-section{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 40px;
}

.last-section img{
    width: 48%;
}

.last-section .contenedor-textos-main{
    width: 40%;
}

.svg-wave{
    position: relative;
    z-index: 10;
    display: block;
    line-height: 0;
    margin-bottom: -5px;
}

.svg-wave svg{
    display: block;
    width: 100%;
    height: 100%;
}

/* footer */

footer {
    background: linear-gradient(90deg, #5E4996 40%, #56BEC8 100%);
    color: #fff;
    padding: 60px 0 30px 0; /* Más espacio arriba, menos abajo */
    margin-top: -50px;
}

/* Contenedor de emails */
.footer-emails {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en PC */
    gap: 30px;
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.email-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.email-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.email-item i {
    font-size: 24px;
    color: #ffd700;
}

.email-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 18px);
    word-break: break-all; /* Evita que correos largos rompan el móvil */
}

/* Copyright */
.footer-copy {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* --- RESPONSIVE PARA EL FOOTER --- */
@media screen and (max-width: 768px) {
    .footer-emails {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: 15px;
        padding: 0 20px;
    }

    .email-item {
        flex-direction: row; /* Icono al lado del texto en móvil */
        padding: 15px;
        justify-content: center;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Estado activo: Visible y en su posición original */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Variación: Entrar desde la izquierda */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Variación: Entrar desde la derecha */
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Efecto para las Cards con retraso escalonado */
.card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.8s ease, translateY 0.8s ease !important;
}

@media screen and (max-width:1024px){
    .contenedor,
    .wave-contenedor{
        width: 95%;
        padding: 0 0 60px 0;
    }
    .contenedor{
        padding: 60px 0;
    }

    .textos-hero a{
        font-size: 20px;
        padding: 18px 35px;
    }

    .textos-hero h1{
        font-size: 60px;
    }

    .website{
        gap: 20px;
    }

    .website img{
        width: 45%;
    }

    .website .contenedor-textos-main{
        width: 48%;
    }

    .card{
        width: calc(50% - 20px);
        min-width: 250px;
    }

    .last-section{
        gap: 30px;
    }

    .last-section img{
        width: 45%;
    }

    .last-section .contenedor-textos-main{
        width: 48%;
    }
}

@media screen and (max-width:768px){
    .hero{
        background-attachment: scroll;
    }

    .textos-hero{
        height: 400px;
        padding: 40px 20px;
    }

    .textos-hero a{
        font-size: 24px;
        padding: 20px 40px;
    }

    .textos-hero h1{
        font-size: 50px;
    }

    .contenedor,
    .wave-contenedor{
        width: 95%;
        padding: 0 0 50px 0;
    }
    
    .contenedor{
        padding: 50px 15px;
    }

    .titulo,
    .titulo.left{
        text-align: center;
    }

    .website {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .website img{
        width: 100%;
    }

    .website .contenedor-textos-main{
        width: 100%;
    }

    .parrafo{
        text-align: left;
    }

    .contenedor-textos-main{
        text-align: center;
    }

    .content-cards{
        gap: 25px;
    }

    .card{
        width: 100%;
        min-width: unset;
        padding: 30px 20px;
    }

    .info p{
        text-align: center;
        font-size: clamp(16px, 3vw, 23px);
    }

    .last-section{
        flex-direction: column;
        gap: 30px;
    }

    .last-section img{
        width: 100%;
    }

    .last-section .contenedor-textos-main{
        width: 100%;
    }

    .cta{
        font-size: 14px;
        padding: 10px 20px;
    }

    .servicios{
        font-size: 14px;
        padding: 10px 25px;
    }

    input[type="text"], 
    input[type="email"]{
        display: block;
        width: 100%;
    }

    input[type="submit"]{
        width: 100%;
    }
}

/* Selector de idiomas */


/* Selector de idiomas: Ahora se queda arriba y no sigue el scroll */
.language-picker {
    position: absolute; /* Cambio principal: de fixed a absolute */
    top: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-picker button {
    background: transparent;
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    letter-spacing: 0.5px;
}

.language-picker button.active-lang {
    background: #56BEC8;
    color: white;
    box-shadow: 0 4px 15px rgba(86, 190, 200, 0.3);
}

.language-picker button:hover:not(.active-lang) {
    background: rgba(255, 255, 255, 0.2);
}

/* Ajuste para móviles */
@media screen and (max-width: 768px) {
    .language-picker {
        top: 20px;
        right: 20px;
    }
}