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

:root {
    --primary-color: #FFD700; /* Amarillo */
    --secondary-color: #000000; /* Negro */
    --background-color: #000000; /* Negro */
    --text-color: #FFFFFF; /* Blanco para texto */
    --text-color-secondary: #FFD700; /* Amarillo para texto secundario */
    --card-bg: #1a1a1a; /* Fondo de tarjetas oscuro */
    --header-bg: rgba(0, 0, 0, 0.0); /* Fondo del header negro con 90% de opacidad */
    --footer-bg: #000000; /* Fondo del footer negro */
    --button-bg: #FFD700; /* Fondo de botones amarillo */
    --button-text: #000000; /* Texto de botones negro */
    --button-hover: #FFC107; /* Amarillo más claro al pasar el mouse */
    --nav-link-color: #FFFFFF;
    --nav-link-hover: #FFD700;
    --form-bg: #1a1a1a;
    --form-border: #333;
    --form-text: #FFFFFF;
    --hero-text: #FFFFFF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

footer .container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background: var(--button-bg);
    color: var(--button-text);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--button-hover);
}

/* Header Styles */
header.header {
    background: transparent;
    position: fixed;
    width: 100%;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.5s ease;
    padding: 0px 0;
    margin: 0;
    border: none;
}

header.header.scrolled {
    background: rgba(0, 0, 0, 0.7) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 80px;
    padding: 0 5px 0 20px; /* Reducir padding derecho */
    width: 100%;
    max-width: 100%;
}

.logo {
    position: absolute;
    bottom: -180px; /* Ajustar posición vertical */
    left: 20px;
    z-index: 1001;
    margin-right: auto; /* Empuja el menú a la derecha */
}

.logo-img {
    height: 350px; /* Reducir altura del logo */
    width: auto;
    max-width: 450px; /* Reducir ancho máximo */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.logo span {
    color: var(--secondary-color);
}

nav {
    margin-left: auto;
    padding-right: 0; /* Eliminar cualquier padding derecho */
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3px; /* Reducir aún más el espacio entre elementos */
    margin: 0;
    padding: 0 10px 0 0; /* Solo padding derecho pequeño */
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

nav ul li {
    position: relative;
    overflow: visible;
}

/* Variables de animación */
:root {
    --cubic-bezier: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --color-primary: #ffd700;
    --color-secondary: #ffc107;
    --text-color: #fffafa;
}

nav ul li {
    position: relative;
    overflow: visible;
    margin: 0 5px;
}

nav ul li a {
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    border: 0;
    position: relative;
    letter-spacing: 0.3px;
    padding: 8px 10px; /* Reducir padding horizontal */
    font-size: 0.65rem;
    background: transparent;
    outline: none;
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    transition: all 0.5s var(--cubic-bezier) 0.15s;
    display: inline-block;
    z-index: 1;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap; /* Evitar saltos de línea */
}

nav ul li a {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
    z-index: -1;
}

nav ul li a:hover {
    color: #000 !important;
}

nav ul li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}



/* Estado activo */
nav ul li a.active {
    color: #fff;
    background-color: #000;
}

nav ul li a.active::before,
nav ul li a.active::after {
    display: none;
}

/* Animaciones */
@keyframes topAnimation {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(0, 1.5rem);
    }
}

@keyframes bottomAnimation {
    from {
        transform: translate(-6rem, 0);
    }
    to {
        transform: translate(0, 0);
    }
}

/* Ajustes responsivos */
@media (min-width: 768px) {
    nav ul li a {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav ul {
        gap: 8px;
    }
    
    nav ul li a {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--hero-text);
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Capa semitransparente para mejorar la legibilidad */
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
}

/* Services Section */
.services {
    position: relative;
    padding: 100px 0;
    background-color: var(--background-color);
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0) 100%);
    filter: blur(3px);
    z-index: 1;
    pointer-events: none;
}

.services-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.services-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.services-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.services .container {
    position: relative;
    z-index: 1;
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
}

/* Estilos para el grid de servicios */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 50px auto 0;
    position: relative;
    z-index: 2;
    perspective: 1000px;
    max-width: 1200px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.flip-card {
    flex: 0 0 350px;
    margin-bottom: 30px;
}

/* Asegurar que las tarjetas no se estiren */
.flip-card-inner {
    height: 100%;
}

/* Ajuste para pantallas medianas */
@media (max-width: 1200px) {
    .services-grid {
        max-width: 900px;
    }
    
    .flip-card {
        flex: 0 0 280px;
    }
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
    .flip-card {
        flex: 0 0 100%;
        max-width: 400px;
        margin: 0 auto 30px;
    }
}

/* Estilos base para las tarjetas flip */
.flip-card {
    background: transparent;
    perspective: 1000px;
    height: 400px;
    cursor: pointer;
    position: relative;
    border-radius: 15px;
    width: 100%;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 15px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Estilos para el frente y reverso de las tarjetas */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Estilos específicos para el frente de la tarjeta */
.flip-card-front {
    background: rgba(255, 215, 0, 0.36); /* Fondo amarillo más translúcido */
    color: #1a1a1a;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: rotateY(0deg);
    z-index: 2;
    border: none;
    padding: 0;
    transition: background-color 0.3s ease; /* Transición suave para el cambio de opacidad */
}

.flip-card-front:hover {
    background: rgba(255, 215, 0, 0.5); /* Un poco más opaco al hacer hover */
}

/* Contenido de la tarjeta */
.card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: transparent;
    border: none;
    box-sizing: border-box;
}

/* Estilos para el modal de proyectos */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: #000;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--primary-color);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #fff;
}

.modal-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-description, .modal-media {
    padding: 20px;
}

.modal-description {
    flex: 1;
    overflow-y: auto;
    color: #fff;
}

.modal-media {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    min-height: 300px;
}

#modal-video-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-video-container video,
#modal-video-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Efecto de máquina de escribir */
.typing-effect {
    min-height: 100px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.typing-effect::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Media Queries para diseño responsivo */
@media (min-width: 768px) {
    .modal-container {
        flex-direction: row;
    }
    
    .modal-description, .modal-media {
        width: 50%;
        padding: 30px;
    }
    
    #modal-video-container video,
    #modal-video-container img {
        max-height: 500px;
    }
}

/* Se eliminó el efecto de brillo al pasar el mouse */

/* Estilos para la parte trasera de la tarjeta */
.flip-card-back {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
    transform: rotateY(180deg);
    color: #fff;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    padding: 0;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Contenido de la parte trasera */
.flip-card-back .card-content {
    align-items: flex-start;
    text-align: left;
    padding: 25px;
    background: transparent;
    border: none;
    box-sizing: border-box;
}

/* Asegurar que todo el contenido de la tarjeta esté en la misma capa */
.flip-card-back * {
    position: relative;
    z-index: 2;
}

/* Estilos para los íconos */
.flip-card i {
    font-size: 60px;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.flip-card:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
}

/* Estilos para los títulos */
.flip-card h3 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.flip-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.flip-card:hover h3::after {
    width: 80px;
    background: rgba(0, 0, 0, 0.5);
}

/* Estilos específicos para el reverso */
.flip-card-back h3 {
    color: #FFD700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.flip-card-back h3::after {
    background: rgba(255, 215, 0, 0.5);
}

.flip-card-back:hover h3::after {
    background: #FFD700;
}

/* Estilos para el indicador de hover */
.flip-hover-indicator {
    margin-top: 20px;
    color: #1a1a1a;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.flip-hover-indicator i {
    font-size: 1rem;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.flip-card:hover .flip-hover-indicator {
    opacity: 1;
    transform: translateY(5px);
    color: #000;
}

.flip-card:hover .flip-hover-indicator i {
    transform: translateX(5px);
}

/* Estilos específicos para el indicador en el reverso */
.flip-card-back .flip-hover-indicator {
    color: #FFD700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.flip-card-back:hover .flip-hover-indicator {
    color: #fff;
}

/* Estilos para el contenido de la parte trasera */
.flip-card-back p {
    color: #f0f0f0;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.flip-card-back ul {
    text-align: left;
    width: 100%;
    padding: 0 15px;
    margin: 0;
    list-style: none;
}

.flip-card-back ul li {
    color: #f0f0f0;
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
    font-size: 0.9rem;
    line-height: 1.5;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.flip-card-back ul li::before {
    content: '→';
    color: #FFD700;
    position: absolute;
    left: 0;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.flip-card-back ul li:hover::before {
    transform: translateX(5px);
    color: #fff;
}

/* Animaciones */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Se eliminaron las animaciones de flotación de las tarjetas */

/* Projects Section */
/* Contenedor de partículas que abarca proyectos y clientes */
#particles-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.97));
}

/* Asegurar que el canvas de partículas ocupe toda la sección */
#particles-container > canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Asegurar que el canvas de partículas ocupe toda la sección */
#particles-container > canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Asegurar que las secciones dentro del contenedor tengan posición relativa */
#particles-container > section {
    position: relative;
    z-index: 2;
}

#particles-container > section {
    position: relative;
    z-index: 2;
}

/* Ajustes para la sección de proyectos */
.projects {
    padding: 100px 0;
    margin: 0;
    width: 100%;
    min-height: 100vh;
    background: transparent;
}

.projects-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.projects h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Estilos base de la tarjeta */
.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: transparent;
    height: 100%;
    min-height: 320px;
    z-index: 1;
    cursor: pointer;
    margin: 0;
    will-change: transform;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.project-info {
    padding: 20px 15px 15px 15px;
    color: #e0e0e0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin: 0;
}

/* Efecto hover sutil */
.project-card.hover-effect {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 5; /* Asegura que la tarjeta hover esté sobre las demás */
}

.project-card.hover-effect .card-content {
    background: rgba(30, 30, 35, 0.9);
    border: 1px solid var(--primary-color);
}

/* Overlay completamente desactivado */
.overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.card-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    border: none;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.project-description {
    padding: 20px;
    text-align: left;
    color: #e0e0e0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 15px;
    line-height: 1.8;
}

.project-description h3 {
    color: var(--primary-color);
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 600;
    padding: 0;
}

@media (min-width: 1024px) {
    .card-expanded {
        flex-direction: row; /* Cambio a disposición horizontal */
    }

    .project-video {
        width: 55%; /* Más espacio para el video */
        height: auto;
        min-height: 100%;
    }

    .project-description {
        width: 45%; /* Espacio para texto */
        max-height: 100%;
        overflow-y: auto;
        padding: 30px;
    }
}

/* Efecto hover */
.projects-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 100%;
    padding: 15px 0;
}

.project-card {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.project-card:hover .card-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.3);
}

/* Estilos responsivos */
@media (max-width: 1200px) {
    .card-expanded {
        width: 95vw;
        max-width: 95vw;
        max-height: 90vh;
    }

    .expanded-content {
        flex-direction: column;
    }

    .project-video {
        width: 100% !important;
        height: 40vh;
        min-height: 40vh;
        max-height: 50vh;
    }

    .project-video video {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Asegurar que el video se vea completo */
    }

    .project-description {
        width: 100% !important;
        max-height: 50vh;
        padding: 25px;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .card-expanded {
        width: 98vw;
        max-height: 95vh;
    }

    .project-video {
        height: 35vh;
        min-height: 35vh;
    }

    .project-description {
        padding: 20px;
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .card-expanded {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .project-video {
        height: 30vh;
        min-height: 30vh;
    }
}

/* Asegurar que el video se reproduzca al hacer hover */
.project-card:hover video {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Ajustes para el texto de la tarjeta */
.project-info {
    padding: 25px;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.project-info h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.project-info p {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

/* Estilos para el botón de ver más detalles */
.view-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    background: transparent;
    color: #FFD700;
    border: none;
    border-radius: 0;
    padding: 10px 0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 15px 0 0 auto; /* Alinea a la derecha con margen superior */
    width: auto;
    text-decoration: none;
    position: relative;
}

.view-more-btn i {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-more-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

.view-more-btn:hover i {
    transform: translateX(5px);
}

/* Asegurar que el contenedor de la tarjeta tenga display flex y dirección columna */
.project-card .card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px; /* Añadir padding al contenedor de la tarjeta */
}

/* Asegurar que el botón se alinee al final de la tarjeta */
.project-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0 10px 10px; /* Ajustar el padding interno */
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0;
    display: block;
    pointer-events: none; /* Evita que la imagen interfiera con los eventos del mouse */
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    border: none;
}

/* Estilos específicos para imágenes verticales */
/* Imagen de Sistemas Inteligentes de Transporte */
.project-card .vertical-image {
    object-position: center 100%; /* Muestra la parte inferior de la imagen */
}

/* Imagen de Iluminación de Túnel */
.project-card .tunnel-image {
    object-position: center 70%; /* Ajusta este valor según sea necesario para esta imagen */
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
    background: transparent;
    transition: all 0.3s ease;
}


.project-info h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 10px;
}

.project-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.project-card:hover .project-info h3::after {
    width: 80px;
}

.project-info p {
    margin: 15px 0 0;
    color: #f0f0f0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Particle Canvas */
#particles-container {
    position: relative;
    width: 100%;
    z-index: 1;
    overflow: hidden;
}

#particles-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
    min-width: 100%;
    min-height: 100%;
}

/* Clientes Section */
.clientes {
    padding: 30px 0 40px; /* Reducido el padding superior e inferior */
    background: transparent;
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.clientes h2 {
    text-align: center;
    margin: 0 auto 8px; /* Reducido el margen inferior */
    color: var(--primary-color);
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 3px; /* Reducido el padding inferior */
    max-width: 90%;
}

.clientes h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: 20%;
}

.section-subtitle {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 25px; /* Reducido el margen inferior */
    font-weight: 300;
}

.clientes-grid {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px; /* Reducido el espacio entre tarjetas */
    padding: 10px 0; /* Reducido el padding vertical */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    padding-bottom: 200px; /* Reducido el padding inferior */
}

/* Estilos para la barra de desplazamiento en navegadores WebKit */
.clientes-grid::-webkit-scrollbar {
    height: 8px;
}

.clientes-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.clientes-grid::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.clientes-grid::-webkit-scrollbar-thumb:hover {
    background: #ffc107;
}

.cliente-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(30, 30, 30, 0.7);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.1);
    padding: 15px 10px;
    position: relative;
    z-index: 1;
    min-width: 180px;
    width: 180px;
    height: 180px;
    flex: 0 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cliente-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cliente-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
    background: rgba(40, 40, 40, 0.8);
}

.cliente-card:hover::before {
    opacity: 1;
}

.cliente-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    height: 100px;
    min-height: 100px;
    background: transparent;
    transition: all 0.3s ease;
    border: none;
    margin: 0 0 10px 0;
}

.cliente-card:hover .cliente-logo {
    transform: none;
}

.cliente-logo img {
    max-width: 100%;
    max-height: 110px;
    width: auto;
    height: auto;
    filter: grayscale(100%) brightness(1.5) contrast(1.1);
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cliente-card:hover .cliente-logo img {
    filter: grayscale(0) brightness(1.2) contrast(1.1) saturate(1.3);
    opacity: 1;
    transform: scale(1.1);
}

.cliente-nombre {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 5px 0 2px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 0 10px;
}

.cliente-card:hover .cliente-nombre {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.cliente-url {
    font-size: 0.7rem;
    color: #aaa;
    text-align: center;
    padding: 0 10px;
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.3px;
    opacity: 0.8;
}

.cliente-card:hover .cliente-url {
    color: var(--primary-color);
    transform: translateY(2px);
}

/* Estilos para móviles */
@media (max-width: 768px) {
    .clientes {
        padding: 50px 0;
    }
    
    .clientes h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .clientes-grid {
        width: 95%;
        gap: 12px;
        padding: 10px 0 25px;
        justify-content: flex-start;
    }
    
    .cliente-card {
        min-width: 150px;
        width: 150px;
        height: 160px;
        padding: 10px 5px;
    }
    
    .cliente-logo {
        height: 80px;
        min-height: 80px;
        margin-bottom: 5px;
    }
    
    .cliente-logo img {
        max-height: 70px;
    }
    
    .cliente-nombre {
        font-size: 0.85rem;
        margin: 3px 0 1px;
    }
    
    .cliente-url {
        font-size: 0.65rem;
    }
}

.client-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    position: relative;
    color: #fff;
    overflow: hidden;
    background: transparent;
    z-index: 2; /* Asegura que el contenido esté por encima del fondo de partículas */
}

.contact-container {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 10px;
    margin: 0 auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; /* Reducido el espacio entre columnas */
    max-width: 1400px;
    width: 90%;
    margin: 40px auto;
    padding: 60px 40px;
    position: relative;
    z-index: 2;
    align-items: flex-start; /* Alineado arriba */
}

.contact-subtitle {
    color: #ccc;
    margin-bottom: 20px; /* Reducido de 30px a 20px */
    font-size: 0.95rem; /* Reducido ligeramente */
    text-align: left; /* Alineado a la izquierda */
}

.contact-form-container {
    background: transparent;
    padding: 10px 0 10px 40px; /* Reducido el padding vertical */
    border-radius: 10px;
    border: none;
}

.contact-form-container h2 {
    color: #ffd700;
    margin-bottom: 10px; /* Reducido de 15px a 10px */
    font-size: 1.8rem; /* Reducido ligeramente */
    text-align: left; /* Alineado a la izquierda */
}

.contact-form h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 15px; /* Reducido de 20px a 15px */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0; /* Reducido de 12px a 10px */
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    font-size: 0.9rem; /* Reducido ligeramente */
    background: transparent;
    color: #fff;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #ffd700;
    box-shadow: none;
}

.form-group textarea {
    min-height: 80px; /* Reducido de 100px a 80px */
    resize: none;
    overflow: hidden;
}

/* Estilos para el título del mapa */
.map-section-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 20px;
    text-transform: none;
    letter-spacing: 0.5px;
}

/* Estilos para el mapa */
#chartdiv.map-full {
    width: 100% !important;
    height: 600px !important;
    min-height: 600px !important;
    margin: 0 0 30px 0;
    padding: 0 !important;
    background: #0f1014 !important;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
}

/* Asegurar que el contenedor raíz ocupe todo el espacio */
#chartdiv.map-full > div {
    width: 100% !important;
    height: 100% !important;
    min-height: 600px !important;
}

/* Estilos para el mapa */
.amcharts-MapChart {
    width: 100% !important;
    height: 100% !important;
    min-height: 600px !important;
    background: #0f1014 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Asegurar que los elementos del mapa sean visibles */
.amcharts-Layer,
.amcharts-MapChart .amcharts-Container {
    width: 100% !important;
    height: 100% !important;
}

/* Asegurar que el canvas ocupe todo el espacio */
.amcharts-MapChart canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Ajustar el contenedor del mapa */
.amcharts-Container {
    background: #0f1014 !important;
}

/* Ajustar el mapa para que ocupe todo el espacio */
.amcharts-MapChart svg {
    width: 100% !important;
    height: 100% !important;
}

/* Estilos para las burbujas */
.amcharts-MapPolygonSeries .amcharts-Circle {
    cursor: pointer;
    transition: all 0.3s ease;
}

.amcharts-MapPolygonSeries .amcharts-Circle:hover {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7));
    transform: scale(1.05);
}

/* Estilos para el tooltip */
.amcharts-Tooltip {
    background: rgba(15, 16, 20, 0.9) !important;
    border: 1px solid #333 !important;
    border-radius: 4px !important;
    color: #fff !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Estilos para el mensaje de error */
.map-error {
    color: #ffd700;
    text-align: center;
    padding: 80px 20px;
    font-family: 'Montserrat', sans-serif;
    background: #0f1014;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.map-error h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 24px;
}

.map-error p {
    color: #aaa;
    margin-bottom: 20px;
    max-width: 500px;
    line-height: 1.6;
}

.map-error small {
    color: #777;
    font-size: 12px;
    margin-top: 20px;
    display: block;
}

/* Remove the placeholder styles since we're using a real map now */
.map-placeholder {
    display: none;
}

/* Style for the map title */
.map-title {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Style for map tooltips */
.amcharts-amexport-item {
    color: #000 !important;
}

/* Make sure the map takes full container height */
#chartdiv {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.btn {
    display: inline-block;
    background: #ffd700;
    color: #000;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn:hover {
    background: #ffc800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Estilos responsivos */
@media (max-width: 1200px) {
    .contact-container {
        grid-template-columns: 1fr;
        max-width: 800px;
        gap: 40px;
    }
    
    .map-container {
        height: 400px;
        order: 2;
        margin-right: 0;
        margin-bottom: 40px;
        margin-left: 0;
    }
    
    .contact-form-container {
        padding: 10px 0 !important;
        order: 1;
    }
    
    .contact-form-container h2,
    .contact-subtitle {
        text-align: center;
    }
    
    /* Ensure the map is not too tall on mobile */
    #chartdiv {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 15px;
    }
    
    .form-row .form-group:last-child {
        margin-bottom: 0;
    }
    
    .contact-form-container {
        padding: 15px 0;
    }
    
    .map-container {
        height: 350px;
        margin-bottom: 30px;
    }
    
    #chartdiv {
        min-height: 350px;
    }
}

/* Footer */
footer {
    background: transparent;
    color: #fff;
    padding: 30px 0 15px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    border: none;
    line-height: 1.1;
    font-size: 0.8rem;
    font-weight: 300;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 0;
    margin: 0;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-collapse: collapse;
    border-spacing: 0;
}

/* Sección de Redes Sociales */
.contact-section {
    text-align: center;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.social-section {
    text-align: center;
    padding: 0 15px;
}

.social-section h3 {
    margin-bottom: 20px;
    color: #ffd700;
    font-size: 18px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.social-links a:hover {
    background: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    background-color: #ffea00;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

.btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

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

/* Estilos para el banner destacado en la sección hero */
.hero .highlight-banner {
    position: relative;
    display: inline-block;
    margin: 20px 0;
    z-index: 1;
}

.hero .highlight-text {
    display: inline-block;
    background-color: rgba(255, 215, 0, 0.7);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    color: #000;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.hero .highlight-banner:hover .highlight-text {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.highlight-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    transform: translate(8px, 8px);
    opacity: 0.9;
}

.highlight-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.highlight-dot:nth-child(1) {
    top: -5px;
    left: 20%;
    animation-delay: 0s;
}

.highlight-dot:nth-child(2) {
    top: 50%;
    right: -5px;
    animation-delay: 0.5s;
}

.highlight-dot:nth-child(3) {
    bottom: -5px;
    left: 50%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) scale(1.2);
        opacity: 1;
    }
}

/* Estilos generales de secciones */
/* Estilos para títulos de sección */
.section-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-section {
    padding: 0 15px;
    margin: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-collapse: collapse;
    border-spacing: 0;
    background: transparent;
}

.footer-section h3 {
    color: #ffd700;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #ffd700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.contact-info li {
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 300;
}

.contact-info i {
    color: #ffd700;
    margin-right: 12px;
    margin-top: 4px;
    min-width: 16px;
}

.offices-section {
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 30px;
    background: transparent;
}

.offices-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-collapse: collapse;
    border-spacing: 0;
}

.office-location {
    flex: 1;
    min-width: 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.office-location:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.office-location h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.office-location p {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.office-location {
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 8px;
    border: none;
    margin: 0 0 6px 0;
    transition: transform 0.3s ease;
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.3;
}

.office-location:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.office-location h4 {
    color: #ffd700;
    font-size: 15px;
    margin-bottom: 12px;
    width: 100%;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.office-location h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: rgba(255, 215, 0, 0.6);
}

.office-location p {
    color: #ccc;
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0 0;
    text-align: center;
}

.quick-links li {
    margin-bottom: 8px;
}

.quick-links a {
    color: #aaa;
    font-size: 13px;
    transition: all 0.2s ease;
    display: block;
    padding: 2px 0;
}

.quick-links a:hover {
    color: #ffd700;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-bottom p {
    color: #777;
    font-size: 12px;
    margin: 0;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links a {
    color: #777;
    font-size: 13px;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #ffd700;
    text-decoration: none;
}

.legal-links span {
    color: #444;
    font-size: 13px;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .offices-section {
        grid-column: 1 / -1;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 30px 15px;
        margin: 20px 0;
    }
    
    .contact-section {
        text-align: left;
    }
    
    .contact-info li {
        justify-content: flex-start;
    }
    
    .contact-info i {
        margin-left: 0;
        margin-right: 12px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .offices-section {
        grid-column: auto;
        padding: 0;
        margin: 20px 0;
    }
    
    .office-location {
        padding: 15px 10px;
    }
    
    .office-location p {
        font-size: 12px;
    }
    
    .footer-section h3 {
        font-size: 16px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
    }

    nav ul li {
        margin: 0 10px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }
}
