@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for grid items */
.values-grid .animate-on-scroll,
.team-grid .animate-on-scroll,
.stats-container .animate-on-scroll {
    transition-delay: calc(var(--item-index) * 0.1s);
}
  
  #preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .loader {
    width: 50px;
    height: 50px;
    border: 3px solid #fff;
    border-radius: 50%;
    border-top: 3px solid #000;
    animation: spin 5s linear infinite;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
    

body {
    background-color: #000;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

.btn a {
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    color: #000;
}

nav {
    position: fixed;
    width: 100%;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
    align-items: center;
    z-index: 100;
}

nav.scrolled {
    backdrop-filter: blur(10px) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.menu-btn {
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: -0.5px;
    transition: all 0.1s ease-in-out;
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre el icono y el texto */
    color: white; /* Asegura que sea visible */
}

.menu-btn svg {
    width: 20px; 
    height: 20px;
    fill: none;
    stroke: white;
}

.menu-btn:hover {
    opacity: 0.7;
    transition: all 0.1s ease-in-out;
}

.logo img {
    height: 45px;
    width: auto;
}

.hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url("../images/banner_transparente.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  
  .hero-content {
    width: 100%;
    height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .welcome-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    opacity: 0; 
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: fadeInOut 7s infinite;
    white-space: nowrap;
  }
  
  .animated-text-container {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
  }
  
  .text-left,
  .text-right {
    position: absolute;
    font-size: 2.5rem;
    font-weight: 350;
    letter-spacing: -1px;
    opacity: 0;
    width: 50%;
    max-width: 500px;
  }
  
  .text-left {
    left: 10%;
    top: 30%;
    text-align: left;
    animation: slideFromLeft 7s infinite;
  }
  
  .text-right {
    right: 10%;
    bottom: 30%;
    text-align: right;
    animation: slideFromRight 7s infinite;
  }
  
  @keyframes fadeInOut {
    0%,
    100% {
      opacity: 0;
      transform: translate(-50%, -30%);
    }
    10%,
    40% {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
    50%,
    90% {
      opacity: 0;
      transform: translate(-50%, -70%);
    }
  }
  
  @keyframes slideFromLeft {
    0%,
    50%,
    100% {
      opacity: 0;
      transform: translateX(-50px);
    }
    60%,
    90% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes slideFromRight {
    0%,
    60%,
    100% {
      opacity: 0;
      transform: translateX(50px);
    }
    70%,
    90% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @media (max-width: 768px) {
    .welcome-title {
      font-size: 2rem;
    }
  
    .text-left,
    .text-right {
      font-size: 1.5rem !important;
      width: 80%;
    }
  
    .text-left {
      left: 5%;
      top: 25%;
    }
  
    .text-right {
      right: 5%;
      bottom: 25%;
    }
  }   

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes moveLines {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100px 100px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
}

/* Menú de pantalla completa */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    z-index: 1000;
}

.fullscreen-menu.active {
    visibility: visible;
    opacity: 1;
}

.menu-left {
    width: 50%;
    height: 100%;
    background: #000;
    padding: 2rem;
    position: relative;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out;
}

.fullscreen-menu.active .menu-left {
    transform: translateX(0);
}

.menu-right {
    width: 50%;
    height: 100%;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    background-color: #000;
}

.fullscreen-menu.active .menu-right {
    transform: translateX(0);
}

.menu-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.close-menu {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.menu-items {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
    padding-left: 4rem;
}

.menu-items li {
    margin: 1rem 0;
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.fullscreen-menu.active .menu-items li:hover {
    transform: scale(1.1);
    transition: all 0.2s ease-in;
}

.fullscreen-menu.active .menu-items li {
    transform: translateX(0);
    opacity: 1;
    transform: scale(1.0);
    margin-top: 5px;
    line-height: 1;
}

.menu-items li:nth-child(1) { transition-delay: 0.1s; }
.menu-items li:nth-child(2) { transition-delay: 0.2s; }
.menu-items li:nth-child(3) { transition-delay: 0.3s; }
.menu-items li:nth-child(4) { transition-delay: 0.4s; }
.menu-items li:nth-child(5) { transition-delay: 0.5s; }
.menu-items li:nth-child(6) { transition-delay: 0.6s; }

.menu-items a {
    color: white;
    text-decoration: none;
    font-size: 3rem !important;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -2px;
    transition: color 0.3s ease;
}

.menu-items a:hover {
    color: #666;
}

/* Intro */
.intro-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 2rem;
}

.intro-content {
    max-width: 1200px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.intro-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-title {
    color: #000;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -3px;
}

.intro-subtitle {
    color: #666;
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 350;
    letter-spacing: -0.5px;
    margin-bottom: 3rem;
}

.intro-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .video-popup.active {
    opacity: 1;
    visibility: visible;
  }
  
  .video-popup-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
  }
  
  .close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
  }
  
  .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
  }
  
  .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

.btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600 !important;
}

.btn-primary {
    background-color: #000;
    color: white;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #000;
}

.btn-secondary:hover {
    background-color: #e5e5e5;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .intro-title {
        font-size: 2.5rem;
    }
    
    .intro-subtitle {
        font-size: 1.1rem;
    }
    
    .intro-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* CTA */

.cta-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: url('../images/cta.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; 
    padding: 2rem;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.cta-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -3px;
}

.cta-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 350;
    letter-spacing: -0.5px;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.btn-light {
    background-color: white;
    color: black;
    padding: 1rem 3rem;
}

.btn-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.about-section {
    min-height: 100vh;
    display: flex;
    background-color: #000;
}

.about-image {
    width: 50%;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    width: 50%;
    padding: 4rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: black;
    color: white;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -3px;
    line-height: 1.2;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 350;
    letter-spacing: -0.5px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }
    
    .about-section {
        flex-direction: column;
    }
    
    .about-image,
    .about-content {
        width: 100%;
    }
    
    .about-content {
        padding: 3rem 2rem;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
}

/* Servicios */
.services-section {
    padding: 6rem 2rem;
    background-color: #fff;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-container h2 {
    color: #000;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5rem;
    letter-spacing: -3px;
    line-height: 1.2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px) !important;
}

.service-card img {
    width: 100%;
    height: 100%;
    transform: scale(1.0);
    transition: all 0.5s ease-in-out;
    object-fit: cover;
}

.service-card:hover img {
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.service-overlay h3 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -1.3px;
    margin: 0;
}

/* Obras destacadas */
.projects-section {
    min-height: 100vh;
    background: black;
    position: relative;
    overflow: hidden;
    cursor: none; /* Ocultar cursor default */
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 1.2;
    text-align: center;
}

.projects-section .section-title,
.testimonials-section .section-title {
    color: #000;
    margin-top: 6rem;
}

.projects-section .section-title {
    color: white;
}

.carousel-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.carousel {
    display: flex;
    animation: scroll 20s linear infinite;
}

.carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel-item {
    min-width: 300px;
    height: 70vh;
    margin: 0 1rem;
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.custom-cursor {
    width: 70px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    position: fixed;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    letter-spacing: 0px;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.projects-section:hover .custom-cursor {
    opacity: 1;
}

/* Testimonios */
.testimonials-section {
    min-height: 100vh;
    background-color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.testimonials-wrapper {
    position: relative;
    height: 200px;
    margin: 4rem 0;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 350;
    letter-spacing: -0.5px;
    opacity: 0.8;
    color: #666;
    margin-bottom: 3rem;
    text-align: center;
}

.testimonial-author {
    text-align: center;
}

.author-name {
    display: block;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.author-company {
    color: #666;
    font-size: 1rem;
}

.testimonial-controls {
    position: absolute;
    bottom: 5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.control-indicators {
    display: flex;
    gap: 0.75rem;
}

.indicator {
    width: 2rem;
    height: 2px;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #000;
    width: 3rem;
}

@media (max-width: 768px) {
    .testimonial-text {
        font-size: 1.75rem;
    }

    .testimonials-wrapper {
        height: 500px;
    }
}

/* Footer */
.footer {
    background-color: #000;
    padding: 4rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-right {
    text-align: right;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-copyright {
    color: #666;
    font-size: 0.8rem;
}

.footer-copyright a {
    color: #036db7;
    font-weight: bold;
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 1rem;
    }
}


@media (max-width: 1200px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 10px;
    }
}

/* Menu adjustments */
.menu-items {
    padding-left: 2rem;
}

.menu-items li {
    margin: 0.5rem 0;
}

.menu-items a {
    font-size: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    h2 {
        letter-spacing: 0px !important;
        font-weight: 800 !important;
        font-size: 2.5rem !important;
    }

    h3 {
        letter-spacing: 0px !important;
    }

    p {
        letter-spacing: 0px !important;
        font-weight: 400 !important;
        font-size: 1.3rem !important;
    }

    .hero-content {
        padding: 1rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .text-left,
    .text-right {
        font-size: 1.5rem;
        width: 80%;
    }

    .text-left {
        left: 5%;
        top: 25%;
    }

    .text-right {
        right: 5%;
        bottom: 25%;
    }

    .intro-title,
    .cta-title,
    .about-title,
    .section-title {
        font-size: 2.5rem;
    }

    .intro-subtitle,
    .cta-subtitle,
    .about-text {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .carousel-item {
        min-width: 250px;
        height: 50vh;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .footer-content {
        display: flex;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        display: flex; /* Cambiado para mostrar los elementos en línea */
        margin-top: 1rem;
    }

    .footer-links a {
        display: block; /* Puedes mantener esto si deseas que los enlaces sean bloques */
        margin: 0 1rem; /* Ajustado para espacio horizontal entre los enlaces */
    }

    /* Mobile menu styles */
    .menu-btn {
        display: flex;
        align-items: center;
    }

    .fullscreen-menu {
        flex-direction: column;
    }

    .menu-left,
    .menu-right {
        width: 100%;
    }

    .menu-right {
        display: none;
    }

    .menu-items {
        padding-left: 0;
        align-items: center;
    }

    .menu-items a {
        font-size: 2rem;
    }
}