:root {
    --black: #000000;
    --white: #ffffff;
    --blue: #153861;
    --gold: #f3b218;
    --gray: #f9f9f9;
    --nav-height: 80px;
    --blue-light: #004a8f;
    --default-background: #f2f2f2;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--black);
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--nav-height);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid #eee;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--blue);
}

.btn-contact {
    background: var(--black);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
}

/* Burger Icon */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 3000;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    transition: 0.3s;
}

/* --- HERO --- */
.hero {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-height));
    width: 100%;
    overflow: hidden;
    background-color: var(--default-background);
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    align-items: center;
    width: 100%;
}

.hero-text,
.hero-image {
    flex: 1;
    min-width: 350px;
    padding: 0 8%;
}

/* .hero-image img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
} */

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
    text-transform: uppercase;
}

.btn-learn {
    background: var(--black);
    color: var(--white) !important;
    padding: 12px 35px;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 400;
    font-weight: 700;
    display: inline-block;
    width: fit-content;
}

/* --- BANNER AZUL --- */
.hero-banner {
    background-color: var(--blue);
    background-image: url(../img/banner.avif);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 45px 20px;
    width: 100%;
}

.hero-banner p:first-child {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.hero-banner p span {
    color: var(--gold);
    font-weight: bold;
}

.hero-banner p:last-child {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 300;
}

/* --- ACCORDION SERVICES --- */
.section {
    padding: 100px 8%;
}

/* .accordion-container {
    max-width: 1200px;
    margin: 0 auto;
} */

.accordion-item {
    border-top: 1px solid #e0e0e0;
    transition: all 0.4s ease;
}

.accordion-item:last-child {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
    width: 100%;
    padding: 40px 0;
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: #aaa;
    transition: color 0.3s;
}

.accordion-header h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-left: 20px;
}

.accordion-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    padding-left: 70px;
    /* Alineado con el título */
}

.accordion-content p {
    padding-bottom: 40px;
    color: #444;
    font-size: 1.2rem;
    line-height: 1.6;
    /* max-width: 800px; */
}

/* State when active */
.accordion-item.active .accordion-content {
    max-height: 300px;
    /* Suficiente para el texto */
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    /* Efecto de X al abrir */
}

.accordion-item.active .accordion-header {
    color: var(--blue);
}

/* --- Tab projcets --- */
.tabs-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* Contenedor de los "botones" */
.tabs-header {
    display: flex;
}

.tab-button {
    flex: 1;
    /* Esto hace que cada uno mida exactamente el 50% */
    padding: 20px;
    border: none;
    outline: none;
    cursor: pointer;
    background: var(--blue);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

/* Estado del botón activo */
.tab-button.active {
    color: var(--gold);
    border-bottom: 4px solid var(--gold);
    background: var(--blue-light);
}

/* Contenedor del contenido */
.tabs-content {
    padding: 40px;
    min-height: 250px;
}

.project-panel {
    display: none;
    /* Ocultos por defecto */
    animation: fadeIn 0.5s ease;
}

.project-panel.active {
    display: block;
    /* Solo se muestra el activo */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 75%;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        display: none;
    }

    .nav-active {
        display: flex !important;
        transform: translateX(0%);
    }

    .burger {
        display: flex;
    }

    .hero {
        height: auto;
        min-height: calc(100vh - var(--nav-height));
    }

    .hero-text {
        padding: 60px 5%;
        text-align: center;
        align-items: center;
    }

    .hero-image {
        height: 40vh;
        min-width: 100%;
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Contenedor principal del footer */
.footer-main {
    background-color: var(--gray);
    padding: 80px 0 40px 0;
    border-top: 1px solid #e5e5e5;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Grid para separar logo de oficina */
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
}

/* Ajuste del Logo */
.footer-logo-img {
    width: 280px;
    /* Tamaño similar a la captura */
    height: auto;
    display: block;
}

/* Estilo de la oficina (lado derecho) */
.footer-info {
    min-width: 250px;
}

.office-title {
    font-weight: 900;
    font-size: 14px;
    /* Tamaño pequeño y elegante */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
    margin-bottom: 20px;
}

.office-content p {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 5px;
}

.office-content a {
    color: inherit;
    text-decoration: none;
}

/* Línea inferior y copyright */
.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #d1d1d1;
    text-align: left;
    /* Alineado a la izquierda para verse más moderno */
    font-size: 13px;
    color: #888;
}

/* Responsive: en móviles se centra todo */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-logo-img {
        width: 200px;
    }

    .footer-bottom {
        text-align: center;
        margin-top: 40px;
    }
}


/* Estilos específicos para posicionar las flechas a los lados */
.swiper-container-wrapper {
    position: relative;
    padding: 0 50px;
    /* Espacio para las flechas laterales */
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: #153861;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.swiper-button-prev-custom {
    left: 0;
}

.swiper-button-next-custom {
    right: 0;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background-color: #f3b218;
    color: #000;
}

.swiper-pagination-bullet-active {
    background: #f3b218 !important;
}

@media (max-width: 768px) {

    /* Ocultar los botones personalizados de Swiper */
    .swiper-button-prev-custom,
    .swiper-button-next-custom {
        display: none !important;
    }

    /* Reducir el padding lateral ya que no hay botones */
    .swiper-container-wrapper {
        padding: 0 10px;
    }

    .tabs-content {
        padding: 40px 0;
    }
}


/* --- ABOUT US PROFESSIONAL SECTION --- */
.about-section {
    padding: 0;
    /* Quitamos padding para que la imagen llegue a los bordes si es necesario */
    background-color: var(--white);
    overflow: hidden;
}

#about {
    background-color: var(--gray);
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 600px;
}

.about-text-side {
    flex: 1;
    padding: 80px 0;
    min-width: 350px;
}

.about-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--black);
}

.about-list {
    list-style: none;
}

.about-list li {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    color: #444;
}

/* El punto de la lista (bullet) */
.about-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.sub-list {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 12px;
}

.sub-list li {
    font-size: 1rem;
    margin-bottom: 5px;
}

.about-image-side {
    flex: 1;
    min-width: 400px;
    height: 600px;
    /* Altura fija para mantener consistencia */
}

.about-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Esto hace que la imagen llene el espacio sin deformarse */
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }

    .about-image-side {
        width: 100%;
        height: 350px;
        min-width: 100%;
    }

    .about-text-side {
        padding: 60px 5%;
    }

    .about-title {
        font-size: 2.2rem;
        text-align: center;
    }
}