/* ====================================
   RESET Y CONFIGURACIÓN GLOBAL
==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #212121;
    color: #ffffff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Asegurar altura mínima de ventana */
}

/* ====================================
   HEADER Y NAVEGACIÓN
==================================== */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 40px;
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    flex-wrap: wrap;
    min-height: 8em;
}

/* Logo */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo img {
    height: 8em;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

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

/* Navegación */
.nav-links {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 10px 20px;
    max-width: 20em;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.3em;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ff6b6b;
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6b6b;
    transition: width 0.3s ease;
}

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

/* Menú hamburguesa */
.hamburger-menu {
    display: none;
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger-menu:hover {
    color: #ff6b6b;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 40px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.mobile-nav a:hover {
    color: #ff6b6b;
}

/* Redes sociales en header */
.social-icons {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-icon:hover {
    background-color: #ff6b6b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* ====================================
   CONTENIDO PRINCIPAL
==================================== */
.main-content {
    padding: 0px;
    max-width: 1800px;
    margin: 0 auto;
}

.small-title {
    text-align: center;
    padding: 15px;
}

/* ====================================
   PORTFOLIO GRID
==================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 0px;
    max-width: 1800px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 1/1;
    width: 100%;
    border-radius: 40px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, #333333, #555555);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-title {
    color: #000000;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Animaciones secuenciales del portfolio */
.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

/* ====================================
   CONTENIDO DE URLS Y VIDEOS
==================================== */
.content-urls {
    display: block;
    margin: auto;
    width: 90%;
    max-width: 800px;
    text-align: center;
    padding: 20px;
}
/* Wrapper responsivo para iframes */
.content-urls .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Aspecto 16:9 */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.content-urls .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.content-urls iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.content-urls iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Grid para shorts - Máximo 3 columnas */
.content-urls-shorts {
    display: grid;
    text-align: center;
    margin: auto;
    max-width: 1200px;
    padding: 20px;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-items: center;
    align-items: start;
}

.content-urls-shorts iframe {
    width: 250px;
    height: 445px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-urls-shorts iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ====================================
   ELEMENTOS DE INTERFAZ
==================================== */
.MenuIcons {
    max-width: 1.5em;
    filter: drop-shadow(0 0 0.2rem rgb(0, 0, 0));
}

.reverseColors {
    filter: contrast(0) brightness(2);
}

/* Thumbnails */
.thumbnail-imgs {
    margin: auto;
    text-align: center;
    padding: 1.5em;
}

.thumbnail-imgs a img {
    text-align: center;
    margin: auto;
    max-width: 100%;
}

.thumbnail-imgs a:link, 
.thumbnail-imgs a:visited, 
.thumbnail-imgs a:hover, 
.thumbnail-imgs a:active {
    color: white !important;
    text-decoration: none;
}

.enlace-especial {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white !important;
    padding: 1em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.enlace-especial:hover {
    color: #ff69b4 !important;
    transform: translateY(-5px);
}

.enlace-sin-decoracion {
    text-decoration: none;
}

/* ====================================
   FORMULARIOS
==================================== */
.form-big-container {
    padding: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60em;
}

.form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, textarea, select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.1);
}

#mensaje {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Estados de carga y mensajes */
.loading {
    display: none;
    margin-left: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.discord-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}


/* ====================================
   SECCIÓN YOUTUBERS
==================================== */
.youtubers-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 20px;
    margin-top: 40px;
    position: relative;
}

.youtubers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff6b6b, transparent);
}

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

.youtubers-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    animation: fadeInUp 0.8s ease;
}

.youtubers-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    border-radius: 2px;
}

.youtubers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.youtuber-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.youtuber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53, #4ecdc4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.youtuber-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #444;
    transition: all 0.3s ease;
    position: relative;
}

.youtuber-card:hover .youtuber-avatar {
    border-color: #ff6b6b;
    transform: scale(1.1);
}

.youtuber-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youtuber-card:hover .youtuber-avatar img {
    transform: scale(1.2);
}

.youtuber-info {
    text-align: center;
}

.youtuber-name {
    font-size: 1.5em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.youtuber-card:hover .youtuber-name {
    color: #ff6b6b;
}

.youtuber-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.youtuber-stats {
    margin-top: 15px;
}

.subscriber-count {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}


/* ====================================
   FOOTER
==================================== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    padding: 30px 0;
    margin-top: auto;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6c5ce7, transparent);
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
}

.footer-logo a img {
    width: 10em;
    height: auto;
    filter: brightness(1.1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-logo a img:hover {
    filter: brightness(1.3);
    transform: scale(1.05);
}

.social-footer {
    display: flex;
    gap: 15px;
}

.social-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #333, #444);
    border-radius: 50%;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-footer a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-footer a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.social-footer a:hover::before {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 15px;
}

.footer-bottom p {
    color: #888;
    font-size: 12px;
    margin: 0;
}

/* Redes sociales footer (clase duplicada - considerar eliminar) */
.social-icons-footer {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 15px;
}

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

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

/* ====================================
   MEDIA QUERIES - RESPONSIVE DESIGN
==================================== */

/* Tablets grandes y pantallas medianas */
@media (min-width: 900px) {
    .content-urls-shorts {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;   
    }
}

@media (max-width: 1200px) {
    .content-urls-shorts {
        grid-template-columns: repeat(auto-fit, minmax(20em, 1fr));
        gap: 15px;
        max-width: 700px;
    }
    .content-urls-shorts iframe {
        width: 220px;
        height: 390px;
    }
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px 0px;
    }
    .main-content {
        padding: 0px;
    }
    .form-big-container {
        width: 40em;
    }
}

/* Zoom y espacios reducidos */
@media (max-width: 1000px) {
    .header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        min-height: 140px;
        padding: 20px 40px;
    }

    .main-content {
        padding: 0px;
    }

    .logo {
        position: static;
        transform: none;
        order: 1;
    }

    .nav-links {
        position: static;
        transform: none;
        order: 2;
        max-width: none;
        justify-content: center;
    }

    .social-icons {
        position: static;
        transform: none;
        order: 3;
        justify-content: center;
    }

    .hamburger-menu {
        position: absolute;
        top: 20px;
        left: 20px;
        order: 0;
    }
}

@media (max-width: 900px) {
    .content-urls-shorts {
        grid-template-columns: repeat(auto-fit, minmax(25em, 1fr));
        gap: 15px;
        max-width: 700px;
    }
    .content-urls-shorts iframe {
        width: 220px;
        height: 390px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 20px;
        position: relative;
        min-height: 120px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
        position: absolute;
        left: 20px;
        top: 20px;
    }
    
    .social-icons {
        position: static;
        transform: none;
        display: flex;
        gap: 15px;
        order: 3;
        justify-content: center;
    }
    
    .logo {
        order: 1;
        position: static;
        transform: none;
    }
    
    .main-content {
        padding: 0px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px 0px;
    }
    .content-urls {
        width: 95%;
        padding: 15px;
    }
    
    .content-urls iframe {
        height: 300px;
        margin: 15px 0;
    }
    
    .content-urls .video-wrapper {
        margin: 15px 0;
    }

    /* Footer responsive */
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    .footer-logo a img {
        width: 70px;
    }
    .social-footer a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .form-big-container {
        width: 30em;
    }
}

@media (max-width: 700px) {
    .content-urls-shorts {
        grid-template-columns: repeat(auto-fit, minmax(30em, 1fr));
        gap: 12px;
        max-width: 500px;
    }
    .content-urls-shorts iframe {
        width: 250px;
        height: 445px;
    }
}

/* Formularios responsive */
@media (max-width: 600px) {
    .form-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .form-title {
        font-size: 24px;
    }
}

@media (max-width: 500px) {
    .content-urls-shorts {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 280px;
    }
    .content-urls-shorts iframe {
        width: 250px;
        height: 445px;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .hamburger-menu {
        left: 15px;
        top: 15px;
    }
    
    .mobile-nav {
        left: 15px;
    }
    
    .header {
        padding: 15px;
        min-height: 100px;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }
    .content-urls {
        width: 100%;
        padding: 10px;
    }
    
    .content-urls iframe {
        height: 250px;
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .content-urls .video-wrapper {
        margin: 10px 0;
        border-radius: 8px;
        padding-bottom: 56.25%; /* Mantiene aspecto 16:9 */
    }
    
    .content-urls .video-wrapper iframe {
        border-radius: 8px;
    }
    .form-big-container {
        width: 21em;
    }
}
/* Móviles pequeños */
@media (max-width: 320px) {
    .content-urls iframe {
        height: 200px;
    }
}
