/* ========================================
   FAEMULTIMEDIA - Sistema de Diseño Premium
   ======================================== */

/* ====== IMPORTACIÓN DE FUENTES ====== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ====== VARIABLES CSS ====== */
:root {
    /* Colores Primarios - Estética FAEMULTIMEDIA */
    --color-primary: #E65616;
    /* Naranja Vibrante */
    --color-secondary: #FF7640;
    /* Naranja Claro */
    --color-accent: #FF9966;
    /* Naranja Suave */

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #E65616 0%, #FF7640 100%);
    --gradient-secondary: linear-gradient(135deg, #E65616 0%, #FF9966 100%);
    --gradient-accent: linear-gradient(135deg, #FF7640 0%, #FFAA88 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #000000 100%);

    /* Colores Neutros - Dark Theme */
    --color-dark: #000000;
    /* Negro absoluto */
    --color-dark-lighter: #1a1a1a;
    /* Gris muy oscuro */
    --color-dark-light: #2a2a2a;
    /* Gris oscuro */
    --color-gray: #999999;
    /* Gris medio */
    --color-light: #F5F5F5;
    /* Blanco suave */
    --color-white: #FFFFFF;
    /* Blanco puro */

    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Bordes */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(230, 86, 22, 0.4);
    --shadow-glow-purple: 0 0 40px rgba(255, 118, 64, 0.3);

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark);
    color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Efecto de partículas de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(230, 86, 22, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 118, 64, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ====== TIPOGRAFÍA ====== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: var(--spacing-sm);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== NAVEGACIÓN ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
}

.logo img {
    transition: all var(--transition-fast);
    filter: brightness(1);
}

.logo:hover img {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all var(--transition-fast);
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

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

/* Botón hamburguesa para móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--color-light);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ====== BOTONES ====== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left var(--transition-base);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(230, 86, 22, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(230, 86, 22, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--color-light);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(230, 86, 22, 0.4);
}

/* ====== HERO SECTION ====== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 10rem 4rem 4rem 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    z-index: -2;
}

/* Hero with background image */
.hero-with-bg {
    background-image: url('../assets/images/hero-portrait-bg.webp');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.hero-with-bg::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    max-width: 1400px;
    margin: 0;
    text-align: left;
    z-index: 1;
    max-width: 600px;
}

.hero-label {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-family: var(--font-heading);
}

.hero-subtitle-main {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-subtitle-secondary {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--color-gray);
    margin-bottom: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--color-gray);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

/* ====== SECCIONES ====== */
.section {
    padding: var(--spacing-xl) 2rem;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ====== CARDS ====== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(230, 86, 22, 0.5);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.card-description {
    color: var(--color-gray);
    line-height: 1.8;
}

/* ====== PORTFOLIO GRID ====== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
    background: var(--color-dark-lighter);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.95) 0%, rgba(10, 14, 39, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-category {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-title {
    font-size: 1.75rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.portfolio-description {
    color: var(--color-gray);
    font-size: 1rem;
}

/* ====== STATS SECTION ====== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1.125rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ====== TESTIMONIALS ====== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all var(--transition-base);
}

.testimonial:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 86, 22, 0.5);
    box-shadow: var(--shadow-glow);
}

.testimonial-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.author-info h4 {
    color: var(--color-white);
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.author-info p {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* ====== CTA SECTION ====== */
.cta-section {
    background: var(--gradient-primary);
    margin: var(--spacing-xl) 2rem;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background: var(--color-white);
    color: var(--color-dark);
    font-weight: 700;
}

.btn-white:hover {
    background: var(--color-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

/* ====== FOOTER ====== */
.footer {
    background: #050505;
    /* Negro casi puro más elegante */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* Borde más sutil */
    padding: 3rem 1.5rem 1.5rem;
    /* Padding reducido arriba/abajo */
}

.footer-content {
    max-width: 1200px;
    /* Un poco más contenido para no dispersarse tanto */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    /* Primera col más ancha, últimas ajustadas */
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    /* Aumentado */
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.footer-section p {
    color: #cccccc;
    /* Gris más claro para mejor lectura */
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    /* Aumentado */
}

.footer-section a {
    color: #bfbfbf;
    /* Gris claro */
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    /* Más separado */
    font-size: 1.05rem;
    /* Aumentado */
    transition: all var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-primary);
    transform: translateX(8px);
    text-shadow: 0 0 10px rgba(230, 86, 22, 0.4);
    /* Glow sutil */
}

/* Ajuste específico para iconos de contacto */
.footer-section p i,
.footer-section a i {
    margin-right: 12px;
    /* Más espacio */
    color: var(--color-primary);
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    /* Icono más grande */
}

/* .social-links y .social-link están en css/footer-socials.css */

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    /* Texto legal más sutil */
    font-size: 0.85rem;
}

/* RESPONSIVE FOOTER */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        /* 2 columnas en tablets */
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        /* 1 columna en móviles */
        text-align: center;
        gap: 2.5rem;
    }

    .footer-section h3::after {
        /* Opcional: Centrar subrayado si tuvieran */
        left: 50%;
        transform: translateX(-50%);
    }

    /* Centrar iconos sociales en móvil */
    .social-links {
        justify-content: center;
    }

    .footer-section a:hover {
        transform: translateX(0);
        /* Desactivar movimiento en móvil */
    }
}

/* ====== ANIMACIONES ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-30px) translateX(20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right var(--transition-base);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

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

    .section {
        padding: var(--spacing-lg) 1.5rem;
    }

    .cta-section {
        margin: var(--spacing-lg) 1rem;
        padding: var(--spacing-md);
    }
}

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

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

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

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}