/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ===== VARIABLES CSS ===== */
:root {
    /* Colores corporativos LaGence */
    --primary-color: #d4fd48;      /* Verde lima - color principal */
    --secondary-color: #005a68;    /* Azul verdoso oscuro - color secundario */
    --accent-color: #d7611c;       /* Naranja - color de acento/botones */
    
    /* Colores de texto - Tema Oscuro */
    --text-color: #f1f5f9;         /* Texto principal claro */
    --text-light: #94a3b8;         /* Texto secundario */
    --text-dark: #0f172a;          /* Texto sobre fondos claros */
    
    /* Colores de fondo - Tema Oscuro */
    --bg-color: #0f172a;           /* Fondo principal oscuro */
    --bg-light: #1e293b;           /* Fondo secundario oscuro */
    --bg-accent: #1e293b;          /* Fondo de acento */
    --bg-card: #1e293b;            /* Fondo de tarjetas */
    
    /* Colores de borde - Tema Oscuro */
    --border-color: #334155;       /* Bordes oscuros */
    --border-accent: #d4fd48;      /* Bordes de acento */
    
    /* Sombras */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 4px 12px rgba(212, 253, 72, 0.3);
    --shadow-orange: 0 4px 12px rgba(215, 97, 28, 0.3);
    
    /* Utilidades */
    --border-radius: 0px;
    --transition: all 0.3s ease;
}

/* ===== UTILIDADES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    background: transparent;
}

.btn-primary {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(215, 97, 28, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 90, 104, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    border: 2px solid var(--accent-color);
    background-color: transparent;
    color: var(--accent-color);
}

.btn-sm:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 97, 28, 0.3);
}

.btn-full {
    width: 100%;
}

/* Estilos para contenedor de botones en slider */
.slide-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.slide-buttons .btn {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .slide-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .slide-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== HEADER Y NAVEGACIÓN ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: transparent;
    backdrop-filter: blur(10px);
    z-index: 1001;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(0, 90, 104, 0.3);
    box-shadow: 0 4px 12px rgba(0, 90, 104, 0.3);
}

.navbar {
    padding: 0.5rem 0;
    width: 100%;
}

.navbar .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 32px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-img:hover {
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.3));
}

.logo-text {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: var(--transition);
    border-radius: 0px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Estilos cuando el header tiene scroll */
.header.scrolled .nav-link {
    color: var(--primary-color);
}

.header.scrolled .nav-link:hover {
    color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 0px;
}

/* Estilos cuando el header tiene scroll */
.header.scrolled .navbar-toggle span {
    background-color: var(--primary-color);
}

/* ===== REDES SOCIALES EN NAVEGACIÓN ===== */
.social-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: center;
}

.navbar-brand {
    justify-self: start;
    margin-left: 0;
}

.navbar-toggle {
    justify-self: end;
    margin-right: 20px;
}

/* Asegurar que el botón hamburguesa tenga el mismo espaciado que el logo */
.hamburger-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 50%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    margin-right: 10px;
    overflow: hidden;
}



.hamburger-toggle:hover {
    transform: scale(1.1);
}

.hamburger-toggle span {
    width: 28px;
    height: 3px;
    background: var(--accent-color);
    margin: 4px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    border-radius: 2px;
}

.hamburger-toggle:hover span {
    background: var(--accent-color);
    transform: scale(1.1);
}

.hamburger-toggle.active {
    transform: scale(1.05);
}

.hamburger-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--accent-color);
}

.hamburger-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: var(--accent-color);
}



.social-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-nav-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
    border-color: var(--accent-color);
    background-color: rgba(215, 97, 28, 0.1);
}

/* Estilos cuando el header tiene scroll */
.header.scrolled .social-nav-link {
    color: var(--primary-color);
}

.social-nav-link i {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    transition: var(--transition);
}

/* ===== SECCIÓN HOME ===== */
.home-section {
    min-height: 100vh;
    width: 100%;
    padding-top: 100px;
    display: flex;
    align-items: center;
    background: white url('../img/bgHome.jpg') no-repeat center center fixed;
    background-size: auto 100vh;
    position: relative;
}

.home-section::before {
    content: "L'agence";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18vw;
    font-weight: 900;
    color: rgba(0, 90, 104, 0.2);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -0.02em;
    display: var(--hide-pseudo, block);
    /* Asegurar que no se vea afectado por el efecto de desenfoque */
    filter: blur(0px) !important;
    opacity: 1 !important;
}

/* Elemento parallax para el texto gigante */
.parallax-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18vw;
    font-weight: 900;
    color: rgba(0, 90, 104, 0.2);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: -0.02em;
    transition: transform 0.1s ease-out;
    /* Asegurar que no se vea afectado por el efecto de desenfoque */
    filter: blur(0px) !important;
    opacity: 1 !important;
}

.hero {
    min-height: calc(100vh - 100px);
    width: 100%;
    padding: 60px 0 100px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 2;
}

/* ===== VIDEO DE FONDO ===== */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Asegurar que el video se muestre en móviles */
    display: block;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
    gap: 40px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== SLIDER DE TEXTO ===== */
.hero-text-slider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-container {
    position: relative;
    max-width: 800px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.slider-container::before,
.slider-container::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 40px;
    background-color: var(--secondary-color);
    z-index: 3;
}

.slider-container::before {
    left: 0;
}

.slider-container::after {
    right: 0;
}

.slider-content {
    display: flex;
    white-space: nowrap;
    animation: slideText 20s linear infinite;
    width: max-content;
    padding: 0 60px;
}

.slider-text {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 500px;
    height: 600px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
}

.hero-placeholder {
    width: 500px;
    height: 400px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-accent);
}

/* ===== FEATURES ===== */
.features {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    background-color: var(--bg-card);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-accent);
    border-color: var(--border-accent);
}

.feature-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.feature-icon i {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    stroke-width: 1.5;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== SECCIÓN SERVICIOS ===== */
.servicios-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

/* ===== CARRUSEL DE SERVICIOS ===== */
.servicios-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 80px;
}

.servicios-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.servicio-card {
    min-width: 300px;
    flex: 0 0 300px;
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.servicios-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    left: 0;
    right: 0;
}

.servicios-prev,
.servicios-next {
    width: 50px;
    height: 50px;
    border: 2px solid var(--secondary-color);
    background-color: transparent;
    color: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    pointer-events: auto;
    position: relative;
    z-index: 20;
}

.servicios-prev:hover,
.servicios-next:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.servicios-prev:disabled,
.servicios-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.servicios-prev:disabled:hover,
.servicios-next:disabled:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: none;
}

.servicios-prev i,
.servicios-next i {
    width: 24px;
    height: 24px;
}

.servicios-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.servicios-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.servicios-dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

.servicio-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-accent);
    border-color: var(--border-accent);
}

.servicio-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.servicio-icon i {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    stroke-width: 1.5;
}

.servicio-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.servicio-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.servicio-features {
    list-style: none;
}

.servicio-features li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
}

.servicio-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== SECCIÓN PORTAFOLIO ===== */
.portafolio-section {
    padding: 80px 0;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

/* ===== VIDEO DE FONDO EN PORTAFOLIO ===== */
.portafolio-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.portafolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portafolio-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.portafolio-section .container {
    position: relative;
    z-index: 3;
}

.portafolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.portafolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.proyecto-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.proyecto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.proyecto-image {
    height: 200px;
    overflow: hidden;
}

.proyecto-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

.proyecto-info {
    padding: 25px;
}

.proyecto-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.proyecto-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.proyecto-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background-color: rgba(212, 253, 72, 0.1);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 0px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(212, 253, 72, 0.3);
}

.proyecto-links {
    display: flex;
    gap: 10px;
}

/* ===== SECCIÓN NOSOTROS ===== */
.nosotros-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.nosotros-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.nosotros-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.nosotros-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

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

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

.nosotros-image {
    display: flex;
    justify-content: center;
}

.team-placeholder {
    width: 300px;
    height: 300px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* ===== SKILLS ===== */
.skills-section h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color);
}

.skills-grid {
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-name {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.skill-bar {
    height: 10px;
    background-color: var(--border-color);
    border-radius: 0px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 0px;
    transition: width 1s ease;
}

/* ===== SECCIÓN BLOG ===== */
.blog-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

/* ===== CARRUSEL DE BLOG ===== */
.blog-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 80px;
}

.blog-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.blog-card {
    min-width: 300px;
    flex: 0 0 300px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    left: 0;
    right: 0;
}

.blog-prev,
.blog-next {
    width: 50px;
    height: 50px;
    border: 2px solid var(--secondary-color);
    background-color: transparent;
    color: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    pointer-events: auto;
    position: relative;
    z-index: 20;
}

.blog-prev:hover,
.blog-next:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.blog-prev:disabled,
.blog-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.blog-prev:disabled:hover,
.blog-next:disabled:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: none;
}

.blog-prev i,
.blog-next i {
    width: 24px;
    height: 24px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.blog-date,
.blog-category {
    color: var(--text-light);
}

.blog-category {
    color: var(--primary-color);
    font-weight: 500;
}

.blog-title {
    margin-bottom: 15px;
}

.blog-title a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--accent-color);
    background-color: transparent;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.9rem;
}

.read-more:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 97, 28, 0.3);
}

.blog-cta {
    text-align: center;
    margin-top: 40px;
}

/* ===== SECCIÓN CONTACTO ===== */
.contacto-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contacto-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.contacto-info p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contacto-items {
    margin-bottom: 40px;
}

.contacto-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contacto-icon {
    margin-right: 15px;
    width: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contacto-icon i {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    stroke-width: 2;
}

.contacto-details h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contacto-details p {
    color: var(--text-light);
    margin: 0;
}

.social-links h4 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

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

.social-icon {
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* ===== FORMULARIOS ===== */
.form {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    font-size: 1rem;
    transition: var(--transition);
    background-color: transparent;
    color: var(--text-color);
}

.form-group select {
    color: #333;
    background-color: transparent;
}

.form-group select option {
    color: #333;
    background-color: white;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

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

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 10px;
    color: #d1d5db;
}

.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: var(--transition);
}

.social-links .social-link i {
    width: 24px;
    height: 24px;
    color: #d1d5db;
    stroke-width: 2;
    transition: var(--transition);
}

.social-links .social-link:hover i {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #9ca3af;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .navbar-menu {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
        margin-right: 15px;
    }
    
    .social-nav {
        display: none;
    }
    
    /* Logo responsive */
    .logo-img {
        height: 28px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    /* Redes sociales responsive */
    .social-nav {
        gap: 8px;
    }
    
    .social-nav-link {
        width: 28px;
        height: 28px;
    }
    
    .social-nav-link i {
        width: 14px;
        height: 14px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        min-height: calc(100vh - 120px);
        align-items: center;
        padding: 0 20px;
        gap: 20px;
        position: relative;
    }
    
    .hero {
        min-height: calc(100vh - 80px);
        padding: 40px 0 20px 0;
        position: relative;
        overflow: hidden;
    }
    
    .hero-img {
        width: 280px;
        height: 336px;
        transform-style: preserve-3d;
        backface-visibility: hidden;
    }
    
    .hero-placeholder {
        width: 280px;
        height: 224px;
    }
    
    .hero-text-slider {
        padding: 5px 0;
        position: absolute;
        bottom: 5px;
        left: 0;
        width: 100%;
        z-index: 10;
    }
    
    .slider-container {
        max-width: 90%;
    }
    
    .slider-content {
        animation-duration: 15s;
        padding: 0 40px;
    }
    
    .slider-text {
        font-size: 1rem;
        margin: 0 25px;
    }
    
    .slider-container::before,
    .slider-container::after {
        height: 30px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nosotros-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contacto-content {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 15px;
    }
    
    .portafolio-filters {
        justify-content: center;
    }
    
    /* Carrusel de servicios responsive */
    .servicios-carousel {
        padding: 0 40px;
    }
    
    .servicios-prev,
    .servicios-next {
        width: 40px;
        height: 40px;
    }
    
    .servicios-prev i,
    .servicios-next i {
        width: 20px;
        height: 20px;
    }
    
    /* Carrusel de blog responsive */
    .blog-carousel {
        padding: 0 40px;
    }
    
    .blog-prev,
    .blog-next {
        width: 40px;
        height: 40px;
    }
    
    .blog-prev i,
    .blog-next i {
        width: 20px;
        height: 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Mostrar video en móviles si está configurado así */
    .hero-video[data-mobile="true"] {
        display: block;
    }
    
    /* Ocultar video en móviles solo si está explícitamente configurado como false */
    .hero-video[data-mobile="false"] {
        display: none;
    }
    
    /* Ajustar overlay cuando no hay video */
    .hero-video-background:not(:has(video)) .hero-video-overlay {
        background: rgba(0, 0, 0, 0.2);
    }
    
    /* Texto gigante responsive */
    .home-section::before {
        font-size: 15vw;
    }
    
    .parallax-text {
        font-size: 15vw;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar .container {
        padding: 0 20px;
    }
    
    .navbar-toggle {
        margin-right: 10px;
    }
    
    .hero .container {
        padding: 0 15px;
    }
    
    /* Logo en pantallas muy pequeñas */
    .logo-img {
        height: 28px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    /* Ocultar texto del logo en pantallas muy pequeñas */
    @media (max-width: 360px) {
        .logo-text {
            display: none;
        }
        
        .logo-img {
            height: 32px;
        }
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .features-grid,
    .portafolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Carrusel de servicios en móvil */
    .servicios-carousel {
        padding: 0 20px;
    }
    
    .servicio-card {
        min-width: 280px;
    }
    
    /* Carrusel de blog en móvil */
    .blog-carousel {
        padding: 0 20px;
    }
    
    .blog-card {
        min-width: 280px;
        flex: 0 0 280px;
    }
    
    .servicios-prev,
    .servicios-next {
        width: 35px;
        height: 35px;
    }
    
    .servicios-prev i,
    .servicios-next i {
        width: 18px;
        height: 18px;
    }
    
    .form {
        padding: 30px 20px;
    }
    
    /* Texto gigante en pantallas pequeñas */
    .home-section::before {
        font-size: 100vw;
        width: 100vw;
        left: 0;
        transform: translateY(-50%);
        text-align: center;
    }
    
    .parallax-text {
        font-size: 100vw;
        width: 100vw;
        left: 0;
        transform: translateY(-50%);
        text-align: center;
    }
    
    /* Ajustes adicionales para pantallas muy pequeñas */
    @media (max-height: 600px) {
        .hero {
            padding: 20px 0 10px 0;
        }
        
        .hero .container {
            min-height: calc(100vh - 60px);
            gap: 15px;
        }
        
        .hero-img {
            width: 250px;
            height: 300px;
        }
        
        .hero-placeholder {
            width: 250px;
            height: 200px;
        }
        
        .hero-title {
            font-size: 1.8rem;
            margin-bottom: 10px;
        }
        
        .hero-text-slider {
            padding: 3px 0;
            bottom: 3px;
        }
    }
}

/* --- Swiper Portafolio --- */
.portafolio-swiper {
  width: 100%;
  padding: 40px 0 60px 0;
  box-sizing: border-box;
}

.portafolio-swiper .swiper-wrapper {
  align-items: center;
}

.portafolio-swiper .swiper-slide {
  width: 340px;
  max-width: 90vw;
  display: block;
  background: none;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.proyecto-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 40px 30px;
  min-width: 0;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.proyecto-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.proyecto-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  width: 100%;
}

.proyecto-card-link:hover {
  text-decoration: none;
}

/* Eliminar grid anterior */
.portafolio-grid { display: block !important; }

/* Swiper navigation y paginación */
.swiper-button-next, .swiper-button-prev {
  color: var(--secondary-color);
  background: rgba(0,0,0,0.08);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.swiper-pagination-bullet {
  background: var(--secondary-color);
  opacity: 0.4;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

/* Mejoras para los filtros */
.portafolio-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
}

.filter-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  box-shadow: var(--shadow-orange);
}

@media (max-width: 600px) {
  .portafolio-swiper .swiper-slide, .proyecto-card { 
    max-width: 95vw; 
    padding: 20px 15px; 
  }
  
  .portafolio-filters {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

.side-nav {
    position: fixed;
    top: 50%;
    left: 32px;
    transform: translateY(-50%);
    z-index: 1002;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media (max-width: 900px) {
    .side-nav { display: none !important; }
}
.side-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.side-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    outline: none;
    border: none;
    position: relative;
}
.side-dot span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.35;
    transition: background 0.2s, opacity 0.2s, transform 0.2s;
}
.side-dot.active span {
    background: var(--accent-color, #d7611c);
    opacity: 1;
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(215,97,28,0.15);
}
.side-dot:hover span, .side-dot:focus span {
    opacity: 0.7;
    background: var(--accent-color, #d7611c);
}
.side-nav-arrow {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 auto;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}
.side-nav-arrow:hover, .side-nav-arrow:focus {
    color: var(--accent-color, #d7611c);
    transform: scale(1.1);
    opacity: 1;
}

/* Menú hamburguesa para desktop (aparece con scroll) */
.desktop-hamburger-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.desktop-hamburger-menu.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.hamburger-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
}

.hamburger-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    z-index: -1;
}

.hamburger-content {
    width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    padding: 60px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}

.desktop-hamburger-menu.active .hamburger-content {
    transform: translateX(0);
}

.hamburger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.hamburger-logo {
    display: flex;
    align-items: center;
}

.hamburger-logo .logo-img {
    height: 40px;
    width: auto;
}

.hamburger-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hamburger-close span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger-close span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.hamburger-close:hover span {
    background: var(--accent-color);
}

.hamburger-nav {
    flex: 1;
}

.hamburger-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hamburger-nav-list li {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
}

.desktop-hamburger-menu.active .hamburger-nav-list li {
    opacity: 1;
    transform: translateX(0);
}

.desktop-hamburger-menu.active .hamburger-nav-list li:nth-child(1) { transition-delay: 0.1s; }
.desktop-hamburger-menu.active .hamburger-nav-list li:nth-child(2) { transition-delay: 0.2s; }
.desktop-hamburger-menu.active .hamburger-nav-list li:nth-child(3) { transition-delay: 0.3s; }
.desktop-hamburger-menu.active .hamburger-nav-list li:nth-child(4) { transition-delay: 0.4s; }
.desktop-hamburger-menu.active .hamburger-nav-list li:nth-child(5) { transition-delay: 0.5s; }
.desktop-hamburger-menu.active .hamburger-nav-list li:nth-child(6) { transition-delay: 0.6s; }

.hamburger-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
    padding: 15px 0;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.hamburger-nav-link:hover {
    color: var(--accent-color);
    transform: translateX(10px);
}

.hamburger-nav-link:hover::before {
    width: 100%;
}

.hamburger-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.hamburger-social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-social-link:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.hamburger-social-link i {
    width: 20px;
    height: 20px;
}

/* Mostrar hamburger en desktop desde la carga */
@media (min-width: 901px) {
    /* Ocultar el menú de navegación normal en desktop */
    .navbar-menu {
        display: none;
    }
    
    /* Mantener las redes sociales visibles */
    .social-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: all 0.3s ease;
    }
    
    /* Mostrar el botón hamburguesa desde la carga */
    .desktop-hamburger-menu {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }
    
    .desktop-hamburger-menu .hamburger-toggle {
        display: flex;
    }
    
    /* El overlay solo debe aparecer cuando el menú está activo */
    .desktop-hamburger-menu:not(.active) .hamburger-overlay {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .desktop-hamburger-menu.active .hamburger-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Hacer la barra del menú normal transparente al hacer scroll */
    .header.scrolled {
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
    
    .header.scrolled .navbar {
        background: transparent !important;
    }
    
    .header.scrolled .logo {
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }
    
    .header.scrolled .logo:hover {
        opacity: 1;
    }

    .header.scrolled ~ .portafolio-section .portfolio-slider-nav .nav-items,
    .header.scrolled ~ .portafolio-section .portfolio-slider-nav .logo {
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        transition: opacity 0.3s;
    }
}

/* Ocultar hamburger en móviles */
@media (max-width: 900px) {
    .desktop-hamburger-menu {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .desktop-hamburger-menu .hamburger-toggle {
        display: none !important;
    }
    
    /* En móviles, el menú solo se muestra cuando tiene la clase .active */
    .header.scrolled .navbar-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
    }
    
    .header.scrolled .navbar-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .header.scrolled .social-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .portfolio-slider-nav .nav-items,
    .portfolio-slider-nav .logo {
        display: none !important;
    }
}

/* ===== ALTERNATIVA: Botón Geométrico Moderno ===== */
.hamburger-toggle.modern {
    width: 56px;
    height: 56px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 12px;
    border: 2px solid rgba(212, 253, 72, 0.2);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-toggle.modern:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(212, 253, 72, 0.5);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(212, 253, 72, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hamburger-toggle.modern span {
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    border-radius: 1px;
}

.hamburger-toggle.modern:hover span {
    background: var(--primary-color);
    box-shadow: 0 0 8px rgba(212, 253, 72, 0.6);
}

.hamburger-toggle.modern.active {
    background: rgba(215, 97, 28, 0.9);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.hamburger-toggle.modern.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #fff;
}

.hamburger-toggle.modern.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-toggle.modern.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #fff;
}

/* ===== ALTERNATIVA: Botón Neumórfico ===== */
.hamburger-toggle.neumorphic {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 50%;
    border: none;
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.hamburger-toggle.neumorphic:hover {
    transform: scale(1.05);
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, 0.5),
        -12px -12px 24px rgba(255, 255, 255, 0.08);
}

.hamburger-toggle.neumorphic:active {
    transform: scale(0.95);
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.4),
        -4px -4px 8px rgba(255, 255, 255, 0.05);
}

.hamburger-toggle.neumorphic span {
    width: 26px;
    height: 3px;
    background: #94a3b8;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-toggle.neumorphic:hover span {
    background: var(--primary-color);
}

.hamburger-toggle.neumorphic.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--accent-color);
}

.hamburger-toggle.neumorphic.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-toggle.neumorphic.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: var(--accent-color);
}

/* ===== ALTERNATIVAS DE DISEÑO PARA EL MENÚ DESPLEGADO ===== */

/* Opción 1: Menú Minimalista con Glassmorphism */
.hamburger-overlay.minimal {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(30px);
}

.hamburger-content.minimal {
    width: 350px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hamburger-content.minimal .hamburger-nav-link {
    color: #fff;
    font-size: 1.3rem;
    padding: 12px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger-content.minimal .hamburger-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Opción 2: Menú Geométrico Moderno */
.hamburger-overlay.geometric {
    background: linear-gradient(135deg, rgba(0, 90, 104, 0.9), rgba(0, 0, 0, 0.8));
}

.hamburger-content.geometric {
    width: 450px;
    background: #0f172a;
    border-left: 4px solid var(--accent-color);
    padding: 50px 40px;
    position: relative;
}

.hamburger-content.geometric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.hamburger-content.geometric .hamburger-nav-link {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.hamburger-content.geometric .hamburger-nav-link::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.hamburger-content.geometric .hamburger-nav-link:hover {
    color: var(--accent-color);
    padding-left: 20px;
}

.hamburger-content.geometric .hamburger-nav-link:hover::before {
    width: 15px;
}

/* Opción 3: Menú Centrado con Cards */
.hamburger-overlay.centered {
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.hamburger-content.centered {
    width: 600px;
    height: auto;
    max-height: 80vh;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 20px;
    padding: 60px 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.hamburger-content.centered .hamburger-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.hamburger-content.centered .hamburger-nav-list li {
    margin-bottom: 0;
}

.hamburger-content.centered .hamburger-nav-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.hamburger-content.centered .hamburger-nav-link:hover {
    background: rgba(215, 97, 28, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(215, 97, 28, 0.3);
}

/* Opción 4: Menú Full Screen con Animaciones */
.hamburger-overlay.fullscreen {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.hamburger-content.fullscreen {
    width: 100vw;
    height: 100vh;
    background: transparent;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger-content.fullscreen .hamburger-nav-list {
    text-align: center;
    margin-bottom: 60px;
}

.hamburger-content.fullscreen .hamburger-nav-link {
    font-size: 2.5rem;
    font-weight: 300;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
    position: relative;
}

.hamburger-content.fullscreen .hamburger-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

.hamburger-content.fullscreen .hamburger-nav-link:hover {
    color: #fff;
    transform: scale(1.1);
}

.hamburger-content.fullscreen .hamburger-nav-link:hover::after {
    width: 100px;
}

/* Opción 5: Menú Lateral Elegante */
.hamburger-overlay.elegant {
    background: rgba(0, 0, 0, 0.4);
    justify-content: flex-end;
}

.hamburger-content.elegant {
    width: 380px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    position: relative;
}

.hamburger-content.elegant .hamburger-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 40px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hamburger-content.elegant .hamburger-nav {
    padding: 40px;
}

.hamburger-content.elegant .hamburger-nav-link {
    color: #94a3b8;
    font-size: 1.2rem;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger-content.elegant .hamburger-nav-link::before {
    content: '→';
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.hamburger-content.elegant .hamburger-nav-link:hover {
    background: rgba(215, 97, 28, 0.1);
    color: var(--accent-color);
    padding-left: 25px;
}

.hamburger-content.elegant .hamburger-nav-link:hover::before {
    opacity: 1;
}

.hamburger-content.elegant .hamburger-social {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 40px;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contacto-section .social-icons i {
    color: var(--primary-color);
    font-size: 2rem;
    transition: color 0.2s;
}
.contacto-section .social-icons a:hover i {
    color: #fff;
}

.contacto-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
    filter: blur(8px);
}

.contacto-section > .container {
    position: relative;
    z-index: 1;
}

/* ===== PÁGINA TODOS LOS PROYECTOS ===== */
.proyectos-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
}

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

.proyectos-hero .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.proyectos-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.proyectos-hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.proyectos-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.proyectos-hero .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.proyectos-hero .hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.proyectos-hero .btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.proyectos-hero .btn-hero:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(215, 97, 28, 0.3);
}

.proyectos-hero .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.proyectos-hero .scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Galería de Proyectos */
.proyectos-gallery {
    padding: 80px 0;
    background: #232d3e; /* azul oscuro exacto de la imagen */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.proyectos-gallery .container {
    max-width: 100vw !important;
    width: 100vw !important;
    padding: 0 2rem !important;
    margin: 0 !important;
}

.masonry-grid {
    column-count: 5;
    column-gap: 1.5rem;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 1400px) {
    .masonry-grid { column-count: 4; }
}
@media (max-width: 1200px) {
    .masonry-grid { column-count: 3; }
}
@media (max-width: 900px) {
    .masonry-grid { column-count: 2; }
}
@media (max-width: 600px) {
    .masonry-grid { column-count: 2; }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0;
    background: none;
    padding: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Animación de entrada para masonry items */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay escalonado para los items */
.masonry-item:nth-child(1) { animation-delay: 0.1s; }
.masonry-item:nth-child(2) { animation-delay: 0.2s; }
.masonry-item:nth-child(3) { animation-delay: 0.3s; }
.masonry-item:nth-child(4) { animation-delay: 0.4s; }
.masonry-item:nth-child(5) { animation-delay: 0.5s; }
.masonry-item:nth-child(6) { animation-delay: 0.6s; }
.masonry-item:nth-child(7) { animation-delay: 0.7s; }
.masonry-item:nth-child(8) { animation-delay: 0.8s; }
.masonry-item:nth-child(9) { animation-delay: 0.9s; }
.masonry-item:nth-child(10) { animation-delay: 1.0s; }

.masonry-img-wrapper {
    width: 100%;
    display: block;
    position: relative;
}
.masonry-img-wrapper {
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden; /* Contiene la imagen escalada */
}

.masonry-img-wrapper img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    transform-origin: center center; /* Escala desde el centro */
}

.masonry-item:hover .masonry-img-wrapper img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05);
}

.masonry-hover-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(20, 28, 44, 0.95), rgba(20, 28, 44, 0.7));
    color: #fff;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    text-align: left;
    backdrop-filter: blur(10px);
}
.masonry-item:hover .masonry-hover-info {
    opacity: 1;
    transform: translateY(0);
}
.masonry-hover-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    color: #fff;
}
.masonry-hover-info .cat {
    font-size: 0.9rem;
    color: #ffb366;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
}

/* Eliminar estilos previos de tarjetas grid/related para esta galería */
.proyectos-gallery .related-grid,
.proyectos-gallery .related-item,
.proyectos-gallery .related-img-wrapper,
.proyectos-gallery .related-overlay,
.proyectos-gallery .related-info,
.proyectos-gallery .related-btn,
.proyectos-gallery .related-cat {
    all: unset;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.gallery-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 40px;
    width: 100%;
    max-width: none;
}

.related-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.related-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.related-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-img-wrapper img {
    transform: scale(1.05);
}

.proyecto-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

.related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.related-item:hover .related-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9));
}

.related-info {
    color: white;
    text-align: left;
}

.related-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.related-cat {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.related-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    background: rgba(215, 97, 28, 0.9);
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.related-item:hover .related-btn {
    opacity: 1;
}

/* Estado sin proyectos */
.no-proyectos {
    text-align: center;
    padding: 80px 20px;
}

.no-proyectos-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-proyectos-content i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.no-proyectos-content h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
}

.no-proyectos-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .proyectos-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .proyectos-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .proyectos-hero .hero-video {
        display: none;
    }
    
    .proyectos-hero .hero-background {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .related-info h3 {
        font-size: 1.2rem;
    }
    
    .related-overlay {
        padding: 1rem;
    }
    
    /* Responsive para masonry full width */
    .proyectos-gallery .container {
        padding: 0 1rem !important;
    }
    
    .masonry-grid {
        column-gap: 1rem;
        padding: 0 1rem;
    }
    
    .masonry-hover-info {
        padding: 1rem;
    }
    
    .masonry-hover-info h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .proyectos-hero .hero-title {
        font-size: 2rem;
    }
    
    .gallery-title {
        font-size: 1.8rem;
    }
    
    .related-info h3 {
        font-size: 1.1rem;
    }
    
    .related-overlay {
        padding: 1rem;
    }
} 