/*
Theme Name: DEXTROY Theme
Description: Theme profesional para productora audiovisual DEXTROY - Sistema completo personalizable desde Customizer
Author: FlyersOriginal
Version: 2.1v
*/

:root {
    --background: 18, 18, 18; /* Negro profundo cinematográfico */
    --foreground: 245, 245, 245; /* Blanco hueso */
    --primary: 45, 100%, 50%; /* Amarillo/Dorado vibrante */
    --card: 25, 25, 25; /* Tarjetas ligeramente más claras */
    --muted: 30, 30, 30; /* Gris oscuro para elementos secundarios */
    --border: 51, 51, 51; /* Bordes sutiles */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: rgb(var(--background));
    color: rgb(var(--foreground));
    line-height: 1.6;
    overflow-x: hidden;
}

.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: rgb(var(--background));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: hsla(var(--primary), 0.5);
    border-radius: 10px;
    border: 2px solid rgb(var(--background));
}
::-webkit-scrollbar-thumb:hover {
    background: hsla(var(--primary), 0.7);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(var(--background), 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(var(--border), 0.2);
    z-index: 2000;
    padding: 1.5rem 0;
}

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

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: hsl(var(--primary));
    text-decoration: none;
    letter-spacing: 2px;
}

.version {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.7;
    vertical-align: super;
    margin-left: 0.3rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: rgb(var(--foreground));
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    background: rgba(var(--muted), 0.5);
    color: hsl(var(--primary));
}

/* Botón Plataforma especial */
.plataforma-btn {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, #fbbf24 100%) !important;
    color: rgb(var(--background)) !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    letter-spacing: 0.5px !important;
}

.plataforma-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, hsl(var(--primary)) 100%) !important;
    color: rgb(var(--background)) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.plataforma-btn:hover .proximamente {
    background: #dc2626;
    transform: scale(1.05);
}

.proximamente {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(239, 68, 68, 0.4);
    color: white;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.4);
    border: 2px solid white;
    animation: pulse-badge 2s infinite;
}

/* Hero Section */
.hero-wrapper {
    height: calc(100vh - 96px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: rgb(var(--background));
    margin-top: 96px;
}

.hero-card {
    background: rgba(45, 45, 45, 1);
    border-radius: 2rem;
    height: 100%;
    width: 100%;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(80, 80, 80, 0.3);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%) scale(1.5);
    object-fit: cover;
    z-index: 1;
    min-width: 100%;
    min-height: 100%;
}

/* Contenedor con overflow hidden para asegurar que nada se escape */
.hero-card {
    overflow: hidden !important;
}

/* Clients/Partners Section */
.clients-section {
    padding: 2rem 2rem;
    background: rgba(var(--card), 0.3);
    border-top: 1px solid rgba(var(--border), 0.1);
    border-bottom: 1px solid rgba(var(--border), 0.1);
}

.clients-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.clients-text {
    font-size: 1rem;
    color: rgba(var(--foreground), 0.6);
    margin-bottom: 2.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.client-logo {
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-5px) scale(1.05);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.client-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

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

.hero-content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    color: hsl(var(--primary));
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    letter-spacing: 3px;
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 3rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0 0.5rem;
    border-radius: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-primary {
    background: hsl(var(--primary));
    color: rgb(var(--background));
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.btn-outline {
    border: 2px solid hsl(var(--primary));
    color: rgb(var(--foreground));
    background: transparent;
}

.btn-outline:hover {
    background: rgba(var(--foreground), 0.1);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* Sections */
.section {
    padding: 1.8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.2rem, 2vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    text-wrap: nowrap;
}

.section-title .highlight {
    color: hsl(var(--primary)); 
}

/* About Section */
.about-card {
    background: rgba(var(--card), 0.8);
    border-radius: 1.5rem;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(var(--border), 0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(var(--foreground), 0.9);
}

.about-image {
    aspect-ratio: 4/5;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
} 

.team-card {
    background: rgb(var(--card));
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    display: block; 
    flex-direction: column;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
} 

.team-card-main {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid transparent;
    transition: border-color 0.3s ease;
}

.team-card:hover .team-avatar {
    border-color: hsl(var(--primary));
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    width: 100%;
}

.team-role {
    color: hsl(var(--primary));
    font-weight: 500;
    margin-bottom: 0.75rem;
    width: 100%;
}

.team-description {
    font-size: 0.9rem;
    color: rgba(var(--foreground), 0.75);
    margin-top: 0.5rem;
    line-height: 1.2;
    text-align: center;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

.team-description br {
    display: block;
    content: "";
    margin: 0.2em 0;
}
 
.team-card-formation {
    background: rgba(var(--muted), 0.3);
    border-top: 1px solid rgba(var(--border), 0.2);
    padding: 1rem 1.25rem;
    margin-top: auto;
    flex-shrink: 0;
    margin-bottom: 22px;
}

.team-formation-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    color: hsl(var(--primary));
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
}

.team-formation-header i {
    font-size: 0.95rem;
}

.team-formation-text {
    font-size: 0.75rem;
    color: rgba(var(--foreground), 0.7);
    line-height: 1.65;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-left: 0.25rem;
}

.team-formation-text br {
    display: block;
    content: "";
    margin: 0.15em 0;
}

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

.project-card {
    background: rgba(var(--card), 0.9);
    border-radius: 1rem;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(var(--border), 0.1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.project-video {
    position: relative;
    aspect-ratio: 16/9;
    background: rgba(var(--muted), 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-video img {
    transform: scale(1.1);
}

.play-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
    font-size: 1.5rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.project-card:hover .play-icon {
    background: hsl(var(--primary));
    color: rgb(var(--background));
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgb(var(--foreground));
}

.project-description {
    color: rgba(var(--foreground), 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Contact Card */
.contact-card {
    background: rgba(var(--card), 0.8);
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(var(--border), 0.1);
}

/* Footer */
.footer {
    background: rgb(var(--background));
    border-top: 1px solid rgba(var(--border), 0.2);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: rgba(var(--foreground), 0.7);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--muted), 0.3);
}

.social-links a:hover {
    color: hsl(var(--primary));
    background: rgba(var(--muted), 0.6);
    transform: translateY(-3px);
}

.social-links a i {
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-badge {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 3px 12px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.6);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        flex-wrap: wrap;
    }

    .nav-menu-wrapper {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-links li {
        margin: 0.25rem;
        display: flex;
        align-items: center;
    }

    .nav-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .plataforma-btn {
        min-height: 35px;
        padding: 0.5rem 1rem !important;
        background: linear-gradient(135deg, hsl(var(--primary)) 0%, #fbbf24 100%) !important;
        color: rgb(var(--background)) !important;
        border-radius: 0.75rem !important;
        font-weight: 700 !important;
        position: relative !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        text-decoration: none !important;
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
        transition: all 0.3s ease !important;
        border: 2px solid transparent !important;
        letter-spacing: 0.5px !important;
    }

    .proximamente {
        font-size: 0.55rem;
        padding: 1px 6px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .version {
        font-size: 0.7rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-wrapper {
        padding: 1.5rem;
        height: calc(100vh - 96px);
        margin-top: 96px;
    }

    .hero-card {
        border-radius: 1rem;
    }
    
    .section {
        padding: 1.8rem 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-card, .contact-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .project-card {
        margin: 0 0.5rem;
    }

    .clients-section {
        padding: 1.5rem 1rem;
    }

    .clients-logos {
        gap: 2rem;
    }

    .client-logo {
        height: 50px;
    }

    .client-logo img {
        max-width: 100px;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-links a {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }

    .plataforma-btn {
        min-height: 38px;
        background: linear-gradient(135deg, hsl(var(--primary)) 0%, #fbbf24 100%) !important;
        color: rgb(var(--background)) !important;
        border-radius: 0.75rem !important;
        font-weight: 700 !important;
        position: relative !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        text-decoration: none !important;
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
        transition: all 0.3s ease !important;
        border: 2px solid transparent !important;
        letter-spacing: 0.5px !important;
    }

    .proximamente {
        font-size: 0.58rem;
        padding: 2px 7px;
    }
}

/* Large screens optimization */
@media (min-width: 1200px) {
    .nav-container {
        max-width: 1200px;
    }
}

/* Video responsivo para diferentes proporciones de pantalla */
/* Pantallas muy anchas (landscape) */
@media (min-aspect-ratio: 16/9) {
    .hero-video {
        width: 100vw;
        height: 56.25vw; /* 16:9 aspect ratio */
        transform: translate(-50%, -50%) scale(1.8);
    }
}

/* Pantallas cuadradas o verticales */
@media (max-aspect-ratio: 4/3) {
    .hero-video {
        width: 133.33vh; /* 4:3 aspect ratio */
        height: 100vh;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* Pantallas muy verticales (móviles en portrait) */
@media (max-aspect-ratio: 9/16) {
    .hero-video {
        width: 177.78vh; /* 16:9 aspect ratio */
        height: 100vh;
        transform: translate(-50%, -50%) scale(2.5);
    }
}

/* Ajuste específico para tablets en portrait */
@media (max-width: 768px) and (orientation: portrait) {
    .hero-video {
        transform: translate(-50%, -50%) scale(2.2);
    }
} /* Versión 0.4 - Tarjeta dividida */
