/*!
 * main.css - DGTALIT Theme
 * Estilos base optimizados para agencia digital creativa
 */

/* ====================================
   VARIABLES CSS - DGTALIT
   ==================================== */
:root {
    /* Colores DGTALIT */
    --dgtalit-black: #000000;
    --dgtalit-white: #ffffff;
    --dgtalit-cyan: #00d4ff;
    --dgtalit-blue: #0ea5e9;
    --dgtalit-dark-bg: #0a0a0a;
    --dgtalit-gray: #666666;
    --dgtalit-gray-light: #888888;
    --dgtalit-dark-card: #111111;
    
    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.25rem;     /* 20px */
    --font-size-2xl: 1.5rem;     /* 24px */
    --font-size-3xl: 1.875rem;   /* 30px */
    --font-size-4xl: 2.25rem;    /* 36px */
    --font-size-5xl: 3rem;       /* 48px */
    --font-size-6xl: 3.75rem;    /* 60px */
    
    /* Espaciado */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 2.5rem;   /* 40px */
    --spacing-3xl: 3rem;     /* 48px */
    --spacing-4xl: 4rem;     /* 64px */
    --spacing-5xl: 5rem;     /* 80px */
    --spacing-6xl: 6rem;     /* 96px */
    
    /* Contenedores */
    --container-xl: 1200px;
    
    /* Bordes */
    --border-radius-sm: 4px;
    --border-radius: 6px;
    --border-radius-lg: 8px;
    --border-radius-xl: 12px;
    
    /* Transiciones */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ====================================
   RESET Y BASE
   ==================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--dgtalit-white);
    background-color: var(--dgtalit-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: 70px; /* Espacio para header fijo */
}

/* ====================================
   LAYOUT Y CONTENEDORES
   ==================================== */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

/* ====================================
   DGTALIT HEADER - REPLICA EXACTA
   ==================================== */

.dgtalit-header {
    background-color: var(--dgtalit-black);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.dgtalit-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
/ Logo /
.site-branding {
    flex-shrink: 0;
}
.site-logo {
    text-decoration: none;
    display: block;
}
.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--dgtalit-white);
    letter-spacing: 1px;
    font-family: var(--font-primary);
}
/ Navegación Principal /
.main-navigation {
    display: flex;
    align-items: center;
}
.primary-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}
.primary-menu li {
    margin: 0;
}
.primary-menu a {
    color: var(--dgtalit-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s ease;
    font-family: var(--font-primary);
    white-space: nowrap;
}
.primary-menu a:hover {
    color: var(--dgtalit-cyan);
}
/ Botón CTA /
.header-cta {
    flex-shrink: 0;
    margin-left: 32px;
}
.btn-solicitar-presupuesto {
    background-color: var(--dgtalit-white);
    color: var(--dgtalit-black);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-primary);
    transition: var(--transition);
    white-space: nowrap;
    border: 2px solid var(--dgtalit-white);
}
.btn-solicitar-presupuesto:hover {
    background-color: transparent;
    color: var(--dgtalit-white);
    border-color: var(--dgtalit-cyan);
}
/ Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
}
.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--dgtalit-white);
    transition: var(--transition);
    transform-origin: center;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}






/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Sidebar */
.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background-color: var(--dgtalit-black);
    z-index: 1999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo .logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--dgtalit-white);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--dgtalit-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    border-color: var(--dgtalit-cyan);
    color: var(--dgtalit-cyan);
}

.close-icon {
    font-size: 16px;
    font-weight: 300;
}

/* Mobile Navigation */
.mobile-navigation {
    flex: 1;
    padding: 20px 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-list a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: var(--dgtalit-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.mobile-menu-list a:hover {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--dgtalit-cyan);
    padding-left: 30px;
}

.menu-icon {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Mobile CTA */
.mobile-cta {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-btn-presupuesto {
    display: block;
    background-color: var(--dgtalit-white);
    color: var(--dgtalit-black);
    padding: 14px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-primary);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--dgtalit-white);
}

.mobile-btn-presupuesto:hover {
    background-color: transparent;
    color: var(--dgtalit-white);
    border-color: var(--dgtalit-cyan);
}

/* ====================================
   RESPONSIVE HEADER
   ==================================== */
@media (max-width: 1024px) {
    .primary-menu {
        gap: 24px;
    }
    
    .header-cta {
        margin-left: 24px;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-container {
        height: 60px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    body {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .dgtalit-header .container {
        padding: 0 16px;
    }
    
    .mobile-menu-sidebar {
        width: 90%;
    }
    
    .logo-text {
        font-size: 18px;
    }
}

/* ====================================
   UTILIDADES BASE
   ==================================== */
.text-center { 
    text-align: center; 
}

.hidden { 
    display: none; 
}

.block { 
    display: block; 
}

/* Prevenir scroll del body cuando menú móvil está abierto */
body.mobile-menu-open {
    overflow: hidden;
}

/* ====================================
   TIPOGRAFÍA BASE
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: var(--dgtalit-white);
    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    letter-spacing: -0.05em;
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
}

h3 {
    font-size: var(--font-size-3xl);
}

p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    color: var(--dgtalit-gray-light);
}

/* Enlaces base */
a {
    color: var(--dgtalit-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--dgtalit-white);
}

/* ====================================
   BOTONES BASE
   ==================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-lg);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--dgtalit-cyan);
    color: var(--dgtalit-black);
    border: 2px solid var(--dgtalit-cyan);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--dgtalit-cyan);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--dgtalit-white);
    color: var(--dgtalit-black);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: var(--font-size-lg);
}



/* ====================================
   DGTALIT FOOTER - REPLICA EXACTA
   Añadir al final de main.css
   ==================================== */

.dgtalit-footer {
    background-color: var(--dgtalit-black);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: var(--spacing-5xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-6xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-4xl);
    margin-bottom: var(--spacing-4xl);
    align-items: start;
}

/* Logo section */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo-link {
    text-decoration: none;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

.footer-logo .logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--dgtalit-white);
    letter-spacing: 1px;
    font-family: var(--font-primary);
}

/* Footer sections */
.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--dgtalit-white);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: var(--spacing-sm);
}

.footer-menu a {
    color: var(--dgtalit-gray-light);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: 400;
    transition: var(--transition);
    display: block;
    padding: 4px 0;
}

.footer-menu a:hover {
    color: var(--dgtalit-cyan);
    padding-left: 8px;
}

/* Contact section */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--dgtalit-gray-light);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: 400;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--dgtalit-cyan);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-xl);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-copyright {
    flex: 1;
}

.footer-copyright p {
    color: var(--dgtalit-gray);
    font-size: var(--font-size-sm);
    margin: 0;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--dgtalit-cyan) 0%, var(--dgtalit-blue) 100%);
    opacity: 0;
    transition: var(--transition);
    border-radius: 50%;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: var(--dgtalit-cyan);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.social-icon {
    font-size: 18px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* ====================================
   RESPONSIVE FOOTER
   ==================================== */

/* Tablet */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: var(--spacing-3xl);
    }
    
    .footer-section:last-child {
        grid-column: 1 / -1;
        margin-top: var(--spacing-lg);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dgtalit-footer {
        padding: var(--spacing-4xl) 0 var(--spacing-lg);
        margin-top: var(--spacing-4xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-section {
        align-items: center;
    }
    
    .footer-menu a:hover {
        padding-left: 0;
        color: var(--dgtalit-cyan);
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .footer-copyright {
        order: 2;
    }
    
    .footer-social {
        order: 1;
        justify-content: center;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .dgtalit-footer {
        padding: var(--spacing-3xl) 0 var(--spacing-md);
    }
    
    .footer-content {
        gap: var(--spacing-xl);
    }
    
    .footer-logo .logo-text {
        font-size: 24px;
    }
    
    .footer-title {
        font-size: var(--font-size-base);
    }
    
    .footer-social {
        gap: var(--spacing-sm);
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-icon {
        font-size: 16px;
    }
}