/* =========================================
   [TAG] 1. VARIABLES & RESET
   ========================================= */
:root {
    --black: #050505;
    --dark: #0f0f0f;
    --white: #ffffff;
    --blue: #0091ea; 
    --gray: #888888;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --border-color: #1a1a1a;
     --primary: #0091ea;
            --primary-glow: rgba(0, 145, 234, 0.4);
            --bg-dark: #050505;
            --text-light: #ffffff;
            --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            
            --instagram: #E1306C;
            --facebook: #1877F2;
            --whatsapp: #25D366;
              --card-bg: #0f0f0f;

}

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

html {
    scroll-behavior: smooth;
}

body { 
    background: var(--black); 
    color: var(--white); 
    font-family: 'Montserrat', sans-serif; 
    overflow-x: hidden;
    line-height: 1.6;
}

.btn-primary { background: var(--primary); color: white; }
        .btn-secondary { border: 1px solid rgba(255,255,255,0.2); color: white; backdrop-filter: blur(5px); }
        .btn:hover { transform: translateY(-5px); background: white; color: black; }



        
/* Clase auxiliar para que el botón ocupe el 100% en formularios */
.gd-btn-full {
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
    display: flex; /* Asegura que el contenido se alinee bien */
}

/* Ajuste específico para el icono de enviar */
.gd-btn-portfolio i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gd-btn-portfolio:hover i {
    transform: translateX(8px) translateY(-5px); /* Efecto de despegue */
}

section { 
    width: 100%; 
    padding: 100px 8%; 
}

a { 
    text-decoration: none; 
    color: inherit;
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 8%;
}

.bg-dark {
    background: var(--dark);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center; 
    text-transform: uppercase;
    width: 100%;
}

.section-title span {
    color: var(--blue);
}

/* =========================================
   [TAG] PRELOADER
   ========================================= */
#preloader {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo img {
    max-width: 150px;
    height: auto;
    animation: spin 2s linear infinite, bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(0, 145, 234, 0.5));
}

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

@keyframes bounce { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-15px); } 
}
  

/* =========================================
   [TAG] 4. BRANDS (VERSIÓN SUPER COMPACTA)
   ========================================= */
.brands-section { 
    background: #0a0a0a; 
    padding: 30px 0; 
    overflow: hidden; 
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    height: 90px; /* Muy compacto */
}

.brands-section::before,
.brands-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.brands-section::before {
    left: 0;
    background: linear-gradient(to right, #0a0a0a, transparent);
}

.brands-section::after {
    right: 0;
    background: linear-gradient(to left, #0a0a0a, transparent);
}

.brands-track { 
    display: flex; 
    gap: 50px;
    align-items: center; 
    width: max-content; 
    animation: scrollLogos 35s linear infinite;
}

.brands-track img { 
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.4; 
    transition: opacity 0.3s ease;
}

.brands-track img:hover {
    opacity: 1;
}

@keyframes scrollLogos {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(calc(-50% - 25px)); 
    }
}

@media (max-width: 768px) {
    .brands-section {
        padding: 20px 0;
        height: 80px;
    }
    
    .brands-track {
        gap: 30px;
    }
    
    .brands-track img {
        height: 35px;
    }
}

/* =========================================
   [TAG] 5. ABOUT (STUDIO)
   ========================================= */
.about-clean { 
    background: var(--black); 
    color: var(--white); 
}

.ac-container {
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center;
}

.ac-tag { 
    color: var(--blue); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-weight: 700; 
    font-size: 0.85rem; 
    margin-bottom: 15px; 
    display: block; 
}

.ac-title { 
    font-size: 3rem; 
    line-height: 1.1; 
    font-weight: 800; 
    margin-bottom: 25px; 
}

.ac-highlight { 
    color: var(--blue); 
}

.ac-description-lead { 
    font-size: 1.15rem; 
    font-weight: 600; 
    margin-bottom: 20px; 
    color: #fff; 
    line-height: 1.5; 
}

.ac-description-sub { 
    color: var(--gray); 
    line-height: 1.7; 
    margin-bottom: 35px; 
}

.ac-stats-row { 
    display: flex; 
    gap: 35px; 
    padding-top: 25px; 
    border-top: 1px solid var(--border-color); 
    flex-wrap: wrap;
}

.ac-stat-item { 
    display: flex; 
    flex-direction: column; 
    min-width: 100px;
}

.ac-number { 
    font-size: 2rem; 
    font-weight: 800; 
    color: var(--blue); 
}

.ac-label { 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    color: var(--gray); 
    letter-spacing: 1px; 
    margin-top: 5px; 
}

.ac-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ac-logo-container {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 40px;
    background: rgba(255, 255, 255, 0.03); 
    border-radius: 20px; 
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 500px;
    transition: var(--transition);
}

.ac-logo-container:hover {
    border-color: var(--blue);
    box-shadow: 0 10px 30px rgba(0, 145, 234, 0.1);
}

.ac-logo-img { 
    max-width: 80%; 
    height: auto; 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); 
    transition: transform 0.4s ease; 
}

.ac-logo-container:hover .ac-logo-img { 
    transform: scale(1.05); 
}

/* Responsive About */
@media (max-width: 992px) {
    .ac-container { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 40px; 
    }
    
    .ac-stats-row { 
        justify-content: center; 
    }
    
    .ac-title { 
        font-size: 2.2rem; 
    }
    
    .ac-description-lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .ac-stats-row {
        gap: 20px;
        justify-content: space-around;
    }
    
    .ac-stat-item {
        min-width: 80px;
    }
}

/* =========================================
   [TAG] 6. VIDEO SHOWCASE (GRID)
   ========================================= */
.video-showcase {
    padding-top: 50px;
    padding-bottom: 50px;
}

.video-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-item {
    position: relative;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-5px);
    border-color: var(--blue);
    box-shadow: 0 15px 30px rgba(0, 145, 234, 0.2);
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition);
}

.video-item:hover video {
    opacity: 1;
    transform: scale(1.05);
}

.video-overlay-inner {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,5,5,0.9) 10%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: var(--transition);
    z-index: 2;
}

.video-item:hover .video-overlay-inner {
    background: linear-gradient(to top, rgba(5,5,5,0.95) 20%, rgba(0, 145, 234, 0.2) 100%);
}

.v-content {
    width: 100%;
}

.v-content i {
    color: var(--blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.v-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1.2;
}

.v-content p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Responsive Video Grid */
@media (max-width: 768px) {
    .video-item {
        height: 350px;
    }
    
    .video-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .v-content h3 {
        font-size: 1.2rem;
    }
}

/* =========================================
   [TAG] 7. SERVICIOS (GRID)
   ========================================= */
#servicios {
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
}

.servicios-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

.services-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; 
    width: 100%;
}

.service-card { 
    background: linear-gradient(145deg, #0f0f0f, #050505); 
    padding: 40px 30px; 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    position: relative; 
    overflow: hidden; 
    transition: var(--transition); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;
    height: 100%;
}

.service-card::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 85, 255, 0.15), transparent);
    opacity: 0; 
    transition: var(--transition);
    z-index: 1;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card i { 
    font-size: 3rem; 
    color: var(--blue); 
    margin-bottom: 25px; 
    transition: var(--transition);
}

.service-card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    font-weight: 700; 
}

.service-card p { 
    color: var(--gray); 
    line-height: 1.7; 
    font-size: 0.95rem; 
}

.service-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--blue); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); 
}

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

.service-card:hover i { 
    transform: scale(1.1); 
}

/* Responsive Services */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 30px 20px;
    }
}

/* Esto soluciona el clic en tu estructura original */
.gd-stretched-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Mayor que el z-index: 2 de tus textos */
    display: block;
    text-decoration: none;
}

/* El truco final para que el navegador reconozca el área clickeable */
.gd-stretched-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* =========================================
   [TAG] 8. CONTACTO CON MAPA
   ========================================= */
.contact-map-layout {
    background: var(--black);
}

.cml-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Columna Formulario */
.cml-form-col {
    width: 100%;
}

.cml-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.cml-form input, 
.cml-form textarea {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    color: white;
    font-family: inherit;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.cml-form input:focus, 
.cml-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: #151515;
    box-shadow: 0 0 0 2px rgba(0, 145, 234, 0.1);
}

.cml-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Columna Mapa */
.cml-map-col {
    height: 100%;
    min-height: 500px;
}

.cml-map-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.cml-map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) invert(0.92) contrast(1.2) brightness(0.9);
}

.cml-map-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 145, 234, 0.3);
    z-index: 2;
}

.cml-map-info p {
    font-size: 0.85rem;
    margin: 8px 0;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cml-map-info i {
    color: var(--blue);
    min-width: 20px;
}

/* Responsive Contacto */
@media (max-width: 992px) {
    .cml-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cml-map-col {
        min-height: 400px;
        order: 2;
    }
    
    .cml-form-col {
        order: 1;
    }
}

@media (max-width: 576px) {
    .cml-map-info {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: -60px;
        background: rgba(5, 5, 5, 0.95);
    }
}


/* =========================================
   [TAG] 10. UTILIDADES & ANIMACIONES
   ========================================= */
.reveal { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: 1s all ease; 
}

.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #007bb5;
}

/* Placeholder styling */
::placeholder {
    color: #666;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #666;
}

::-ms-input-placeholder {
    color: #666;
}

/* Selection color */
::selection {
    background: var(--blue);
    color: white;
}

::-moz-selection {
    background: var(--blue);
    color: white;
}

/* =========================================
   [TAG] 11. PÁGINA PORTAFOLIO (Extras)
   ========================================= */
.hero-mini { 
    text-align: center; 
    padding: 150px 8% 50px; 
    background: var(--dark);
}

.hero-mini h1 { 
    font-size: 3.5rem; 
    text-transform: uppercase; 
    margin-bottom: 20px;
}

.hero-mini p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

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

.filter-btn {
    background: transparent; 
    border: 1px solid var(--border-color); 
    color: var(--gray);
    padding: 10px 25px; 
    cursor: pointer; 
    font-family: inherit;
    text-transform: uppercase; 
    font-size: 0.75rem; 
    font-weight: 700;
    letter-spacing: 1px; 
    transition: var(--transition); 
    border-radius: 4px;
}

.filter-btn:hover, 
.filter-btn.active { 
    border-color: var(--blue); 
    color: var(--white); 
    background: rgba(0, 145, 234, 0.1); 
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); 
    gap: 30px; 
    padding-bottom: 100px; 
}

.gallery-item { 
    height: 450px; 
    position: relative; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid var(--border-color); 
    transition: var(--transition); 
    cursor: pointer;
}

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

.gallery-item:hover img { 
    transform: scale(1.1); 
}

.gallery-item:hover { 
    border-color: var(--blue); 
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 145, 234, 0.2);
}

/* Responsive Gallery */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-mini h1 {
        font-size: 2.5rem;
    }
}

/* =========================================
   [TAG] 12. MEDIA QUERIES GENERALES
   ========================================= */
@media (max-width: 1200px) {
    .section-padding {
        padding: 80px 5%;
    }
    
    section {
        padding: 80px 5%;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 5%;
    }
    
    section {
        padding: 60px 5%;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .ac-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 40px 5%;
    }
    
    section {
        padding: 40px 5%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn2-primary,
    .btn2-secondary {
        padding: 12px 25px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }
}

/* =========================================
   [TAG] 13. ANIMACIONES ADICIONALES
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
