@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');
@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');

/* General Styles */
body {
    margin: 0;
    background-color: #000;
    color: #eee;
    font-family: Poppins, sans-serif;
    font-size: 12px;
}

/* Link Styles */
a {
    text-decoration: none;
    font-size: 25px;
    color: #eee;
}

/* Estructura general de la página */
.container {
    width: 90%;
    max-width: 1140px;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
}

section {
    padding: 60px 0;
}

h1, h2, h3 {
    color: #fff;
    margin-bottom: 20px;
}

/* Carrusel de Imágenes */
.carousel {
    position: relative;
    height: 100vh;
}

.carousel .list .item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.carousel .list .item .content {
    color: #fff;
}

.carousel .list .item .title {
    font-size: 4em;
    font-weight: bold;
}

.carousel .list .item .topic {
    font-size: 3em;
    color: #f1683a;
}

.carousel .buttons {
    margin-top: 20px;
}

.carousel .buttons button {
    padding: 10px 20px;
    border: none;
    background-color: #eee;
    color: #000;
    font-weight: 500;
}

.carousel .buttons button:nth-child(2) {
    background-color: transparent;
    border: 1px solid #fff;
}

/* Sección Sobre Nosotros */
#about-us {
    background-color: #333;
    color: #eee;
    text-align: center;
    padding: 60px 0;
}

#about-us .container {
    width: 90%;
    max-width: 1140px;
    margin: auto;
}

#about-us .about-intro {
    margin-bottom: 40px;
}

#about-us .about-intro h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    animation: fadeIn 1s ease-out;
}

#about-us .about-intro p {
    font-size: 1.2em;
    margin: 0 auto 40px;
    max-width: 800px;
    animation: fadeIn 1s ease-out 0.5s;
}

#about-us .about-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#about-us .about-card {
    background-color: #444;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: slideUp 1s ease-out;
}

#about-us .about-card h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

#about-us .about-card p,
#about-us .about-card ul {
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}

#about-us .about-card ul {
    list-style-type: disc;
    padding-left: 20px;
}

#about-us .about-card ul li {
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Áreas de Especialización */
.services {
    background-color: #444;
    color: #eee;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.service {
    background-color: #555;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.service h3 {
    margin-bottom: 10px;
}

/* Nuestros Profesionales */
.team {
    background-color: #333;
    color: #eee;
}

.team-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.team-member {
    text-align: center;
    max-width: 250px;
}

.team-member img {
    width: 100%;
    border-radius: 50%;
}

/* Asesorías Recientes */
.consulting {
    background-color: #444;
    color: #eee;
    text-align: center;
}

/* Pie de Página */
footer {
    background-color: #333;
    color: #eee;
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: #f1683a;
}

/* Header Styles */
header {
    width: 1140px;
    max-width: 80%;
    margin: auto;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

header a {
    margin-right: 40px;
}
nav {
    display: flex;
    gap: 20px;
    flex: 1; /* Permite que el nav ocupe el espacio restante */
    justify-content: center; /* Centra el menú de navegación */
}
/* Sección Servicios */
.services {
    background-color: #333;
    color: #eee;
    padding: 60px 0;
}

.services .container {
    width: 90%;
    max-width: 1140px;
    margin: auto;
}

.services h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-item {
    background-color: #444;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: slideUp 1s ease-out;
}

.service-item h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}

/* Sección Contacto */
.contact {
    background-color: #f5f5f5;
    color: #333;
    padding: 60px 0;
}

.contact .container {
    width: 90%;
    max-width: 800px;
    margin: auto;
}

.contact h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.contact-form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: slideUp 1s ease-out;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 1.1em;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #f1683a;
    box-shadow: 0 0 8px rgba(241, 104, 58, 0.5);
    outline: none;
}

.btn-submit {
    background-color: #f1683a;
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-submit:hover {
    background-color: #e05929;
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Styles */
.carousel {
    height: 100vh;
    margin-top: -50px;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.carousel .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.carousel .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel .list .item .content {
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}

.carousel .list .item .author {
    font-weight: bold;
    letter-spacing: 10px;
}

.carousel .list .item .title,
.carousel .list .item .topic {
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}

.carousel .list .item .topic {
    color: #f1683a;
}

.carousel .list .item .des {
    font-size: 0.9em; /* Tamaño del texto más pequeño para una mejor legibilidad */
    line-height: 1.6em; /* Altura de línea para un espaciado vertical adecuado */
    color: #eee; /* Color del texto */
    font-weight: normal; /* Peso de fuente normal para mejor lectura */
    margin: 20px 0; /* Margen arriba y abajo del párrafo */
    padding: 10px; /* Espaciado interno para que el texto no esté tan pegado al borde */
    border-radius: 5px; /* Bordes redondeados */
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente para mejorar contraste */
    text-align: left; /* Alineación del texto a la izquierda */
}

.carousel .list .item .des h3 {
    font-size: 1.2em; /* Tamaño del título */
    font-weight: bold; /* Peso de fuente para el título */
    margin-bottom: 10px; /* Espacio debajo del título */
    color: #f1683a; /* Color del título para destacar */
}

.carousel .list .item .des ul {
    list-style-type: disc; /* Estilo de lista con viñetas */
    margin-left: 20px; /* Espacio a la izquierda para las viñetas */
    padding-left: 20px; /* Espacio interno a la izquierda */
}

.carousel .list .item .des li {
    margin-bottom: 8px; /* Espacio debajo de cada ítem de la lista */
}

.carousel .list .item .buttons {
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}

.carousel .list .item .buttons button {
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-weight: 500;
}

.carousel .list .item .buttons button:nth-child(2) {
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}

/* Thumbnail Styles */
.thumbnail {
    position: absolute;
    bottom: 40px;
    left: 70%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}

.thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.thumbnail .item .content {
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.thumbnail .item .content .title {
    font-weight: 500;
}

.thumbnail .item .title .about {
    font-size: 0.75em; /* Tamaño del texto específico dentro del título, más pequeño */
    margin-bottom: 5px; /* Espacio debajo del texto */
    line-height: 1.2em; /* Altura de línea para un espaciado vertical adecuado */
    text-align: right; /* Alinea el texto a la derecha dentro del contenedor */
}

.thumbnail .item .content .description {
    font-weight: 300;
}

/* Arrows Styles */
.arrows {
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}

.arrows button:hover {
    background-color: #fff;
    color: #000;
}

/* Carousel Animation Styles */
.carousel .list .item:nth-child(1) {
    z-index: 1;
}

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}

@keyframes showContent {
    to {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

.carousel .list .item:nth-child(1) .content .title {
    animation-delay: 1.2s !important;
}

.carousel .list .item:nth-child(1) .content .topic {
    animation-delay: 1.4s !important;
}

.carousel .list .item:nth-child(1) .content .des {
    animation-delay: 1.6s !important;
}

.carousel .list .item:nth-child(1) .content .buttons {
    animation-delay: 1.8s !important;
}

/* Carousel Navigation Animations */
.carousel.next .list .item:nth-child(1) img {
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}

@keyframes showImage {
    to {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1) {
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}

@keyframes showThumbnail {
    from {
        width: 0;
        opacity: 0;
    }
}

.carousel.next .thumbnail {
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext {
    from {
        transform: translateX(150px);
    }
}

.carousel.prev .list .item:nth-child(2) {
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img {
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}

@keyframes outFrame {
    to {
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1) {
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}

.carousel.next .arrows button,
.carousel.prev .arrows button {
    pointer-events: none;
}

.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons {
    animation: contentOut 1.5s linear 1 forwards !important;
}

@keyframes contentOut {
    to {
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}

/* Running Time Animation */
.carousel .time {
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time {
    animation: runningTime 3s linear 1 forwards;
}

@keyframes runningTime {
    from {
        width: 100%;
    }
    to {
        width: 0;
    }
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 1024px) {
    .carousel .list .item .title {
        font-size: 3em;
    }

    .carousel .list .item .topic {
        font-size: 2em;
    }
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .carousel {
        height: 80vh;
    }

    .carousel .list .item .title {
        font-size: 2em;
    }

    .carousel .list .item .topic {
        font-size: 1.5em;
    }
}

@media screen and (max-width: 600px) {
    .container {
        width: 100%;
    }

    h1, h2, h3 {
        font-size: 1.5em;
    }

    .carousel .list .item .title {
        font-size: 1.5em;
    }

    .carousel .list .item .topic {
        font-size: 1.2em;
    }

    .carousel .list .item img {
        object-fit: cover;
    }

    .about-card, .service-item {
        max-width: 100%;
    }

    footer {
        padding: 10px 0;
    }
}


/* Estilos generales del menú */
nav.main-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Estilos para los links dentro del menú */
nav.main-nav a {
    text-decoration: none;
    color: #eee;
    font-size: 1.2em;
    padding: 10px;
}

/* Media Query para dispositivos móviles */
@media screen and (max-width: 768px) {
    /* Comentario: Ajustamos el diseño del menú para pantallas pequeñas */
    .header-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    nav.main-nav {
        display: none; /* Ocultamos el menú en pantallas pequeñas por defecto */
        flex-direction: column;
        gap: 10px;
        width: 100%;
        background-color: #333;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        position: absolute;
        top: 60px; /* Ajusta la posición según el alto del botón de menú */
        left: 0; /* Alineamos el menú a la izquierda */
    }

    /* Botón de menú para dispositivos móviles */
    .menu-toggle {
        display: block;
        cursor: pointer;
        background-color: #f1683a;
        color: #fff;
        padding: 10px;
        font-size: 1.5em; /* Ajusta el tamaño del ícono */
        border: none;
        width: 40px; /* Ajusta el tamaño del botón según el ícono */
        text-align: left;
        position: relative;
    }

    /* Mostrar el menú al hacer clic */
    .menu-toggle.active + nav.main-nav {
        display: flex;
    }
}

/* Ocultar el botón y el menú en pantallas grandes */
@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none; /* Ocultar el botón de menú en pantallas grandes */
    }

    nav.main-nav {
        display: flex; /* Mostrar el menú como de costumbre en pantallas grandes */
    }
}

/* Estilos del carousel */
.carousel {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    position: relative;
}

.list {
    display: flex;
    overflow: hidden; /* Ocultar el desbordamiento horizontal */
    gap: 10px;
    flex-wrap: nowrap; /* Mantener los elementos en una línea horizontal por defecto */
}

.item {
    min-width: 300px; /* Tamaño mínimo en pantallas grandes */
    flex: 1 0 auto;
}

.item img {
    width: 100%;
    height: auto;
}

.thumbnail {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap; /* Permitir que las miniaturas se envuelvan en pantallas pequeñas */
}

.thumbnail .item {
    width: 200px; /* Tamaño fijo de las miniaturas en pantallas grandes */
}

/* Media Query para dispositivos móviles */
@media screen and (max-width: 768px) {
    /* Mostrar el botón de menú y ocultar el menú de navegación */
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none; /* Ocultar el menú de navegación en pantallas pequeñas */
        flex-direction: column;
        background-color: #333;
        width: 100%;
        position: absolute;
        top: 50px;
        left: 0;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 10px;
        border-bottom: 1px solid #444;
        text-align: center;
    }

    /* Ajustar la cuadrícula del carousel */
    .list {
        flex-direction: column; /* Cambiar la dirección de los elementos a columna */
        overflow: visible; /* Permitir que los elementos se muestren completamente */
    }

    .item {
        min-width: 100%; /* Ajustar el ancho a 100% en pantallas pequeñas */
        max-width: 100%;
        margin-bottom: 10px; /* Agregar un margen entre elementos */
    }

    .thumbnail {
        flex-direction: column;
        align-items: center;
    }

    .thumbnail .item {
        width: 90%; /* Ajustar el tamaño de las miniaturas */
        margin-bottom: 10px;
    }

    /* Ajustar las flechas */
    .arrows {
        font-size: 1em; /* Tamaño de fuente más grande para pantallas pequeñas */
        text-align: center; /* Alinear las flechas al centro */
        position: fixed; /* Fijar la posición de las flechas */
        bottom: 10px; /* Ubicar las flechas a 10px del fondo */
        right: 10px; /* Ubicar las flechas a 10px del borde derecho */
        z-index: 10; /* Asegurarse de que las flechas estén encima de otros elementos */
        display: flex;
        gap: 10px; /* Espacio entre flechas */
    }

    .arrows button {
        padding: 10px; /* Ajustar el padding para mayor comodidad */
        background: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente para las flechas */
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }
}

@media screen and (max-width: 480px) {
    /* Ajustar el tamaño de las flechas */
    .arrows {
        font-size: 0.8em;
    }

    .arrows button {
        padding: 8px;
    }
}