:root {
    --color-morado: #683bbd;
}

body {margin:0;font-family:'Inter',sans-serif;background:#f9fafb;overflow-x:hidden;}

/* TOP BAR */
.topbar{
    background: var(--color-morado);
    color:#fff;
    padding:10px 20px;
    font-size:14px;
    display:flex;
    justify-content:space-between;
}

/* HEADER */
header {
    position:relative;
    box-sizing: border-box;
    width:100%;
    top:0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:25px 50px;
    background: #262626;
    backdrop-filter: blur(10px);
    transition:0.3s;
    z-index:1000;
    color:white;
}
header.shrink {position: sticky; padding:12px 50px;background:#262626;}
header.shrink .logo img { height:85px; transition: .3s }

.logo {display:flex;align-items:center;gap:10px;font-size:20px;font-weight:600;}
.logo i {color: var(--color-morado);}

nav {
    display:flex;
    align-items:center;
    gap:20px;
}

nav a {
    color:white;
    text-decoration:none;
    position:relative;
}

nav a::after {
    content:"";
    position:absolute;
    bottom:-5px;
    left:0;
    width:0%;
    height:2px;
    background: var(--color-morado);
    transition:0.3s;
}

nav a:hover::after {width:100%;}

/* SELECTOR DE IDIOMA */
.lang-selector {
    position: relative;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    transition: 0.3s;
}

.lang-selector:hover {
    border-color: var(--color-morado);
}



/* OFFCANVAS SOLO MOVIL */
.menu-toggle {display:none;font-size:24px;cursor:pointer;}

.overlay {position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);opacity:0;visibility:hidden;transition:0.3s;z-index:999;}
.overlay.active {opacity:1;visibility:visible;}

.sidebar {position:fixed;top:0;right:-320px;width:280px;height:100%;background:#0F172A;padding:40px 20px;transition:0.4s;z-index:1000;display:flex;flex-direction:column;box-sizing:border-box;}
.sidebar.active {right:0;}

.sidebar a {color:white;text-decoration:none;padding:15px 10px;display:flex;align-items:center;gap:12px;border-radius:8px;}
.sidebar a i {color: var(--color-morado);}
.sidebar a:hover {background:rgba(255,255,255,0.05);}

/* RESPONSIVE */
@media(max-width:768px){
    nav {display:none;} /* ocultar menu desktop */
    .menu-toggle {display:block;} /* mostrar hamburguesa */
}

/* Contenedor dentro del sidebar */
.sidebar-lang {
    margin-top: auto; /* Empuja el selector al fondo del sidebar */
    padding: 20px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-lang p {
    color: white;
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}





/* BANNER */
.swiper {
    width: 100%;
    height: 80vh; /* Ajusta la altura a tu gusto */
}

.swiper-slide {
    position: relative;
    text-align: right;
    display: flex;
    justify-content: right;
    align-items: center;

}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Para que la imagen no se deforme */
}

/* Estilo para tu contenido encima de la imagen */
.swiper-slide .content {
    position: absolute;
    color: white;
    background: rgba(0, 0, 0, 0.4); /* Fondo oscuro suave para leer mejor */
    padding: 15% 5%;
    border-radius: 10px;
    right: -20px;
    height: 100%;
    width: 50%;
    box-sizing: border-box;
    background: linear-gradient(to left, rgba(0, 0, 0, .6) 30%, transparent 100%);
}

/* Tamaño de la flecha interna */
.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 18px;                         /* Flecha más pequeña */
    font-weight: bold;
    color: #ffffff;                          /* Color de la flecha */
}

/* Efecto Hover */
.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.swiper-button-next:hover:after, 
.swiper-button-prev:hover:after {
    color: #000000;                          /* La flecha cambia a negro al pasar el mouse */
}

/* Estado inicial (Oculto y desplazado) */
.ani-title, .ani-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    text-shadow: 2px 2px 4px #000000;
}

/* Estado cuando el slide está activo (Aparece) */
.swiper-slide-active .ani-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s; /* El título sale primero */
}

.swiper-slide-active .ani-text {
    font-size: 18px;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s; /* El párrafo sale después */
}
/* Responsivo para móviles */
@media (max-width: 768px) {
    .swiper-slide {
        justify-content: center;
    }
    .swiper-slide .content {
        width: auto;
        padding: 20% 10%;
    }
}



/* SECCION   */
.about-section {
    padding: 80px 10%; /* Espaciado superior e inferior */
    background-color: #fff;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.container {
    display: flex;
    align-items: center; /* Alinea texto e imagen al centro verticalmente */
    gap: 40px;           /* Espacio entre columnas */
    max-width: 1200px;
    margin: 0 auto;
}

/* Columna de Texto */
.about-text {
    flex: 1; /* Toma el 50% del espacio */
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #111;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #444;
}

/* Lista con checks dorados */
.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.about-list li span {
    color:  var(--color-morado); /* Color dorado para el check */
    margin-right: 15px;
    font-weight: bold;
}

/* Columna de Imagen */
.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 5px; /* Un toque sutil en las esquinas */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Sombra elegante */
}

/* Estilo para el pie de sección */
.about-text-foot {
    width: 100%;        /* Ocupa todo el ancho */
    clear: both;        /* Limpia cualquier flotado previo */
    margin-top: 60px;   /* Da espacio suficiente después de la imagen */
    text-align: center; /* Centra el texto */
    padding: 40px 0;    /* Espacio interno */
}

.about-text-foot p {
    font-size: 1.1rem;
    color: #555;
    margin: 5px 0;
    max-width: 85%;   /* Para que el texto no sea tan largo y sea fácil de leer */
    margin-left: auto;  /* Centra el bloque del párrafo */
    margin-right: auto;
}
/* Responsivo para móviles */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Apila uno sobre otro */
        text-align: center;
    }
    
    .about-list li {
        justify-content: center;
    }
}




/* SECCION DE FORMULARIO */
/* Contenedor principal */
.contact-section {
    background-color: #fafafa; /* Gris muy claro para el fondo */
    display: flex;
    justify-content: center;
}

.contact-container {
    display: flex;
    max-width: 1400px; /* Ancho máximo para pantallas grandes */
    width: 100%;
}

/* --- COLUMNA IZQUIERDA (Formulario) --- */
.contact-form-wrapper {
    text-align: left;
    flex: 1; /* Ocupa el 50% en escritorio */
    padding: 80px 10%;
    background-color: #fafafa;
}

.contact-header h2 {
    font-size: 2.8rem;
    color: #111;
    margin-bottom: 0;
    line-height: 1;
}

.contact-header .highlight {
    font-size: 1.5rem;
    color: var(--color-morado);
    font-weight: normal;
    margin-top: 5px;
    margin-bottom: 20px;
}

.contact-header p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Estilos de los inputs */
.custom-form .form-group {
    margin-bottom: 25px;
}

.custom-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    color: #111;
    margin-bottom: 8px;
}

.custom-form textarea {
    max-height: 200px;
    max-width: 550px;
}

.custom-form input,
.custom-form select,
.custom-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px; /* Bordes sutiles y modernos */
    background-color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.custom-form input:focus,
.custom-form select:focus,
.custom-form textarea:focus {
    outline: none;
    border-color: var(--color-morado); /* Resalta en negro al hacer clic */
}

/* Botón de enviar */
.btn-submit {
    background-color: var(--color-morado);
    color: #fff;
    padding: 16px 0;
    width: 100%;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-submit:hover {
    opacity: .9;
}

/* --- COLUMNA DERECHA (Imagen) --- */
.contact-image-wrapper {
    flex: 1; /* Ocupa el otro 50% en escritorio */
    display: flex;
}

.contact-image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover; /* Asegura que la imagen llene el espacio sin deformarse */
}

/* --- RESPONSIVO PARA MÓVILES --- */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column; /* Apila los elementos en lugar de lado a lado */
    }

    .contact-image-wrapper {
        display: none; /* MAGIA: Oculta la imagen completamente en móviles */
    }

    .contact-form-wrapper {
        padding: 40px 5%; /* Reduce el espaciado para pantallas pequeñas */
    }
}




/* Estilos para el Toast de notificación */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    opacity: 0;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification.success {
    border-left: 5px solid #2ecc71;
}

.toast-notification.error {
    border-left: 5px solid #e74c3c;
}

/* Mejora sutil al botón cuando está deshabilitado */
.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}





.section {padding:80px 20px;text-align:center;opacity:0;transform:translateY(40px);transition:0.6s;}
.section.visible {opacity:1;transform:translateY(0);}


footer {background:#0F172A;color:white;padding:40px;text-align:center;}
