/* Variables y estilos base */
:root {
    /* Colores */
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --dark-bg: #0f0f0f;
    --dark-bg-light: #1a1a1a;
    --text-color: #ffffff;
    --text-color-light: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Tipografía */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    /* Transiciones */
    --transition-fast: 0.3s;
    --transition-medium: 0.5s;
    --transition-slow: 0.8s;
    
    /* Bordes */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Z-index */
    --z-back: -1;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* WhatsApp Links */
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.whatsapp-link i {
    font-size: 1.2em;
    color: #25D366; /* WhatsApp brand color */
}

.whatsapp-link:hover {
    opacity: 0.8;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--dark-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

body.hide-during-loader .header,
body.hide-during-loader .hero,
body.hide-during-loader .about,
body.hide-during-loader .portfolio,
body.hide-during-loader .services,
body.hide-during-loader .contact,
body.hide-during-loader .footer,
body.hide-during-loader .scroll-indicator,
body.hide-during-loader .section-number {
    display: none !important;
}


a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast) ease;
}

ul {
    list-style: none;
}

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

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





section {
    position: relative;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.section-number {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    font-size: 5rem;
    font-weight: var(--font-weight-bold);
    opacity: 0.25;
    z-index: var(--z-back);
    
    /* Efecto de vidrio solo en el texto */
    filter: blur(0.8px);
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.3);
    
    /* Transición suave */
    transition: all 0.3s ease;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0; /* Eliminado el margen inferior */
}

.section-title {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0; /* Eliminado el margen inferior */
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
    text-align: center;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.about-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin: 15px auto;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-transform: none;
}

/* Estilo específico para el título de servicios */
.services .about-title {
    font-size: 5.5rem;
}

.services .about-title-container {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
}

.services .about-accent-line {
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast) ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--text-color);
    border: none;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Estilos generales para hover de botones */
.btn:hover {
    transform: translateY(-3px);
}

/* Glowing Border Button Effect */
.btn-star-border {
    position: relative;
    overflow: visible;
    z-index: 1;
    /* Mantener el gradiente original del botón primario */
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    /* Mantener el padding original pero asegurar que sea simétrico */
    padding: 12px 30px;
    /* Mantener el border-radius original */
    border-radius: 30px;
    /* Asegurar que el texto esté perfectamente centrado */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-star-border:before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 34px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 100%;
    z-index: -1;
    animation: glowing-border 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-star-border:hover:before {
    opacity: 1;
}

.btn-star-border:after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 32px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-star-border:hover:after {
    opacity: 0.7;
}

@keyframes glowing-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Loader */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
}

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

.loader-logo {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
}

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

.loader-progress {
    width: 300px;
    height: 4px;
    background-color: var(--dark-bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0; /* Reducido para mejor centrado vertical */
    z-index: var(--z-fixed);
    transition: all var(--transition-fast) ease;
    opacity: 1 !important;
    transform: translateY(0) !important;
    background-color: transparent;
}

.header.scrolled .container {
    background-color: rgba(26, 26, 26, 0.7);
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 15, 15, 0.5);
}

.header.scrolled .toggle-menu {
    background-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    border-color: transparent;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%;
    margin: 0 auto;
    padding: 0.4rem 1.5rem; /* Reducido para eliminar el espacio superior */
    transition: all 0.3s ease;
    background-color: transparent;
    border: 1px solid transparent;
    box-sizing: border-box; /* Asegurar que padding y border no afecten el ancho/alto total */
}

.logo {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
}

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

/* Toggle Menu Styles */
.toggle-menu {
    display: flex;
    align-items: center;
    background-color: rgba(26, 26, 26, 0.7);
    border-radius: 50px;
    padding: 0.5rem 0.5rem; /* Reducido para mejor centrado vertical */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 15, 15, 0.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Aplicar bordes redondeados solo al primer y último elemento */
.toggle-item:first-child {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.toggle-item:last-child {
border-top-right-radius: 30px;
border-bottom-right-radius: 30px;
}

.toggle-text {
font-weight: var(--font-weight-medium);
position: relative;
z-index: 2;
transition: all var(--transition-fast) ease;
display: inline-block;
}

.toggle-border {
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 100%;
border-radius: 0;
background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
opacity: 0;
z-index: 1;
transition: all var(--transition-fast) ease;
background-size: 200% 200%;
animation: gradientAnimation 3s ease infinite;
    left: 0;
    width: 0;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    z-index: 1;
    transition: all var(--transition-fast) ease;
    background-size: 200% 200%;
    animation: gradientAnimation 3s ease infinite;
}

/* Aplicar bordes redondeados al fondo solo en el primer y último elemento */
.toggle-item:first-child .toggle-border {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.toggle-item:last-child .toggle-border {
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}

/* Mantener la misma forma en hover y active */
.toggle-item:first-child:hover,
.toggle-item:first-child.active {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.toggle-item:last-child:hover,
.toggle-item:last-child.active {
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.toggle-item:not(:first-child):not(:last-child):hover,
.toggle-item:not(:first-child):not(:last-child).active {
    border-radius: 0;
}

.toggle-divider {
    width: 1px;
    height: 25px;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    opacity: 0.3;
    animation: pulseGlow 2s ease-in-out infinite;
    margin: 0;
    z-index: 3;
}

.toggle-item:hover .toggle-border,
.toggle-item.active .toggle-border {
    width: 100%;
    opacity: 0.15;
    transition: all 0.3s ease;
}

/* Asegurar que el fondo del hover mantenga la forma correcta */
.toggle-item:not(:first-child):not(:last-child) .toggle-border {
    border-radius: 0 !important;
}

/* Ajustar el z-index para que los bordes se vean correctamente */
.toggle-item:first-child {
    z-index: 2;
}

.toggle-item:last-child {
    z-index: 2;
}

/* Mejorar la transición del hover */
.toggle-item {
    position: relative;
    padding: 0.7rem 1.4rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    overflow: hidden;
    margin: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-item:hover,
.toggle-item.active {
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
    border-top: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

.toggle-item:first-child:hover,
.toggle-item:first-child.active {
    border-left: 1px solid var(--accent-color);
}

.toggle-item:last-child:hover,
.toggle-item:last-child.active {
    border-right: 1px solid var(--accent-color);
}



.toggle-item:hover .toggle-text,
.toggle-item.active .toggle-text {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(253, 121, 168, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--dark-bg-light);
    z-index: var(--z-modal);
    transition: right var(--transition-medium) ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-container {
    padding: var(--spacing-lg) var(--spacing-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.mobile-logo {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
}

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

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    margin-bottom: auto;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.mobile-nav a {
    font-size: 1.2rem;
    font-weight: var(--font-weight-medium);
    display: block;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--accent-color);
}

.mobile-menu-footer {
    margin-top: var(--spacing-lg);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-bg);
    transition: all var(--transition-fast) ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: var(--dark-bg);
}

.about {
    position: relative;
    z-index: 1;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.85);
    z-index: -1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-back);
}

.hero-gallery-right {
    position: absolute;
    top: 50%;
    right: 0;
    width: 55%;
    height: 100%;
    transform: translateY(-50%);
    z-index: var(--z-low);
    margin-top: 50px;
}

@media (max-width: 768px) {
    .hero-gallery-right {
        margin-top: 0;
    }
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
    opacity: 0.55;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    opacity: 0.9;
}



.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 15, 15, 1) 0%, rgba(15, 15, 15, 0.7) 50%, rgba(15, 15, 15, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0.5;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: var(--z-normal);
}

.hero-content {
    position: absolute;
    width: 40%;
    z-index: 5;
    padding: 0 2vw;
    left: 0 !important;
    top: 40% !important; /* Ajustado aún más para subir el contenido */
    transform: translateY(-50%) !important;
    margin-left: calc(var(--spacing-lg) + var(--spacing-md));
    box-sizing: border-box;
}

/* Tablet/iPad: Usar el mismo layout que mobile que ya funciona bien */

@media (max-width: 1200px) {
    .hero-content {
        width: 40%;
    }
    
    .hero-gallery-right {
        width: 55%;
    }
    
    .item-1 {
        width: 220px;
        height: 310px;
        left: 80px;
    }

    .item-2 {
        width: 190px;
        height: 260px;
        left: 330px;
    }

    .item-3 {
        width: 170px;
        height: 240px;
        left: 130px;
    }

    .item-4 {
        width: 150px;
        height: 210px;
        left: 340px;
    }

    .item-5 {
        width: 140px;
        height: 190px;
        left: 500px;
    }

    .item-6 {
        width: 120px;
        height: 170px;
        left: 480px;
    }
}

@media (max-width: 900px) {
    .hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100vh;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-content {
        position: relative;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 auto var(--spacing-lg) auto;
        width: 90%;
        max-width: 600px;
        padding: 0 var(--spacing-md);
        text-align: center;
        order: 1;
    }

    .hero-description {
        margin: 0 auto var(--spacing-md) auto;
        max-width: 100%;
    }
    
    .hero-gallery-right {
        position: relative;
        width: 100%;
        max-width: 600px;
        height: 500px;
        margin: 0 auto;
        right: auto;
        top: auto;
        transform: none;
        order: 2;
    }
    
    .item-1 {
        width: 200px;
        height: 280px;
        top: 0;
        left: 5%;
    }

    .item-2 {
        width: 180px;
        height: 250px;
        top: 30px;
        left: 55%;
    }

    .item-3 {
        width: 160px;
        height: 220px;
        top: 180px;
        left: 15%;
    }

    .item-4 {
        width: 150px;
        height: 210px;
        top: 220px;
        left: 60%;
    }

    .item-5 {
        width: 140px;
        height: 190px;
        top: 80px;
        left: 35%;
    }

    .item-6 {
        width: 130px;
        height: 180px;
        top: 290px;
        left: 40%;
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-color-light);
    margin-bottom: var(--spacing-lg);
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
    max-width: 100%;
    position: relative;
    z-index: 10;
}

@media (max-width: 900px) {
    .hero-buttons {
        max-width: 100vw;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
        max-width: 100vw;
    }
}

.hero-gallery-right {
    position: absolute;
    width: 65%;
    height: 600px;
    z-index: 1;
    right: -50px; /* Movido más a la derecha */
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0; /* Eliminado el margen derecho */
}

.gallery-item {
    position: absolute;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 1 !important; /* Forzar visibilidad */
    visibility: visible !important; /* Asegurar visibilidad */
    /* Eliminado transform: none !important para permitir el efecto parallax */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right gallery items */
.item-1 {
    width: 250px;
    height: 350px;
    top: -30px;
    left: 180px;
}

.item-2 {
    width: 280px;
    height: 200px;
    top: 50px;
    left: 420px;
    z-index: 2;
}

.item-3 {
    width: 280px;
    height: 200px;
    top: 240px;
    left: 230px;
    z-index: 1;
}

.item-4 {
    width: 260px;
    height: 180px;
    top: 250px;
    left: 460px;
    z-index: 2;
}

.item-5 {
    width: 160px;
    height: 220px;
    top: 100px;
    left: 660px;
}

.item-6 {
    width: 220px;
    height: 150px;
    top: 350px;
    left: 590px;
    z-index: 1;
}

.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: all 0.3s ease;
    /* Asegurar que el indicador sea visible */
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 30px;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    position: relative;
    margin-bottom: var(--spacing-sm);
}

.wheel {
    width: 6px;
    height: 6px;
    background-color: var(--text-color);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

.arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg);
    margin: -5px;
    animation: arrows 1.5s infinite;
}

.arrow:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes arrows {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.2;
    }
}

/* About Section */
.about {
    background-color: var(--dark-bg-light);
}

/* About Section - Modern Styles 2025 */
.about {
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 120px;
}

.about-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    opacity: 0.7;
    z-index: -1;
}

/* Header Styles */
.about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.about-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin: 15px auto;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-transform: none;
    text-align: center;
    width: 100%;
    display: block;
}

.about-subtitle-text {
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--text-color-light);
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
}

/* Content Layout */
.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 100px;
}

/* Video Column */
.about-image-col {
    position: relative;
}

.about-main-video {
    position: relative;
    height: 500px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.about-main-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
}

/* Philosophy Column */
.about-philosophy-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 30px;
}

.philosophy-header {
    margin-bottom: 30px;
    position: relative;
}

.philosophy-title {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.philosophy-accent {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 10px 0 20px;
    animation: pulse 2s infinite;
    display: block;
}

.philosophy-content {
    margin-bottom: 40px;
}

.philosophy-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.philosophy-text-secondary {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color-light);
    margin-bottom: 40px;
    font-style: italic;
    opacity: 0.9;
}

/* Stats Row */
.about-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    background-color: rgba(30, 30, 30, 0.6);
    padding: 30px;
    border-left: 4px solid var(--accent-color);
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Counter Animation */
.counter-animation {
    display: inline-block;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.3s;
}

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

/* Efecto de destello al completar el contador */
.counter-complete {
    animation: flash 0.3s ease-out;
}

@keyframes flash {
    0% { color: var(--text-color); -webkit-text-fill-color: var(--text-color); }
    50% { color: var(--accent-color); -webkit-text-fill-color: var(--accent-color); }
    100% { color: inherit; -webkit-text-fill-color: transparent; }
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color-light);
    letter-spacing: 1px;
    position: relative;
}

.plus-label:after {
    content: '+';
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 700;
}

/* Services Section */
.about-services-section {
    margin-bottom: 80px;
}

.services-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.accent-diamond {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.5rem;
    animation: rotate 4s linear infinite;
    display: inline-block;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: rgba(30, 30, 30, 0.6);
    border-radius: 0;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

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

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transition: height 0.4s ease;
}

.service-card:hover:before {
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--accent-color);
}

.service-card p {
    color: var(--text-color-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: auto;
}

/* Collaborators Section */
.about-collaborators {
    background-color: rgba(30, 30, 30, 0.6);
    padding: 50px;
    position: relative;
    border-radius: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-collaborators:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-top: 3px solid var(--accent-color);
    border-right: 3px solid var(--accent-color);
}

.about-collaborators h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.about-collaborators h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.about-collaborators p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color-light);
    max-width: 80%;
}

.highlight {
    color: var(--accent-color);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.highlight:hover {
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials-section {
    margin-top: 80px;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px; /* Mantenemos este espaciado como referencia */
    color: #ffffff;
    display: inline-block;
}

.gradient-text {
    background: linear-gradient(135deg, #8A2BE2, #FF69B4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.testimonials-description {
    font-size: 1.2rem;
    color: var(--text-color-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
    text-align: center;
}

.testimonials-marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.testimonials-marquee {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    animation: marquee 40s linear infinite;
    gap: 30px;
    padding: 20px 0;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    flex: 0 0 350px;
    background-color: rgba(30, 30, 30, 0.6);
    border-radius: 0;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transition: height 0.4s ease;
}

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

.testimonial-card:hover:before {
    height: 100%;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color-light);
    font-style: italic;
    position: relative;
}

.testimonial-content p:before {
    content: '\201C'; /* Comilla inicial */
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-color-light);
    margin: 0;
}

.marquee-gradient {
    position: absolute;
    top: 0;
    height: 100%;
    width: 150px;
    pointer-events: none;
    z-index: 1;
}

.marquee-gradient.left {
    left: 0;
    background: linear-gradient(to right, var(--dark-bg) 0%, rgba(15, 15, 15, 0) 100%);
}

.marquee-gradient.right {
    right: 0;
    background: linear-gradient(to left, var(--dark-bg) 0%, rgba(15, 15, 15, 0) 100%);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .about-title {
        font-size: 4.5rem;
    }
    
    .about-subtitle p {
        font-size: 1.3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-card {
        flex: 0 0 300px;
    }
}

@media (max-width: 992px) {
    .about-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    
    .about-subtitle {
        text-align: left;
        max-width: 100%;
    }
    
    .about-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-collaborators p {
        max-width: 100%;
    }
    
    .testimonials-title {
        font-size: 2rem;
    }
    
    .testimonials-description {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .testimonial-card {
        flex: 0 0 280px;
        padding: 25px;
    }
    
    .testimonials-track {
        animation-duration: 30s; /* Más rápido en tablets */
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 3.5rem;
    }
    
    .about-stats-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-collaborators {
        padding: 30px 20px;
    }
    
    .testimonials-section {
        margin-top: 60px;
        margin-bottom: 60px;
    }
    
    .testimonials-title {
        font-size: 2.3rem;
    }
    
    .testimonials-description {
        font-size: 0.9rem;
        padding: 0 15px;
    }
    
    .testimonial-card {
        flex: 0 0 260px;
        padding: 20px;
    }
    
    .testimonial-content p {
        font-size: 0.9rem;
    }
    
    .testimonial-content p:before {
        font-size: 2.5rem;
        top: -15px;
        left: -8px;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .author-info h4 {
        font-size: 0.9rem;
    }
    
    .author-info p {
        font-size: 0.8rem;
    }
    
    .testimonials-track {
        animation-duration: 25s; /* Más rápido en móviles */
        gap: 20px;
    }
    
    .marquee-gradient {
        width: 80px;
    }
}

/* Services Section */
.services {
    position: relative;
    padding-top: 50px;
    padding-bottom: var(--spacing-xl);
    overflow: hidden;
    margin-top: -30px;
}

.services-blocks {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-lg);
    height: 600px;
    position: relative;
}

.service-block {
    position: relative;
    flex: 1;
    margin: 0 10px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-block-1 {
    /* Removida background-image para permitir que se muestre el video */
    transform: translateY(-30px); /* Más arriba */
}

.service-block-2 {
    background-image: url('../img/Portfolio/brahma - BRAHMA X BRESH (2024)/Copia de @boussyzoe-GEBA7.12-5901.jpg');
    transform: translateY(30px); /* Más abajo */
}

.service-block-3 {
    background-image: url('../img/Portfolio/MASTERCARD (2024)/Citi-Master-24.jpg');
    transform: translateY(-20px); /* En medio, ligeramente arriba */
}

.service-block-4 {
    background-image: url('../img/Portfolio/AVON - LANZAMIENTO KENZO/Kenzo.webp');
    transform: translateY(15px); /* El más abajo */
}

.service-block-5 {
    background-image: url('../img/Portfolio/GOOGLE/Fiesta Google-120.jpg');
    transform: translateY(-30px); /* Más arriba - igual que service-block-1 */
}

.service-block-6 {
    background-image: url('../img/Portfolio/GOOGLE/Fiesta Google-130.jpg');
    transform: translateY(30px); /* Más abajo - igual que service-block-2 */
}

.service-block-7 {
    background-image: url('../img/Portfolio/BNP CARDIF - fiesta de fin de año - con actividades team building/IMG_20191210_121514.jpg');
    transform: translateY(-20px); /* En medio - igual que service-block-3 */
}

.service-block-8 {
    background-image: url('../img/Portfolio/AVON - LANZAMIENTO KENZO/Kenzo.webp');
    transform: translateY(15px); /* El más abajo - igual que service-block-4 */
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0.1) 0%, rgba(15, 15, 15, 0.7) 70%, rgba(15, 15, 15, 0.9) 100%);
    z-index: 0;
}

.service-content {
    position: relative;
    z-index: 1;
    padding: var(--spacing-md);
    color: var(--text-color);
}

.service-number {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xs);
}

.services-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
}

.service-description {
    color: var(--text-color-light);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 90%;
}

.service-navigation {
    display: flex;
    margin-top: var(--spacing-md);
    gap: 10px;
}

.service-nav-item {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-nav-item.active {
    background-color: var(--accent-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-card {
    background-color: var(--dark-bg-light);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-fast) ease;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: var(--text-color-light);
}

/* Portfolio */
.portfolio {
    padding: var(--section-padding);
    overflow: visible;
    position: relative;
}

.portfolio-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: all var(--transition-fast) ease;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    transition: width var(--transition-fast) ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--text-color);
}

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 100%;
}

/* Estilos para las filas de portfolio (sin scroll horizontal) */
.portfolio-row {
    display: block;
    margin-bottom: var(--spacing-lg); /* Espacio entre filas */
    width: 100%;
    overflow: visible;
    position: relative;
    padding: 0;
}

.portfolio-row .portfolio-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    width: 100% !important; /* Forzar ancho completo */
    transform: none !important; /* Eliminar cualquier transformación */
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    width: calc(33.33% - 20px); /* 3 elementos por fila con espacio entre ellos */
    height: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px; /* Espacio entre filas */
}

.portfolio-item.medium {
    width: calc(33.33% - 20px); /* Mismo ancho que los normales */
    height: 280px;
}

.portfolio-item.large {
    width: calc(50% - 20px); /* 2 elementos por fila */
    height: 300px;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 100%;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-container {
    position: relative;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1.05);
    transition: transform var(--transition-medium) ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.9), rgba(15, 15, 15, 0.5));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity var(--transition-fast) ease;
}

.portfolio-item:hover .portfolio-image img,
.portfolio-item:hover .video-container video {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Estilos para el layout de portfolio (sin scroll) */
.portfolio-row .portfolio-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Espacio entre elementos */
    width: 100% !important;
    transform: none !important;
}

/* Clases scroll-left y scroll-right ahora solo controlan el espaciado */
.scroll-left .portfolio-inner,
.scroll-right .portfolio-inner {
    transform: none !important; /* Eliminar cualquier transformación */
    margin-bottom: var(--spacing-md); /* Espacio entre filas */
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    transform: translateY(20px);
    transition: transform var(--transition-fast) ease;
}

.portfolio-overlay p {
    color: var(--text-color-light);
    margin-bottom: var(--spacing-sm);
    transform: translateY(20px);
    transition: transform var(--transition-fast) ease 0.1s;
}

.portfolio-link {
    color: var(--accent-color);
    font-weight: var(--font-weight-medium);
    transform: translateY(20px);
    transition: transform var(--transition-fast) ease 0.2s;
    display: inline-block;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .portfolio-link {
    transform: translateY(0);
}

/* Featured Portfolio Item */
.portfolio-item.featured {
    grid-column: span 2;
    height: 350px;
}

@media (max-width: 768px) {
    .portfolio-item.featured {
        grid-column: span 1;
        height: 250px;
    }
}

.portfolio-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-lg);
}

.nav-arrow {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.nav-arrow:hover {
    color: var(--accent-color);
}

.nav-dots {
    display: flex;
    gap: var(--spacing-xs);
    margin: 0 var(--spacing-md);
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-color-light);
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.nav-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.3);
}

/* Contact Section */
.contact {
    background-color: var(--dark-bg-light);
}

.contact-content {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-form-container {
    flex: 1;
}

.contact-form {
    background: none;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    background-color: var(--dark-bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.info-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.info-content h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.info-content p {
    color: var(--text-color-light);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
}

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

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-column a {
    color: var(--text-color-light);
    transition: color var(--transition-fast) ease;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.copyright {
    color: var(--text-color-light);
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-bg-video, .hero-bg-image {
        min-height: 100%;
        min-width: 100%;
        object-fit: cover;
    }
    .hero-overlay {
        background: linear-gradient(to top, rgba(15, 15, 15, 1) 0%, rgba(15, 15, 15, 0.8) 60%, rgba(15, 15, 15, 0.5) 100%);
    }
    .hero-container {
        flex-direction: column;
    }

    .hero-content {
        max-width: 800px;
        margin-bottom: var(--spacing-lg);
        text-align: center;
    }

    .hero-description {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-gallery-right {
        width: 100%;
        max-width: 500px;
        height: 500px;
        margin: 0 auto;
    }

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

    .about-text {
        order: 2;
        text-align: center;
    }

    .about-image {
        order: 1;
        margin-bottom: var(--spacing-lg);
    }

    .stats {
        justify-content: center;
    }

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

    .contact-info {
        order: -1;
        margin-bottom: var(--spacing-lg);
    }
}

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

    .mobile-menu-toggle {
        display: block;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .footer-links {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .footer-column {
        flex-basis: calc(50% - var(--spacing-md));
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }
    
    .btn {
        width: 80%;
        text-align: center;
    }

    .hero-gallery-right {
        height: 450px;
    }

    .gallery-item {
        transform: scale(0.85);
    }

    .item-1 {
        width: 180px;
        height: 250px;
        top: 0;
        left: 5%;
    }

    .item-2 {
        width: 160px;
        height: 220px;
        top: 20px;
        left: 55%;
    }

    .item-3 {
        width: 140px;
        height: 190px;
        top: 180px;
        left: 10%;
    }

    .item-4 {
        width: 130px;
        height: 180px;
        top: 200px;
        left: 50%;
    }
    
    .item-5 {
        width: 120px;
        height: 170px;
        top: 80px;
        left: 30%;
    }
    
    .item-6 {
        width: 110px;
        height: 160px;
        top: 300px;
        left: 30%;
    }

    .portfolio-filter {
        gap: var(--spacing-sm);
    }

    .filter-btn {
        font-size: 0.9rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-column {
        flex-basis: 100%;
    }
}

/* Ajuste específico para móvil: más espacio inferior en portfolio para visibilidad del número 04 */
@media (max-width: 768px) {
    .portfolio {
        padding-bottom: 80px !important; /* Más espacio inferior para que el número 04 sea visible */
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2.3rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .hero-gallery-right {
        height: 400px;
    }
    
    .gallery-item {
        transform: scale(0.7);
    }
    
    .item-1 {
        top: 0;
        left: 5%;
    }

    .item-2 {
        top: 20px;
        left: 50%;
    }

    .item-3 {
        top: 150px;
        left: 0;
    }

    .item-4 {
        top: 170px;
        left: 45%;
    }
    
    .item-5 {
        top: 70px;
        left: 25%;
    }
    
    .item-6 {
        top: 250px;
        left: 25%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
