/* Variables y reset */
:root {
    --primary: #0a0a0f;
    --secondary: #13131f;
    --accent: #6c63ff;
    --accent-gradient: linear-gradient(135deg, #6c63ff 0%, #4a42d4 100%);
    --accent-light: #8a84ff;
    --text: #f0f0ff;
    --text-secondary: #a0a0c0;
    --card-bg: rgba(25, 25, 40, 0.7);
    --border-color: rgba(108, 99, 255, 0.2);
    --transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 10px 30px rgba(108, 99, 255, 0.2);
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #c2c2e3;
    line-height: 1.7;
}

h5 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: #0a0a0a;
    
     font-family: 'Contrail One', serif;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 130;
    position: relative;
    overflow: hidden;
}

.btn {
    
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-accent);
    letter-spacing: 0.5px;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn:hover:before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

/* Efectos de fondo */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(108, 99, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(108, 99, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(108, 99, 255, 0.03) 0%, transparent 30%);
    z-index: -1;
    pointer-events: none;
}

/* Header y navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, #ffffff 0% -24%, #ffffff 100%);
    backdrop-filter: blur(20px);
    
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    padding: 0rem 23px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}





.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2.5rem;
    position: relative;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-light);
}

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 830px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(108, 99, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(108, 99, 255, 0.1) 0%, transparent 40%),
        var(--primary);
    background-image: url('');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: -2;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    color: var(--accent-light);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
   
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--text);
    max-width: 700px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    position: relative;
    transform: translateY(0);
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-20px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.service-card:hover:before {
    opacity: 0.1;
}

.service-icon {
    height: 370px;
    background: linear-gradient(135deg, #4116a7, #000000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
    isolation: isolate; /* Crea un nuevo contexto de apilamiento */
}

.service-icon:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.service-card:hover .service-icon:after {
    transform: translateX(100%);
}

.service-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    margin-bottom: 1rem;
}

.service-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    position: relative;
    padding-right: 2rem;
}

.service-link:after {
    content: '→';
    position: absolute;
    right: 0;
    transition: var(--transition);
}

.service-link:hover {
    color: white;
    padding-right: 2.5rem;
}

.service-link:hover:after {
    right: -0.5rem;
}

/* Sobre nosotros */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
}

.about-text h2:after {
    left: 0;
    transform: none;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: transparent;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.about-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.about-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.1;
    z-index: 1;
    mix-blend-mode: overlay;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Portafolio */
.portfolio {
    background-color: var(--secondary);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-3px);
}



.portfolio-grid {
    display: block; /* Cambiar de grid a block */
    width: 100%;
}

.dynamic-projects-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}
/* 2 columnas en tablets y pantallas medianas */
@media (min-width: 768px) {
    .dynamic-projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3 columnas en pantallas grandes */
@media (min-width: 1200px) {
    body {
        zoom: 80%;
    }
    .dynamic-projects-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Clase para filtrado */
.hidden {
    display: none !important;
}
/* Asegurar que los items del portfolio tengan el comportamiento correcto */
.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    min-height: 300px;         /* altura mínima, pero se adapta al contenido */
    height: auto;              /* permite crecer si la imagen es más alta */
    width: 100%;
}
/* ==================== CARRUSEL EN PORTFOLIO GRID ==================== */
.portfolio-images-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px; /* Ajusta según tu diseño, puede ser 250px en móviles */
    overflow: hidden;
    border-radius: var(--border-radius);
    background: #000;
}
.portfolio-image.active {
    opacity: 1;
}

.image-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    z-index: 5;
    pointer-events: none;
}
/* Ajuste para videos dentro del carrusel */
.portfolio-media[type="video"] {
    object-fit: contain;
    background: #000;
}


.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

/* Asegura que el overlay no tape el contador */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.6) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}


.portfolio-item:hover .portfolio-overlay {
    opacity: 1 !important;
}
/* Botón dentro del overlay del portafolio */
.portfolio-overlay .btn {
    align-self: flex-start;          /* Alinea a la izquierda (opcional) */
    margin-top: 1rem;                /* Separación respecto al texto */
    padding: 0.75rem 1.5rem;         /* Tamaño más compacto */
    font-size: 0.9rem;
    background: var(--accent-gradient);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-accent);
    width: auto;                      /* Que no ocupe todo el ancho */
    display: inline-block;
    text-decoration: none;
}

.portfolio-overlay .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

@media (hover: none) and (pointer: coarse) {
    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.6) 100%);
    }
}
.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.portfolio-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}
/* Proceso de trabajo */
.process {
    background-color: var(--secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.process-step {
    text-align: center;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
}

.process-step:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.step-number:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.process-step:hover .step-number:after {
    transform: translateX(100%);
}

/* Contacto */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.contact-detail:hover {
    transform: translateX(10px);
    border-color: var(--accent);
}

.contact-detail i {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-detail h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-detail p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgb(255 255 255 / 7%);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-5px);
}

.contact-form {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 3.5rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 1.25rem;
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--text);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo .logo-circle {
    margin-bottom: 1.5rem;
}

.footer-logo p {
    margin-bottom: 0;
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 10px;
}

.footer-links a:before {
    content: '›';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: var(--transition);
    color: var(--accent);
}

.footer-links a:hover:before {
    left: 0;
    opacity: 1;
}

.newsletter-form {
    margin-top: 1.5rem;
}

.newsletter-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text);
    margin-bottom: 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-secondary);
        flex-direction: column;

}

/* Responsive */
@media (max-width: 1200px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 3rem;
    }

    .about-content,
    .contact-content {
        gap: 4rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    section {
        padding: 6rem 0;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-text h2 {
        text-align: center;
    }

    .about-text h2:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .logo-img {
             height: 70px;
             /* Antes 110px */
         }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-item {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        
        height: 100vh;
        background: rgb(255 255 255 / 98%);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        transition: var(--transition);
        backdrop-filter: blur(20px);
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1rem 0;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        min-height: 700px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
    }

    .services-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form {
        padding: 2.5rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
        .modal-image-slide {
        padding: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    body {
        zoom: 60%;
    }
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        min-height: 930px;
    }

    .testimonial-item {
        padding: 2rem 1.5rem;
    }

    .contact-detail {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-detail i {
        margin-bottom: 1rem;
    }

    
}

/* Animaciones al scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* ==================== MODAL CORREGIDO ==================== */

/* Overlay del modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

/* Contenido del modal */
.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    max-width: 1200px;
    width: 100%;
    max-height: 95vh;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

/* Botón cerrar */
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(108, 99, 255, 0.2);
    border: 1px solid rgba(108, 99, 255, 0.4);
    color: var(--text);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
}

.modal-close:hover {
    background: var(--accent);
    color: white;
    transform: rotate(90deg);
}

/* Cuerpo del modal */
.modal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Fuerza al contenedor a respetar el layout correcto */
.modal-image-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 70vh;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Track de imágenes - CORRECCIÓN CRÍTICA */
.modal-images-track {
    display: flex !important;
    width: auto !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}


/* Cada slide ocupa exactamente el 100% del contenedor visible */
.modal-image-slide {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.25rem !important;
    box-sizing: border-box !important;
}


/* Imágenes perfectamente centradas y escaladas */
.modal-image {
    max-width: 20% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px;
    cursor: pointer;
    display: block !important;
    margin: 0 auto !important;
}


.modal-image:hover {
    transform: scale(1.02);
}

/* Botones de navegación */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.9);
    border: 2px solid var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-nav-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 25px rgba(108, 99, 255, 0.6);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Contador de imágenes */
.modal-image-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 10, 15, 0.85);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 3;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

/* Thumbnails */
.modal-thumbnails-container {
    padding: 15px;
    background: var(--secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.modal-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0px 0;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--secondary);
}

.modal-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.modal-thumbnails::-webkit-scrollbar-track {
    background: var(--secondary);
    border-radius: 3px;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.modal-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 3px solid transparent;
    flex-shrink: 0;
}

.modal-thumbnail:hover {
    opacity: 1;
    border-color: rgba(108, 99, 255, 0.5);
}

.modal-thumbnail.active {
    opacity: 1;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

/* Información del modal */
.modal-info {
    padding: 1.2rem;
    overflow-y: auto;
    max-height: 40vh;
    flex-shrink: 6;
}

.modal-header {
    margin-bottom: -5rem;
}

.modal-category {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 5rem;
}

.modal-details {
    display: grid;
    gap: 2rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
}

.modal-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

/* ==================== LIGHTBOX (DOBLE CLICK) ==================== */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.4s ease;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.8rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ==================== ANIMACIONES ==================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== RESPONSIVE MODAL ==================== */

@media (max-width: 992px) {
    .modal-image-container {
        height: 50vh;
        min-height: 350px;
    }
    
    .modal-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .modal-thumbnail {
        width: 70px;
        height: 52px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        max-height: 98vh;
    }
    
    .modal-image-container {
        height: 40vh;
        min-height: 300px;
    }
    
    .modal-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .modal-thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .modal-info {
        padding: 1.5rem;
        max-height: 35vh;
    }
    .modal-image{
        max-width: 10% !important;
    }
}

@media (max-width: 480px) {
    .modal-image-container {
        height: 35vh;
        min-height: 250px;
    }
    
    .modal-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .modal-thumbnail {
        width: 50px;
        height: 38px;
    }
     .modal-image{
        max-width: 180px !important;
    }
}


/* ==================== ESTILOS ADICIONALES ==================== */

.qr_code {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.qr_code img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.portfolio-images-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}



/* Estilos para videos en modal */
.modal-video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    background: #000;
    border-radius: 8px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s;
}

.video-controls:hover {
    opacity: 1;
}

.video-controls button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s;
}

.video-controls button:hover {
    color: #4CAF50;
}

/* Indicador de video en thumbnail */
.modal-thumbnail.video-indicator::after {
    content: '🎬';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-media,
.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: contain !important;   /* forzamos que quepa entera */
    display: block;
}

.portfolio-media {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.portfolio-media img,
.portfolio-media video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Clave: la imagen se ve completa, sin recortes */
    display: block;
}

.portfolio-media video {
    object-fit: contain;
}

/* Ajustes para el modal */
.modal-image-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    max-height: 70vh;
    overflow: hidden;
}

.modal-image-slide.active {
    display: flex;
}

/* ==================== PAGINACIÓN ==================== */
.pagination-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    background: var(--secondary);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-btn {
    background: var(--secondary);
    color: var(--text-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 35%;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(.active) {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgb(102 66 247);
}

.page-dots {
    color: var(--text-secondary);
    padding: 0 0.5rem;
    user-select: none;
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

/* ==================== LIGHTBOX CARRUSEL MEJORADO ==================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-images-container {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.lightbox-images-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.lightbox-video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    font-size: 1.8rem;
    backdrop-filter: blur(5px);
}

.lightbox-nav-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 25px rgba(108,99,255,0.6);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    font-size: 1.5rem;
    backdrop-filter: blur(5px);
}

.lightbox-close:hover {
    background: #f44336;
    border-color: #f44336;
    transform: rotate(90deg) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .lightbox-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .lightbox-counter {
        bottom: 20px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Animación de loader */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive para paginación */
@media (max-width: 768px) {
    .pagination {
        gap: 0.5rem;
    }
    
    .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .page-btn {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
    
    .page-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .page-numbers {
        gap: 0.25rem;
    }
    
    .pagination-btn span {
        display: none;
    }
    
    .pagination-btn i {
        margin: 0;
    }
}


/* Estilos para el modal de servicios */
.service-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.service-modal-icon {
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.8rem;
}

.service-modal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-modal-description {
    background: linear-gradient(135deg, #2c2c55, #7f7f7f);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 6rem;
}

.service-modal-long-description {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-modal-media {
    margin-top: 2rem;
}

.service-modal-media img,
.service-modal-media video {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Estilos para la paginación */
.pagination-container {
    margin-top: 3rem;
    text-align: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-dark);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}



.page-btn:hover {
    background: #e0e0e0;
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-dots {
    padding: 0.5rem;
    color: #666;
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Ajustes para el modal en móviles */
@media (max-width: 768px) {
    .service-modal-header {
        flex-direction: column;
        text-align: center;
    }

    .service-modal-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Estilos para el modal */
#serviceModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

#serviceModal.active {
    opacity: 1;
}

#serviceModal .modal-content {
    
    border-radius: 12px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

#serviceModal.active .modal-content {
    transform: translateY(0);
}

#serviceModal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    z-index: 10001;
}

#serviceModal .modal-close:hover {
    color: #333;
}

#serviceModal .modal-body {
    padding: 2rem;
}



/* Imagen del servicio */
.service-icon-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Debajo del icono */
    opacity: 0.7; /* Transparencia para que se vea el fondo */
    transition: var(--transition);
    mix-blend-mode: overlay; /* Mezcla profesional con el fondo */
}

/* Icono sobre la imagen */
.service-icon i {
    position: relative;
    z-index: 2; /* Encima de la imagen */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transition: var(--transition);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Efecto hover */
.service-card:hover .service-icon-image {
    opacity: 0.8;
    transform: scale(1.05);
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

/* Efecto de brillo al pasar el mouse (manteniendo el existente) */
.service-icon:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 1; /* Entre la imagen y el icono */
}

.service-card:hover .service-icon:after {
    transform: translateX(100%);
}

/* Variante: Para cuando solo hay icono (sin imagen) */
.service-icon:has(img) {
    background: linear-gradient(135deg, rgba(71, 71, 113, 0.8), rgba(56, 25, 87, 0.8));
}

/* Mejora para el contenido del servicio */
.service-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3; /* Asegura que esté sobre los elementos del icono */
}
@keyframes fadeSlide {
    from {
        opacity: 0.5;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.portfolio-media.active {
    animation: fadeSlide 1s ease-out forwards;
}

/* ==================== SISTEMA DE NOTIFICACIONES ==================== */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 10px 20px rgba(108, 99, 255, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transform: translateX(150%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(150%);
    opacity: 0;
}

/* Efecto de entrada desde la derecha */
@keyframes slideInRight {
    from {
        transform: translateX(150%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Tipos de notificaciones */
.notification.success {
    border-left: 4px solid #4CAF50;
    background: linear-gradient(135deg, rgba(25, 25, 40, 0.95), rgba(20, 40, 25, 0.9));
}

.notification.success .notification-icon {
    color: #4CAF50;
}

.notification.error {
    border-left: 4px solid #f44336;
    background: linear-gradient(135deg, rgba(25, 25, 40, 0.95), rgba(40, 20, 25, 0.9));
}

.notification.error .notification-icon {
    color: #f44336;
}

.notification.warning {
    border-left: 4px solid #FF9800;
    background: linear-gradient(135deg, rgba(25, 25, 40, 0.95), rgba(40, 30, 20, 0.9));
}

.notification.warning .notification-icon {
    color: #FF9800;
}

.notification.info {
    border-left: 4px solid #2196F3;
    background: linear-gradient(135deg, rgba(25, 25, 40, 0.95), rgba(20, 30, 40, 0.9));
}

.notification.info .notification-icon {
    color: #2196F3;
}

/* Icono de notificación */
.notification-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Contenido de la notificación */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Botón cerrar */
.notification-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text);
    transform: rotate(90deg);
    border-color: rgba(108, 99, 255, 0.3);
}

/* Barra de progreso */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-gradient);
    width: 100%;
    transform: scaleX(1);
    transform-origin: left;
    animation: progressBar 5s linear forwards;
    border-radius: 0 0 16px 16px;
}

@keyframes progressBar {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Efecto de brillo al hover */
.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.notification:hover::before {
    transform: translateX(100%);
}

/* Responsive */
@media (max-width: 768px) {
    .notifications-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 1rem;
    }
    
    .notification-title {
        font-size: 1rem;
    }
    
    .notification-message {
        font-size: 0.9rem;
    }
}

/* ==================== MODALES MODERNOS ==================== */
.modal-overlay.active .modal-content {
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ==================== BOTÓN DE WHATSAPP ==================== */
.whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 70px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    
    animation: whatsappPulse 2s infinite;
    overflow: hidden;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #1da851, #0d7d5a);
}

.whatsapp-btn:active {
    transform: scale(0.95);
}

/* Tooltip del botón */
.whatsapp-tooltip {
    position: absolute;
    bottom: 85px;
    right: 0;
    background: rgba(25, 25, 40, 0.95);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    pointer-events: none;
}

.whatsapp-tooltip:after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(25, 25, 40, 0.95);
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==================== CARRUSEL DE FONDO EN SERVICIOS ==================== */
.service-icon {
    position: relative;
    overflow: hidden;
}

.service-icon .service-bg-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.service-icon .service-bg-carousel .carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
}

.service-icon .service-bg-carousel .carousel-slide {
    flex: 0 4 100%;
    height: 100%;
    overflow: hidden;
}

.service-icon .service-bg-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: inherit; /* Para que cubra todo el área */
    display: block;
}

.service-icon i {
    position: relative;
    z-index: 3; /* Asegurar que el icono esté por encima */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transition: var(--transition);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Ajustar el overlay de brillo para que no tape las imágenes */
.service-icon:after {
    z-index: 2; /* Entre el fondo y el icono */
}

/* Animación de pulso */
@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Efecto de brillo al pasar el mouse */
.whatsapp-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.whatsapp-btn:hover:before {
    transform: translateX(100%);
}

/* Responsive para WhatsApp */
@media (max-width: 768px) {
    .whatsapp-btn {
        width: 60px;
        height: 60px;
        bottom: 100px;
        right: 55px;
        font-size: 1.8rem;
    }
    
    .whatsapp-tooltip {
        display: none; /* Ocultar tooltip en móviles para mejor experiencia */
    }
    
    /* Animación más sutil en móviles */
    @keyframes whatsappPulse {
        0% {
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        }
    }
}

/* Para tablets */
@media (max-width: 992px) and (min-width: 769px) {
    .whatsapp-btn {
        width: 65px;
        height: 65px;
    }
}


 .logo {

         align-items: center;

         flex-direction: column;
     }

     .logo i {
         color: #ff9b00;
         font-size: 2.2rem;
     }

     .logo-text h1 {
         font-size: 1.8rem;
         color: #ff9b00;
     }

     .logo-text p {
         font-size: 0.9rem;
         color: var(--gray);
     }
.logo-img {
    height: 110px;
    width: auto;
   
    object-fit: contain;
    transition: var(--transition);
    border-radius: 100%;
    
}
     .logo {

         align-items: center;

         flex-direction: column;
     }



     

     .services, .process, .contact, .portfolio {
  content-visibility: auto;
  contain-intrinsic-size: 500px; /* Ajusta según la altura típica */
}

@media (max-width: 768px) {
    .portfolio-images-container {
        min-height: 250px;
    }
}


/* Asegurar que el contenedor principal del carrusel oculte los slides adyacentes */
.portfolio-images-container {
    overflow: hidden !important;          /* Forzar ocultamiento */
    height: 280px;                        /* Altura fija (ajústala según tu diseño) */
    position: relative;
}

/* Cada slide debe tener overflow hidden para que la imagen zoom no se salga */
.portfolio-media {
    overflow: hidden;
}

/* La imagen (o video) dentro del slide activo */
.portfolio-media img,
.portfolio-media video {
    transition: transform 0.4s ease;
    transform-origin: center center;       /* El zoom se hace desde el centro */
    will-change: transform;                /* Mejora rendimiento */
}

/* Efecto zoom al hacer hover sobre el ítem completo */
.portfolio-item:hover .portfolio-media img,
.portfolio-item:hover .portfolio-media video {
    transform: scale(1.1);
}

/* Si usas object-fit: contain, asegura que el contenedor respete el tamaño */
.portfolio-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;                      /* Fondo negro para rellenar */
}


/* ==================== CARRUSEL PARA SERVICIOS ==================== */
.service-media-carousel {
    margin-top: 2rem;
    width: 100%;
    background: var(--secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.service-media-carousel .carousel-container {
    position: relative;
    width: 100%;
    height: 300px; /* Ajusta según necesites */
    overflow: hidden;
    background: #000;
}

.service-media-carousel .carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
     transition: transform 0.9s ease;
}

.service-media-carousel .carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.service-media-carousel .carousel-slide img,
.service-media-carousel .carousel-slide video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.service-media-carousel .carousel-prev,
.service-media-carousel .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.8);
    border: 2px solid var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
}

.service-media-carousel .carousel-prev:hover,
.service-media-carousel .carousel-next:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.5);
}

.service-media-carousel .carousel-prev {
    left: 10px;
}

.service-media-carousel .carousel-next {
    right: 10px;
}

.service-media-carousel .carousel-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .service-media-carousel .carousel-container {
        height: 250px;
    }
    .service-media-carousel .carousel-prev,
    .service-media-carousel .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .service-media-carousel .carousel-container {
        height: 200px;
    }
}



