@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;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
}

body {
    overflow-x: hidden;
    text-align: justify;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.5s ease;
}

.header.scrolled-up {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo img {
    height: 70px;
    transition: all 0.5s ease;
}

.header.scrolled-up .logo img {
    content: url("../assets/logo-black.png");
}

nav {
    display: flex;
    align-items: center;
    gap: 50px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.5s ease;
    text-align: left;
}

.header.scrolled-up nav a {
    color: #000;
}

.hover-underline {
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.5s ease;
    text-align: left;
}
  
.hover-underline::after,
.hover-underline::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #fff, #636363);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease-out;
}
  
.header.scrolled-up .hover-underline::after,
.header.scrolled-up .hover-underline::before {
    background: linear-gradient(to right, #000, #636363);
}

.hover-underline::before {
    top: -5px;
    transform-origin: left;
}
  
.hover-underline:hover::after,
.hover-underline:hover::before {
    transform: scaleX(1);
}

.cta-button {
    background-color: white;
    color: #000;
    padding: 12px 25px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.5s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.header.scrolled-up .cta-button {
    background-color: #000;
    color: #fff;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        0deg, 
        transparent, 
        transparent 30%, 
        rgba(192, 192, 192, 0.4)
    );
    transform: rotate(-45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.6);
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    background: url(../assets/nosotros.png) no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    width: 100%;
    width: 78%;
    display: flex;
    justify-content: space-between;
}

.hero-text {
    width: 45%;
    color: white;
}

.hero-text h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: left;
}

.hero-text p {
    font-size: 20px;
    line-height: 1.8;
    max-width: 800px;
    text-align: justify;
}

.consultar-btn {
    width: 260px;
    text-align: center;
    margin-top: 30px;
    background-color: white;
    color: #000;
    padding: 12px 25px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.5s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.consultar-btn:hover {
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.6);
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-30%);
    cursor: pointer;
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-30%);
    }
    40% {
        transform: translateY(-20px) translateX(-30%);
    }
    60% {
        transform: translateY(-10px) translateX(-30%);
    }
}

.scroll-down img {
    width: 50px;
    height: 50px;
}

/* SOBRE NOSOTROS */
.sobre-nosotros {
    display: flex;
    width: 100%;
    height: 100vh;
    background-color: #fff;
}

.left-nosotros {
    width: 50%;
    background-image: url('../assets/about-us.png');
    background-size: cover;
    background-position: center;
}

.right-nosotros {
    width: 50%;
    padding: 5% 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nosotros-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: left;
}

.nosotros-text p {
    font-size: 1.1rem;
    color: #000;
    line-height: 1.6;
    margin-bottom: 3rem;
    text-align: justify;
}

/* VISIÓN, MISIÓN Y VALORES */
.mision-vision {
    width: 100%;
    min-height: 100vh;
    padding: 100px 8%;
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
}

.mision-vision-container {
    display: flex;
    width: 100%;
    gap: 50px;
}

.left-mision-vision {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-mision-vision h2 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 30px;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: left;
}

.left-mision-vision h2 {
    font-size: 2rem;
    color: #000;
    margin-bottom: 30px;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: left;
}

.left-mision-vision p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: justify;
}

.right-valores {
    flex: 1;
    display: flex;
    align-items: center;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.valores-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.valor-img {
    position: relative;
    width: 100%;
    height: 100%;
}

.valor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.valor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    padding: 20px;
}

.valores-item:hover .valor-overlay {
    opacity: 1;
}

.valores-item:hover img {
    transform: scale(1.05);
}

/* OVERLAY POLITICAS DE PRIVACIDAD */
.privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.privacy-overlay.active {
    display: flex;
    opacity: 1;
}

.privacy-content {
    background-color: #fff;
    color: black;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.privacy-content h2 {
    color: #000;
    margin-bottom: 15px;
    text-align: center;
    font-size: 24px;
}

.privacy-content h3 {
    color: #000;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 18px;
    text-align: left;
}

.privacy-content p, .privacy-content li {
    color: #000;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 15px;
    text-align: justify;
}

.privacy-text {
    padding: 0 15px;
}

.update-date {
    text-align: center;
    font-style: italic;
    margin-bottom: 20px !important;
    color: #5f5f5f !important;
}

.privacy-list {
    padding-left: 20px;
    margin-bottom: 15px;
}

.privacy-list li {
    margin-bottom: 8px;
}

.privacy-content::-webkit-scrollbar {
    width: 8px;
}

.privacy-content::-webkit-scrollbar-track {
    background: #fff;
    border-radius: 10px;
}

.privacy-content::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 10px;
}

/* OVERLAY TÉRMINOS Y CONDICIONES */
.terms-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terms-overlay.active {
    display: flex;
    opacity: 1;
}

.terms-content {
    background-color: #fff;
    color: #000;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.terms-content h2 {
    color: #000;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

.terms-content h3 {
    color: #000;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 18px;
    text-align: left;
}

.terms-content h4 {
    color: #000;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 16px;
    text-align: left;
}

.terms-content p, .terms-content li {
    color: #000;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 15px;
    text-align: justify;
}

.terms-text {
    padding: 0 15px;
}

.terms-list {
    padding-left: 20px;
    margin-bottom: 15px;
}

.terms-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.terms-list li:before {
    position: absolute;
    left: 0;
    color: #ffffff;
}

.terms-content::-webkit-scrollbar {
    width: 8px;
}

.terms-content::-webkit-scrollbar-track {
    background: #fff;
    border-radius: 10px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 10px;
}

/* FOOTER */
.footer {
    width: 100%;
    background-color: #000;
    padding: 60px 8% 30px;
    box-sizing: border-box;
    color: white;
}

.footer-container {
    margin: 0 auto;
}

.footer-top {
    display: flex;
    gap: 300px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 1;
    max-width: 400px;
}

.footer-brand img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #cccccc;
    text-align: justify;
}

.footer-btn {
    background-color: white;
    color: #000;
    padding: 12px 25px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.5s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.footer-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.6);
}

.footer-links {
    flex: 2;
}

.footer-columns {
    display: flex;
    gap: 50px;
}

.footer-col {
    flex: 1;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: left;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cccccc;
    text-align: left;
}

.footer-col a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: white;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #333;
    margin: 20px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    font-size: 0.9rem;
    color: #999;
    text-align: left;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #cccccc;
    transform: translateY(-5px);
}

/* RESPONSIVE 1560px */
@media (max-width: 1560px) {
    .header {
        padding: 20px 70px;
    }
    .hero-content {
        max-width: 1300px;
    }
    .mision-vision {
        padding: 0 100px;
    }
    .contacto {
        padding: 50px 100px;
    }
    .contacto-container {
        gap: 40px;
    }
    .info-contacto {
        padding: 0;
    }
    .footer {
        padding: 50px 100px;
    }
    .footer-top {
        gap: 200px;
    }
    .footer-brand {
        max-width: 350px;
    }
    .footer-columns {
        gap: 40px;
    }
}

/* RESPONSIVE 1400px */
@media (max-width: 1400px) {
    .right-nosotros {
        padding: 20px 50px;
    }
    .right-nosotros p {
        margin-bottom: 30px;
    }
    .nosotros-numbers, .casos-exitosos, .colaboradores {
        margin: 0;
    }
    .nosotros-numbers p, .casos-exitosos p, .colaboradores p {
        margin: 10px;
    }
    .mision-vision {
        padding: 0 80px;
    }
    .mision-vision-container {
        gap: 50px;
    }
    .contacto {
        padding: 50px;
    }
    .contacto-container {
        gap: 30px;
    }
    .footer {
        padding: 50px 5%;
    }
    .footer-top {
        gap: 150px;
    }
    .footer-brand img {
        height: 70px;
    }
    .footer-columns {
        gap: 30px;
    }
}

@media (max-width: 1366px) {
    .header {
        padding: 20px 50px;
    }
    .hero-text h1 {
        font-size: 36px;
    }
    .hero-text p {
        font-size: 18px;
    }
    .hero-content {
        max-width: 1100px;
    }
}

/* RESPONSIVE 1290px */
@media (max-width: 1290px) {
    .mision-vision {
        padding: 0 50px;
    }
}

/* RESPONSIVE 1200px */
@media (max-width: 1200px) {
    .hero {
        height: 100vh;
    }
    .sobre-nosotros {
        flex-direction: column;
        height: auto;
        min-height: 70vh;
    }
    .left-nosotros {
        width: 100% !important;
        height: 400px;
        order: 1;
    }
    .right-nosotros {
        width: 100% !important;
        padding: 40px 5%;
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .nosotros-text {
        width: 100%;
        max-width: 800px;
    }
    .nosotros-text h2 {
        text-align: center !important;
        font-size: 2.2rem;
    }
    .nosotros-text p {
        text-align: center !important;
    }
    .nosotros-numbers,
    .casos-exitosos,
    .colaboradores {
        width: 28%;
        margin-bottom: 20px;
    }
    .nosotros-numbers:last-child,
    .casos-exitosos:last-child,
    .colaboradores:last-child {
        margin-right: 0;
    }
    .nosotros-numbers h2,
    .casos-exitosos h2,
    .colaboradores h2 {
        font-size: 2.5rem;
    }
    .nosotros-numbers p,
    .casos-exitosos p,
    .colaboradores p {
        font-size: 0.8rem;
    }
    .mision-vision {
        padding: 50px;
        min-height: auto;
    }
    .mision-vision-container {
        flex-direction: column;
        gap: 30px;
    }
    .left-mision-vision {
        order: 1;
        width: 100%;
        text-align: center;
    }
    .left-mision-vision h2 {
        text-align: center;
        font-size: 2.2rem;
    }
    .left-mision-vision p {
        text-align: center;
        margin-bottom: 30px;
    }
    .servicios-btn {
        width: 60%;
        margin: 0 auto;
    }
    .right-valores {
        order: 2;
        width: 100%;
    }
    .valores-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    .valores-item {
        aspect-ratio: 16/9;
    }
    .contacto {
        padding: 60px 5%;
    }
    .contacto-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .mapa-container {
        width: 100%;
        max-width: 1000px;
        order: 1;
    }
    .mapa {
        height: 500px;
    }
    .info-contacto {
        width: 100%;
        max-width: 800px;
        order: 2;
        padding: 0;
        text-align: center;
    }
    .info-contacto h2 {
        text-align: center;
        font-size: 2.2rem;
    }
    .subtitulo {
        text-align: center;
    }
    .contacto-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .contacto-item i {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 1.8rem;
    }
    .contacto-item h4,
    .contacto-item p {
        text-align: center;
    }
    .contacto-item div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer {
        padding: 40px 20px;
        text-align: center;
    }
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    .footer-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 600px;
        gap: 20px;
        margin: 0;
    }
    .footer-brand {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 15px;
    }
    .footer-brand img {
        height: 70px;
        margin-bottom: 15px;
    }
    .footer-brand p {
        text-align: center;
        margin-bottom: 25px;
        width: 100%;
    }
    .footer-btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .footer-links {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .footer-columns {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 500px;
        gap: 30px;
    }
    .footer-col {
        width: 100%;
        text-align: center;
    }
    .footer-col h3 {
        text-align: center;
        margin-bottom: 15px;
    }
    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    .footer-col li {
        text-align: center;
        width: 100%;
    }
    .footer-divider {
        width: 100%;
        margin: 30px 0;
    }
    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
    }
    .footer-bottom p {
        text-align: center;
    }
    .copyright {
        width: 100%;
        text-align: center;
        order: 1;
    }
    .social-icons {
        order: 2;
        justify-content: center;
        width: 100%;
    }
    .social-icon {
        margin: 0 10px;
    }
}

/* RESPONSIVE 1178px */
@media (max-width: 1178px) {
    .header {
        justify-content: center;
    }
    nav {
        display: none;
    }
    .hero {
        height: 100vh;
    }
    .hero-content {
        flex-direction: column;
        padding: 0 50px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .hero-text {
        text-align: center;
        margin-top: 50px;
    }
    .hero-text h1 {
        text-align: center;
    }
    .hero-text p {
        text-align: center;
    }
    .contact-form h2 {
        text-align: center;
    }
    .hero-text,
    .contact-form {
        width: 100%;
        max-width: 800px;
        margin-bottom: 30px;
    }
    .right-nosotros {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    nav {
        display: none;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 12px;
    }
    .hero-text h1 {
        font-size: 28px;
    }
    .hero-text p {
        font-size: 16px;
    }
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 0 30px;
    }
    .contact-form {
        padding: 20px;
    }
    .scroll-down img {
        width: 40px;
        height: 40px;
    }
    .left-nosotros {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        margin-top: 20px;
        font-size: 22px;
    }
    .hero-text p {
        font-size: 15px;
    }
    .contact-form h2 {
        font-size: 18px;
    }
    .submit-btn {
        padding: 12px 20px;
    }
    .nosotros-text h2 {
        font-size: 1.8rem !important;
    }
    .nosotros-text p {
        font-size: 1rem !important;
    }
}

@media (max-width: 380px) {
    .hero-text h1 {
        margin-top: 60px;
    }
}

@media (max-width: 350px) {
    .hero-text h1 {
        margin-top: 90px;
    }
}