/* Cargar la fuente Acumin Variable Concept */
@font-face {
    font-family: 'Acumin Variable Concept';
    src: url('../recursos/fonts/AcuminVariableConcept.otf') format('opentype');
    font-weight: 100 900; /* Rango de pesos para una fuente variable */
    font-style: normal;
}

.logo-image {
    max-width: 150px; /* Ajusta el tamaño según necesites */
    height: auto;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Acumin Variable Concept', sans-serif;
}

body {
    background-image: url('../recursos/textura-fondo.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

/* Estilo del encabezado */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: auto; /* Cambiado para que se ajuste al contenido */
    min-height: 60px; /* Altura mínima para mantener consistencia */
}

.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-subtext {
    font-size: 12px;
    color: rgb(97, 97, 96); /* Gris medio del documento */
    font-weight: 400; /* Wide */
}

/* Estilos del botón hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: rgb(76, 71, 73); /* Gris oscuro */
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Estilos del botón de cerrar */
.close-menu {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: rgb(76, 71, 73); /* Gris oscuro, igual que los enlaces */
    cursor: pointer;
    z-index: 1002;
}

/* Estilos del mensaje al final del menú */
.menu-footer {
    display: none; /* Oculto por defecto */
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 14px;
    color: rgb(76, 71, 73); /* Gris oscuro */
    font-weight: 400; /* Wide */
}

/* Estilos del menú */
.nav-menu {
    position: fixed;
    top: 0; /* Cambiado para cubrir el header */
    left: -250px;
    width: 250px;
    height: 100%; /* Cambiado para cubrir toda la pantalla */
    background-color: #fff;
    transition: left 0.3s ease;
    padding-top: 80px; /* Espacio para el header */
    z-index: 999;
}

.nav-menu.active {
    left: 0;
}

.nav-menu ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu ul li {
    border-bottom: 1px solid #e0e0e0;
}

.nav-menu ul li a {
    text-decoration: none;
    color: rgb(185, 207, 69); /* Verde-amarillento */
    padding: 15px 20px;
    display: block;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu ul li a:hover {
    background-color: #f0f0f0;
    color: rgb(76, 71, 73); /* Gris oscuro al hover para contraste */
}

/* Contenido principal */
main {
    padding-top: 80px; /* Ajustado para que el contenido comience debajo del header */
}

/* Sección Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 50px;
    position: relative;
    min-height: 100vh;
    background-color: transparent; /* Cambiado a transparente */
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    object-fit: cover;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 2.35s ease-out forwards; /* Duración ajustada a 2.35s */
    animation-delay: 0.1s; /* Igual que la primera letra */
}

.hero-text {
    flex: 1;
    text-align: right;
    position: relative;
}

.hero-text h1 {
    font-size: 48px;
    color: rgb(80, 173, 147);
    line-height: 1.2;
    text-transform: uppercase;
    font-family: 'Lato', sans-serif; /* Mantenemos Lato para este elemento */
    font-weight: 700;
    position: relative;
    text-align: center;
    display: flex; /* Usamos flex para apilar las líneas */
    flex-direction: column; /* Líneas en vertical */
    gap: 10px; /* Espacio entre las líneas */
}

.hero-text .word {
    display: block; /* Cada palabra (frase) en su propia línea */
    white-space: nowrap; /* Evita que las frases se rompan */
}

.hero-text .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s ease-out forwards;
}

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

/* Retrasos escalonados originales para las letras */
.hero-text .letter:nth-child(1) { animation-delay: 0.1s; }
.hero-text .letter:nth-child(2) { animation-delay: 0.15s; }
.hero-text .letter:nth-child(3) { animation-delay: 0.2s; }
.hero-text .letter:nth-child(4) { animation-delay: 0.25s; }
.hero-text .letter:nth-child(5) { animation-delay: 0.3s; }
.hero-text .letter:nth-child(6) { animation-delay: 0.35s; }
.hero-text .letter:nth-child(7) { animation-delay: 0.4s; }
.hero-text .letter:nth-child(8) { animation-delay: 0.45s; }
.hero-text .letter:nth-child(9) { animation-delay: 0.5s; }
.hero-text .letter:nth-child(10) { animation-delay: 0.55s; }
.hero-text .letter:nth-child(11) { animation-delay: 0.6s; }
.hero-text .letter:nth-child(12) { animation-delay: 0.65s; }
.hero-text .letter:nth-child(13) { animation-delay: 0.7s; }
.hero-text .letter:nth-child(14) { animation-delay: 0.75s; }
.hero-text .letter:nth-child(15) { animation-delay: 0.8s; }
.hero-text .letter:nth-child(16) { animation-delay: 0.85s; }
.hero-text .letter:nth-child(17) { animation-delay: 0.9s; }
.hero-text .letter:nth-child(18) { animation-delay: 0.95s; }
.hero-text .letter:nth-child(19) { animation-delay: 1.0s; }
.hero-text .letter:nth-child(20) { animation-delay: 1.05s; }
.hero-text .letter:nth-child(21) { animation-delay: 1.1s; }
.hero-text .letter:nth-child(22) { animation-delay: 1.15s; }
.hero-text .letter:nth-child(23) { animation-delay: 1.2s; }
.hero-text .letter:nth-child(24) { animation-delay: 1.25s; }
.hero-text .letter:nth-child(25) { animation-delay: 1.3s; }
.hero-text .letter:nth-child(26) { animation-delay: 1.35s; }
.hero-text .letter:nth-child(27) { animation-delay: 1.4s; }
.hero-text .letter:nth-child(28) { animation-delay: 1.45s; }
.hero-text .letter:nth-child(29) { animation-delay: 1.5s; }
.hero-text .letter:nth-child(30) { animation-delay: 1.55s; }

.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 100px;
    height: 2px;
    background-color: rgb(80, 173, 147);
}

/* Sección combinada: Nuestras Soluciones y Por qué elegirnos */
.solutions-why-choose {
    padding: 50px 20px;
    background-color: transparent;
    text-align: center;
}

.solutions-why-choose .container {
    max-width: 1200px;
    margin: 0 auto;
}

.solutions-why-choose-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Color change for our-solutions and why-choose-us to gray */
/* Updated text to white and titles to green */
.our-solutions, .why-choose-us {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: rgb(151, 148, 148); /* Gray background */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.our-solutions {
    transform-origin: left;
}

.why-choose-us {
    transform-origin: right;
}

.our-solutions h2, .why-choose-us h2 {
    font-size: 36px;
    color: rgb(185, 207, 69); /* Green titles */
    margin-bottom: 20px;
    font-weight: 700;
}

.our-solutions p, .why-choose-us p {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 400;
    color: #fff; /* White text */
}

/* Sección Misión, Visión, Valores */
.mission-vision-values {
    padding: 50px 20px;
    background-color: transparent;
    text-align: center;
}

.mission-vision-values .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.u-align-left {
    text-align: left;
}

.u-container-style {
    margin-bottom: 30px;
}

.u-custom-color-1 {
    background-color: rgb(80, 173, 147); /* Verde-azulado */
}

.u-group {
    width: 300px;
    height: 450px;
    display: inline-block;
    vertical-align: top;
    margin-right: 30px;
    color: #fff;
    opacity: 0;
}

.u-radius-50 {
    border-radius: 20px;
}

.u-shape-round {
    border-radius: 20px;
}

.u-container-layout {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: auto;
}

.u-valign-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.u-image {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
}

.u-text {
    margin: 0;
}

.u-custom-color-1 .u-text {
    color: #ffffff;
}

.u-text h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: rgb(185, 207, 69); /* Verde-amarillento */
    font-weight: 700;
}

.u-text p {
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    font-weight: 400;
    flex-grow: 1;
}

/* Animación de apertura desde los bordes */
@keyframes openFromEdges {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.open-from-edges {
    animation: openFromEdges 1s ease-out forwards;
}

/* Estilos de la sección "Soluciones para Usted" */
.what-we-offer {
    padding: 50px 20px;
    background-color: transparent;
    text-align: center;
}

.what-we-offer h2 {
    font-size: 36px;
    color: rgb(185, 207, 69);
    margin-bottom: 40px;
    font-family: 'Acumin Variable Concept', sans-serif;
    font-weight: 700;
}

.offer-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.offer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.offer-item {
    display: block;
    opacity: 0;
    width: 300px;
}

.image-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.offer-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.offer-text {
    background-color: #fff;
    border-radius: 30px;
    padding: 40px 20px 20px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    margin: 0 auto;
}

.offer-text .number {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(80, 173, 147);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
}

.offer-text .number i {
    font-size: 24px; /* Tamaño del ícono */
    color: #fff; /* Color blanco para coincidir con el diseño */
    line-height: 40px; /* Centrado vertical dentro del círculo */
}

.offer-text h3 {
    font-size: 20px;
    color: rgb(185, 207, 69);
    margin-bottom: 10px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.offer-text p {
    font-size: 14px;
    color: rgb(76, 71, 73);
    line-height: 1.4;
    font-weight: 400;
}

/* Estilos de la sección "Escríbenos" */
.contact-us {
    padding: 50px 20px;
    background-color: rgb(80, 173, 147);
    text-align: center;
}

.contact-us h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 700;
}

.contact-us form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
}

.contact-us input,
.contact-us textarea {
    padding: 15px;
    font-size: 16px;
    border: 2px solid #fff;
    border-radius: 30px;
    background-color: transparent;
    color: #fff;
    outline: none;
    font-weight: 400;
}

.contact-us input::placeholder,
.contact-us textarea::placeholder {
    color: #fff;
}

.contact-us textarea {
    height: 150px;
    resize: none;
}

.contact-us button {
    padding: 10px 30px;
    font-size: 16px;
    font-weight: bold;
    color: rgb(80, 173, 147);
    background-color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    align-self: center;
}

.contact-us button:hover {
    background-color: #e0e0e0;
}

/* Estilos del footer */
footer {
    padding: 20px;
    background-color: transparent;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

footer p {
    color: rgb(76, 71, 73);
    font-weight: 400;
}

footer .social-links a {
    color: rgb(80, 173, 147);
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: rgb(185, 207, 69);
}

/* Animaciones necesarias */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(400px) rotateX(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateX(0deg);
    }
}

@keyframes popUp {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-15deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotateInImage {
    from {
        opacity: 0;
        transform: rotate(-10deg) translateY(20px);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) translateY(0);
    }
}

/* Aplicar animaciones */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.bounce-in {
    animation: bounceIn 0.8s ease-out forwards;
}

.flip-in {
    animation: flipIn 0.8s ease-out forwards;
}

.pop-up {
    animation: popUp 0.8s ease-out forwards;
}

.scale-up {
    animation: scaleUp 0.8s ease-out forwards;
}

.zoom-in {
    animation: zoomIn 0.8s ease-out forwards;
}

.rotate-in {
    animation: rotateIn 0.8s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.rotate-in-image {
    animation: rotateInImage 1s ease-out forwards;
}

/* Responsive: Modo móvil */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    header {
        padding: 10px 15px;
        height: auto;
        min-height: 50px;
        position: fixed;
        top: 0;
        width: 100%;
        background-color: #fff;
        z-index: 1000;
    }

    .nav-menu {
        top: 0;
        height: 100%;
        width: 250px;
        background-color: #fff;
        padding-top: 60px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu.active .close-menu {
        display: block;
        top: 20px;
        right: 20px;
        color: rgb(185, 207, 69);
    }

    .nav-menu.active .menu-footer {
        display: block;
        color: rgb(185, 207, 69);
    }

    .nav-menu ul li {
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-menu ul li a {
        color: rgb(185, 207, 69);
        font-size: 16px;
        padding: 10px 20px;
    }

    .nav-menu ul li a:hover {
        background-color: #f0f0f0;
        color: rgb(76, 71, 73);
    }

    main {
        padding-top: 60px;
    }

    .logo-image {
        max-width: 100px;
    }

    .hero {
        flex-direction: column;
        padding: 80px 20px 40px;
        text-align: center;
        min-height: auto;
    }

    .hero-text {
        text-align: center;
        order: 2;
    }

    .hero-text h1 {
        font-size: 24px;
        line-height: 1.4;
        gap: 8px;
    }

    .hero-text .word {
        font-size: 24px;
    }

    .hero-text h1::after {
        display: none;
    }

    .hero-image {
        order: 1;
        margin-bottom: 20px;
    }

    .hero-image img {
        max-width: 100%;
        border-radius: 8px;
    }

    .solutions-why-choose {
        padding: 30px 15px;
    }

    .solutions-why-choose-content {
        flex-direction: column;
    }

    .our-solutions, .why-choose-us {
        padding: 20px;
    }

    .our-solutions h2, .why-choose-us h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .our-solutions p, .why-choose-us p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .mission-vision-values {
        padding: 30px 15px;
    }

    .mission-vision-values .container {
        flex-direction: column;
        gap: 20px;
    }

    .u-group {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 0;
    }

    .u-container-layout {
        padding: 20px;
    }

    .u-image {
        width: 80px;
    }

    .u-text h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .u-text p {
        font-size: 14px;
        line-height: 1.4;
    }

    .what-we-offer {
        padding: 30px 15px;
    }

    .what-we-offer h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .offer-row {
        flex-direction: column;
        gap: 30px;
    }

    .offer-item {
        width: 100%;
    }

    .image-container {
        max-width: 100%;
    }

    .offer-image {
        border-radius: 20px;
    }

    .offer-text {
        max-width: 90%;
        padding: 30px 15px 15px;
        border-radius: 20px;
    }

    .offer-text .number {
        top: -20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
        border-radius: 8px;
    }

    .offer-text h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .offer-text p {
        font-size: 12px;
        line-height: 1.5;
    }

    .contact-us {
        padding: 30px 15px;
    }

    .contact-us h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .contact-us form {
        max-width: 100%;
        gap: 15px;
    }

    .contact-us input,
    .contact-us textarea {
        padding: 12px;
        font-size: 14px;
        border-radius: 20px;
    }

    .contact-us textarea {
        height: 120px;
    }

    .contact-us button {
        padding: 8px 25px;
        font-size: 14px;
        border-radius: 20px;
    }

    footer {
        padding: 15px;
    }

    footer .container {
        flex-direction: column;
        gap: 10px;
    }

    footer p {
        font-size: 12px;
    }

    footer .social-links a {
        font-size: 20px;
        margin: 0 8px;
    }
}

/* Ajustes para pantallas grandes */
@media (min-width: 769px) {
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        padding-top: 0;
    }

    .nav-menu ul {
        flex-direction: row;
        gap: 2em;
    }

    .nav-menu ul li {
        border-bottom: none;
        padding: 0.6em 1em;
        border-radius: 100vw;
        position: relative;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0 0 0.5px 1.5px transparent;
        color: rgb(185, 207, 69);
    }

    .nav-menu ul li:hover {
        background-color: #f0f0f0;
        color: rgb(76, 71, 73);
    }

    .nav-menu ul li a {
        padding: 0;
        font-size: 16px;
        color: rgb(185, 207, 69);
    }
}

/* Estilos para el mensaje de éxito */
.form-message {
    display: none;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: rgb(185, 207, 69);
    border: 1px solid #ffffff;
    border-radius: 5px;
    color: #ffffff;
    font-size: 16px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.form-message.show {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

/* Animación de desvanecimiento para el mensaje */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animación de escala para el formulario */
.form-submitting {
    animation: scaleUp 0.3s ease-in-out;
}

@keyframes scaleUp {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Estilo para el <h2> de "Sobre nosotros" en mission-vision-values */
.mission-vision-values h2 {
    color: rgb(185, 207, 69);
    font-size: 26px;
}