/* ==========================================================================
   REKOSOL - Stylesheet (Exact Match)
   ========================================================================== */

:root {
    --gold: #CBA052;
    --dark-blue: #0A192F;
    --black: #000000;
    --white: #FFFFFF;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --font-main: 'Inter', sans-serif;

    --section-padding: 80px 0;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    overflow-x: hidden;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-blue);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.subtitle {
    display: inline-block;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--gold);
    margin: 15px auto 30px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--gold);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    border: 2px solid var(--gold);
    transition: 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--gold);
}

/* ==========================================================================
   Header (White/Marble Texture layout)
   ========================================================================== */
.main-header {
    position: relative;
    width: 100%;
    background-color: var(--white);
    background-image: url('../images/crumpled_bg.jpg');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    height: 100px;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
    mix-blend-mode: multiply;
    /* Removes the white background from the logo */
}

/* Navigation Links */
.main-nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--black);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.main-nav a.active {
    background-color: var(--gold);
    color: var(--white);
    padding: 5px 15px;
}

.main-nav a:not(.active):hover {
    color: var(--gold);
}

/* Search Box */
.search-container {
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    border: 2px solid var(--black);
    padding: 5px 15px;
    background-color: transparent;
    width: 200px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-weight: 700;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--black);
    width: 100%;
}

.search-box input::placeholder {
    color: var(--black);
    opacity: 1;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--black);
    font-size: 1rem;
}

/* ==========================================================================
   Hero Carousel
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #000;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Dark overlay for the image */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    /* Removido totalmente para mostrar la imagen pura */
    z-index: 1;
}

/* .clients-section .hero-overlay removido para mostrar imagen original */

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-title {
    color: var(--white);
    font-family: 'Arial Black', 'Inter', sans-serif;
    font-size: clamp(6rem, 14vw, 12rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: scaleX(1.05);
    /* Makes the text slightly wider like the mockup */
}

.hero-subtitle-box {
    border: 2px solid var(--white);
    padding: 10px 40px;
    display: inline-block;
    background-color: transparent;
}

.hero-subtitle-box p {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    margin: 0;
}

.hero-subtitle-box strong {
    font-weight: 900;
}

/* Swiper Overrides for Hero */
.hero-prev,
.hero-next {
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
}

.hero-prev:hover,
.hero-next:hover {
    color: rgba(255, 255, 255, 0.8);
}

.hero-prev::after,
.hero-next::after {
    display: none;
    /* Hide default swiper arrows */
}

.hero-prev i,
.hero-next i {
    font-size: 4rem;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--white);
}

/* ==========================================================================
   Nosotros Section
   ========================================================================== */
.nosotros-section {
    padding: 100px 0;
    background-color: #ffffff;
    background-image: url('../images/crumpled_bg.jpg');
    background-size: cover;
    background-position: center;
}

.section-pill {
    display: inline-block;
    border: 1px solid var(--black);
    padding: 8px 60px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.nosotros-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--black);
    font-weight: 500;
}

.nosotros-text strong {
    font-weight: 900;
}

/* ==========================================================================
   Clients Section (Confiaron en Nosotros)
   ========================================================================== */
.clients-section {
    position: relative;
    padding: 50px 0;
    /* Reduced padding to make the section thinner */
    overflow: hidden;
}

.clients-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.clients-section .hero-overlay {
    z-index: 1;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.white-pill {
    border-color: var(--white);
    color: var(--white);
    margin-bottom: 30px;
    /* Reduced margin so logos are closer to title */
}

.clients-swiper {
    padding-bottom: 20px;
    /* Space for pagination */
}

.clients-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.client-logo:hover {
    opacity: 1;
}

.client-logo h2 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}

.client-logo small {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Swiper Overrides for Clients */
.clients-prev,
.clients-next {
    color: rgba(255, 255, 255, 0.4);
}

.clients-prev:hover,
.clients-next:hover {
    color: var(--white);
}

.clients-prev::after,
.clients-next::after {
    display: none;
}

.clients-prev i,
.clients-next i {
    font-size: 3rem;
}

.clients-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

.clients-pagination .swiper-pagination-bullet-active {
    background: var(--white);
}

/* ==========================================================================
   Lideramos Section
   ========================================================================== */
.lideramos-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center bottom; /* Shift image content upwards to show the bottom part with text */
    overflow: hidden;
}

.lideramos-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.lideramos-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    position: relative;
    transform: translateY(-40px); /* Shift text content upwards away from the bottom edge */
}

.lideramos-logo {
    width: 130px; /* Make logo smaller as in the example */
    margin-bottom: 15px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

.lideramos-section h2 {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 25px;
    text-transform: capitalize;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lideramos-subtitle-box {
    border: 2px solid var(--white);
    padding: 10px 40px;
    border-radius: 50px;
    display: inline-block;
    background-color: transparent;
}

.lideramos-subtitle-box p {
    color: var(--white);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 400;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Clearfix for float */
.lideramos-section .container::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   Impulsar Proyectos Section
   ========================================================================== */
.impulsar-section {
    padding: 0;
    background-color: #ffffff;
    overflow: hidden;
}

.impulsar-layout {
    display: flex;
    min-height: 70vh;
}

.impulsar-text-col {
    flex: 1.4;
    padding: 80px 10%;
    background-image: url('../images/crumpled_bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.impulsar-divider {
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 100%;
    background-color: var(--gold);
    z-index: 2;
}

.impulsar-lead {
    font-size: 1.3rem;
    color: var(--black);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.impulsar-lead strong {
    font-weight: 800;
}

.impulsar-list {
    margin-bottom: 40px;
}

.impulsar-list li {
    background-color: #00467f;
    color: var(--white);
    padding: 12px 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    width: fit-content;
    border-radius: 2px;
}

.impulsar-list li strong {
    font-weight: 800;
}

.impulsar-footer {
    font-size: 1.15rem;
    color: var(--black);
    line-height: 1.6;
    max-width: 600px;
}

.impulsar-footer strong {
    font-weight: 800;
}

.impulsar-img-col {
    flex: 1;
    position: relative;
}

.cable-car-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Services Hero Banner & Section
   ========================================================================== */
.servicios-banner-section {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

@media (max-width: 768px) {
    .servicios-banner-section {
        height: 200px;
    }
}

.services-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background-image: url('../images/crumpled_bg.jpg');
    background-size: cover;
    background-position: center;
}

.services-swiper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 50px 50px;
    position: relative;
}

.service-card {
    position: relative;
    height: 500px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.service-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .service-card-image img {
    transform: scale(1.08);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    z-index: 2;
    text-align: center;
}

.service-card-title-top {
    color: var(--white);
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.service-card-title-main {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.service-card-line {
    width: 160px;
    height: 3px;
    background-color: var(--white);
    margin: 0 auto;
    opacity: 0.8;
}

/* Swiper navigation positioning for the new layout */
.services-prev,
.services-next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 70, 127, 0.1);
    border: 1px solid rgba(0, 70, 127, 0.3);
    border-radius: 50%;
    color: #00467f !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.services-prev:hover,
.services-next:hover {
    background-color: #00467f;
    border-color: #00467f;
    color: var(--white) !important;
}

.services-prev {
    left: 10px;
}

.services-next {
    right: 10px;
}

.services-prev::after,
.services-next::after {
    display: none;
}

.services-pagination .swiper-pagination-bullet {
    background: rgba(0, 70, 127, 0.3);
    opacity: 1;
}

.services-pagination .swiper-pagination-bullet-active {
    background: #00467f;
    width: 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Excelencia Section
   ========================================================================== */
.excelencia-section {
    background-color: #ffffff;
    background-image: url('../images/crumpled_bg.jpg');
    background-size: cover;
    background-position: center;
}

.excelencia-layout {
    display: flex;
    min-height: 600px;
}

.excelencia-img-col {
    flex: 1;
    background-size: cover;
    background-position: center;
}

.excelencia-text-col {
    flex: 1;
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.excelencia-title-box {
    background-color: #00467f;
    padding: 20px 40px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 600px;
}

.excelencia-title-box h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
}

.excelencia-lead {
    font-size: 1.4rem;
    color: var(--black);
    margin-bottom: 40px;
    max-width: 600px;
}

.excelencia-lead strong {
    font-weight: 800;
}

.excelencia-desc {
    font-size: 1.15rem;
    color: var(--black);
    line-height: 1.6;
    max-width: 600px;
}

.excelencia-desc strong {
    font-weight: 800;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    position: relative;
    background-color: #050d18;
    color: #a0aabf;
    padding-top: 80px;
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: bottom;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 13, 24, 0.95);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-top h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-top h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--gold);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #a0aabf;
}

.footer-links ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--gold);
    margin-top: 5px;
    margin-right: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--gold);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .search-container {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }

    .nosotros-text {
        font-size: 1.1rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* Clients Section */
.clients-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    color: white;
}

.clients-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.client-logo-item {
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.client-img-white {
    height: 180px;
    width: 100%;
    transform: scale(1.4);
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.client-logo-item:hover .client-img-white {
    opacity: 1;
    transform: scale(1.5);
}

.client-name-overlay {
    margin-top: 15px;
}

.client-name-overlay h6 {
    font-weight: 700;
    margin-bottom: 2px;
}

.client-name-overlay small {
    opacity: 0.7;
    font-size: 0.8rem;
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-section {
    position: relative;
    padding: 0;
    overflow: hidden;
    min-height: 100vh;
}

.portfolio-swiper {
    width: 100%;
    height: 100vh;
}

.portfolio-full-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 80, 0.4);
    z-index: 1;
}

.portfolio-overlay-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.portfolio-overlay-text h3 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    margin-bottom: -10px;
    color: var(--white);
}

.portfolio-overlay-text h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    color: var(--white);
    margin: 0;
}

.portfolio-prev,
.portfolio-next {
    color: rgba(255, 255, 255, 0.4) !important;
    transition: 0.3s;
    z-index: 10;
    width: 60px;
    height: 60px;
}

.portfolio-prev::after,
.portfolio-next::after {
    display: none;
    /* Hide default swiper chevron */
}

.portfolio-prev i,
.portfolio-next i {
    font-size: 4rem;
    /* Huge solid triangles */
}

.portfolio-prev:hover,
.portfolio-next:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.portfolio-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
    opacity: 1;
}

.portfolio-pagination .swiper-pagination-bullet-active {
    background: var(--white);
}

/* ==========================================================================
   Equipment Section (Second Slider)
   ========================================================================== */
.equipment-section {
    position: relative;
    padding: 0;
    overflow: hidden;
    min-height: 100vh;
}

.equipment-swiper {
    width: 100%;
    height: 100vh;
}

.equipment-prev,
.equipment-next {
    color: rgba(255, 255, 255, 0.4) !important;
    transition: 0.3s;
    z-index: 10;
    width: 60px;
    height: 60px;
}

.equipment-prev::after,
.equipment-next::after {
    display: none;
    /* Hide default swiper chevron */
}

.equipment-prev i,
.equipment-next i {
    font-size: 4rem;
    /* Huge solid triangles */
}

.equipment-prev:hover,
.equipment-next:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.equipment-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
    opacity: 1;
}

.equipment-pagination .swiper-pagination-bullet-active {
    background: var(--white);
}

/* ==========================================================================
   Minibar Section
   ========================================================================== */
.minibar-section {
    background-image: url('../images/crumpled_bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.minibar-pill {
    display: inline-block;
    border: 3px solid #00467f;
    color: #00467f;
    padding: 10px 40px;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 500;
}

.minibar-pill strong {
    font-weight: 900;
}