/* Variables de color para mantener la consistencia */
:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-input: #2a2a2a;
    --spotify-green: #1db954;
    --spotify-green-hover: #1ed760;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --error-bg: #e74c3c33; /* Rojo con transparencia */
    --error-border: #e74c3c;
}

/* Reseteo básico y fuente */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: rgb(24,24,24);
    background: linear-gradient(180deg, rgba(24,24,24,1) 0%, rgba(18,18,18,1) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.main-container {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

/* Header styles */
.header {
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header h1 i {
    color: var(--spotify-green);
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Search Section Styles */
.search-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

#urlInput {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background-color: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#urlInput:focus {
    border-color: var(--spotify-green);
}

#searchBtn {
    padding: 15px 30px;
    background-color: var(--spotify-green);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#searchBtn:hover {
    background-color: var(--spotify-green-hover);
    transform: scale(1.02);
}

/* Error Container Styles */
.error-container {
    background-color: var(--error-bg);
    border: 1px solid var(--error-border);
    color: #ffadad;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    margin-bottom: 20px;
}

/* Modern Result Card Styles */
.result-card {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: left;
    animation: fadeIn 0.5s ease-in-out;
}

.artist-image-container {
    flex-shrink: 0;
}

.artist-img {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Imagen circular moderna */
    object-fit: cover;
    border: 3px solid var(--spotify-green);
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.artist-info {
    flex-grow: 1;
}

.artist-type {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.artist-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Estilos para los campos de URI/ID */
.data-field {
    background-color: var(--bg-input);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.data-label {
    color: var(--text-secondary);
    font-weight: 600;
    margin-right: 15px;
    font-size: 0.9rem;
}

.data-value {
    font-family: 'Courier New', monospace; /* Fuente monoespaciada para código */
    color: var(--spotify-green);
    overflow-wrap: break-word;
    word-break: break-all;
    flex-grow: 1;
    text-align: right;
}

/* Utilidades */
.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
    .search-section {
        flex-direction: column;
    }
    #searchBtn {
        width: 100%;
    }
    .result-card {
        flex-direction: column;
        text-align: center;
    }
    .data-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .data-value {
        text-align: left;
    }
}

/* =========================================
   AÑADIR AL FINAL DE TU style.css EXISTENTE
   ========================================= */

/* Variables de color para YouTube */
:root {
    --youtube-red: #ff0000; /* O un tono más suave como #ea3323 */
    --youtube-red-hover: #cc0000;
}

/* Clase maestra para el tema YouTube */
/* Cuando el body tiene esta clase, reescribimos las variables verdes */
body.theme-youtube {
    --spotify-green: var(--youtube-red);
    --spotify-green-hover: var(--youtube-red-hover);
}

/* Ajustes específicos para iconos de marca si es necesario */
.theme-youtube .fa-spotify {
    display: none; /* Ocultar icono spotify si se cuela */
}

/* Animación suave para el cambio de color en hover */
.theme-youtube #searchBtn {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Estilos específicos para las estadísticas de YouTube */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 15px;
}

.stat-box {
    background-color: var(--bg-input);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid transparent;
    transition: border-color 0.3s;
}

.theme-youtube .stat-box:hover {
    border-color: var(--youtube-red);
}

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Responsive para stats */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
}

/* Estilo para el botón de copiar */
.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary); /* Gris por defecto */
    cursor: pointer;
    margin-left: 10px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    padding: 5px;
}

.copy-btn:hover {
    color: #ffffff; /* Blanco al pasar el mouse */
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* =========================================
   ESTILOS EXCLUSIVOS DE LA LANDING PAGE
   ========================================= */

/* Ajuste del Body para permitir scroll en la landing */
.landing-body {
    display: block; /* Quitamos el flex center del original */
    height: auto;
    min-height: 100vh;
    padding: 0;
    background: #121212; /* Fondo sólido oscuro */
    background: radial-gradient(circle at top center, #1e1e1e 0%, #000000 100%);
}

/* Header de navegación */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: white;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(90deg, #1db954, #ffffff, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de Tarjetas */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.tool-card {
    background: #1e1e1e;
    padding: 40px 30px;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    background: #252525;
    border-color: rgba(255, 255, 255, 0.1);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
}

.green-glow i { color: #1db954; }
.red-glow i { color: #ff0000; }

.tool-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1; /* Empuja el link hacia abajo */
}

.link-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer */
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: var(--text-secondary);
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

/* Responsive para la Landing */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .main-header { flex-direction: column; gap: 15px; padding: 20px; }
    .main-nav { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
    .main-nav a { margin: 0; }
}

/* =========================================
   ESTILOS PARA EL EXTRACTOR DE TAGS
   ========================================= */

/* Contenedor de las etiquetas */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Diseño de cada etiqueta (Tag Pill) */
.tag-pill {
    background-color: rgba(255, 0, 0, 0.15);
    color: #ffcccc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 0, 0, 0.2);
    transition: all 0.2s ease;
    cursor: default;
}

.tag-pill:hover {
    background-color: rgba(255, 0, 0, 0.3);
    border-color: var(--youtube-red);
    color: white;
}

/* Botón grande de acción secundaria */
.action-btn {
    background-color: var(--bg-input);
    color: white;
    border: 1px solid transparent;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    width: 100%;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-btn:hover {
    background-color: #333;
    border-color: var(--text-secondary);
}

/* =========================================
   ESTILOS WHATSAPP PRO (Dark Mode + Custom Select)
   ========================================= */

/* Estilos Generales Dark Mode */
.theme-whatsapp {
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-input: #2a2a2a;
    background-color: var(--bg-dark);
    color: white;
}

/* --- SELECTOR DE PAÍS PERSONALIZADO (CUSTOM DROPDOWN) --- */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 140px; /* Ancho fijo para el código */
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: var(--bg-input);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
}

.custom-select__trigger:hover {
    border-color: var(--whatsapp-green);
}

.custom-select__trigger img {
    width: 24px;
    height: auto;
    border-radius: 2px;
    margin-right: 8px;
}

.arrow {
    border: solid var(--text-secondary);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: 0.3s;
    margin-left: 5px;
}

/* Dropdown abierto */
.custom-select.open .arrow {
    transform: rotate(-135deg);
    border-color: var(--whatsapp-green);
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    background: #252525;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.3s;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 8px;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: rgba(37, 211, 102, 0.1); /* Verde transparente */
    color: var(--whatsapp-green);
}

.custom-option.selected {
    background-color: var(--whatsapp-green);
    color: white;
}

.custom-option img {
    width: 20px;
    margin-right: 10px;
    border-radius: 2px;
}

/* --- INPUT TELEFONO Y EMOJIS --- */
.phone-row {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.phone-input-modern {
    flex-grow: 1;
    padding: 15px 20px;
    background-color: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.phone-input-modern:focus {
    border-color: var(--whatsapp-green);
    background-color: #2e2e2e;
}

/* Mensaje y Emojis */
.message-section {
    position: relative;
}

.emoji-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary); /* Gris claro */
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    transition: 0.3s;
}

.emoji-toggle-btn:hover {
    color: var(--whatsapp-green);
}

.emoji-toggle-btn i {
    font-size: 1.2rem;
    color: #ffd700; /* Amarillo emoji */
}

/* Picker de Emojis */
.emoji-picker-container {
    background-color: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
    gap: 5px;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.emoji-btn {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    padding: 5px;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
}

.emoji-btn:hover {
    background-color: rgba(255,255,255,0.1);
    transform: scale(1.2);
}

.modern-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background-color: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    outline: none;
    transition: 0.3s;
}

.modern-textarea:focus {
    border-color: var(--whatsapp-green);
    background-color: #2e2e2e;
}

/* Botón Generar */
.elegant-btn {
    width: 100%;
    margin-top: 20px;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.elegant-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #2ce470 0%, #16a695 100%);
}

/* --- ES PARA LA BUSQUEDA DE PAISES --- */

/* Contenedor del buscador dentro del dropdown */
.search-box-container {
    position: sticky; /* Se queda fijo arriba al hacer scroll */
    top: 0;
    padding: 10px;
    background-color: #252525; /* Mismo fondo que el dropdown */
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* El input donde se escribe */
.dropdown-search-input {
    width: 100%;
    padding: 8px 12px;
    background-color: #121212;
    border: 1px solid #333;
    border-radius: 6px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.dropdown-search-input:focus {
    border-color: var(--whatsapp-green);
}

/* Mensaje cuando no hay resultados */
.no-results {
    padding: 15px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    display: none; /* Oculto por defecto */
}

/* =========================================
   ESTILOS THUMBNAIL DOWNLOADER (Tema Ámbar)
   ========================================= */

:root {
    --thumb-amber: #FFAA00;
    --thumb-dark: #cc8800;
}

body.theme-thumb {
    --spotify-green: var(--thumb-amber);
    --spotify-green-hover: var(--thumb-dark);
}

/* Contenedor de la vista previa */
.thumb-preview-box {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 25px;
    border: 2px solid #333;
}

.thumb-preview-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.thumb-preview-box:hover .thumb-preview-img {
    transform: scale(1.02);
}

/* Grid de opciones de descarga */
.download-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.quality-btn {
    background-color: var(--bg-input);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quality-btn:hover {
    background-color: #333;
    border-color: var(--thumb-amber);
    transform: translateY(-5px);
}

.quality-label {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.quality-size {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.download-icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 170, 0, 0.1);
    color: var(--thumb-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.quality-btn:hover .download-icon-circle {
    background: var(--thumb-amber);
    color: black;
}

/* Colores para las tarjetas de la Landing */
.cyan-glow { background: rgba(0, 229, 255, 0.1); color: #00e5ff; border: 1px solid rgba(0, 229, 255, 0.2); }
.amber-glow { background: rgba(255, 170, 0, 0.1); color: #FFAA00; border: 1px solid rgba(255, 170, 0, 0.2); }
.whatsapp-glow { background: rgba(37, 211, 102, 0.1); color: #25D366; border: 1px solid rgba(37, 211, 102, 0.2); }

/* Efecto hover */
.tool-card:hover .cyan-glow { background: #00e5ff; color: #000; }
.tool-card:hover .amber-glow { background: #FFAA00; color: #000; }
.tool-card:hover .whatsapp-glow { background: #25D366; color: #fff; }

/* =========================================
   ESTILOS YOUTUBE THUMBNAILS (Tema Rojo)
   ========================================= */

:root {
    --thumb-red: #FF0000;      /* Rojo YouTube */
    --thumb-dark-red: #cc0000; /* Rojo Oscuro para hover */
}

body.theme-thumb {
    /* Sobrescribimos la variable principal para que todo se pinte rojo */
    --spotify-green: var(--thumb-red);
    --spotify-green-hover: var(--thumb-dark-red);
}

/* Contenedor de la vista previa */
.thumb-preview-box {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 25px;
    border: 2px solid #333;
}

.thumb-preview-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.thumb-preview-box:hover .thumb-preview-img {
    transform: scale(1.02);
}

/* Grid de opciones de descarga */
.download-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.quality-btn {
    background-color: var(--bg-input);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Efecto Hover en Rojo */
.quality-btn:hover {
    background-color: #333;
    border-color: var(--thumb-red);
    transform: translateY(-5px);
}

.quality-label {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.quality-size {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.download-icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.1); /* Fondo rojo suave */
    color: var(--thumb-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.quality-btn:hover .download-icon-circle {
    background: var(--thumb-red);
    color: white;
}

/* =========================================
   ESTILOS PÁGINA CONTACTO
   ========================================= */

.contact-container {
    max-width: 600px; /* Un poco más estrecho para que se vea elegante */
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-input {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.contact-input:focus {
    border-color: var(--spotify-green);
    background-color: #2a2a2a;
}

/* Grid de redes sociales de contacto */
.contact-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.05);
}

.social-btn:hover {
    transform: translateY(-5px);
    background: var(--spotify-green);
    color: black;
}

/* =========================================
   ESTILOS PÁGINA CONTACTO
   ========================================= */

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeIn 0.5s ease;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-input {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.contact-input:focus {
    border-color: var(--spotify-green);
    background-color: #2a2a2a;
}

/* Caja de Mensaje de Éxito */
.success-message-box {
    text-align: center;
    padding: 50px 20px;
    background: var(--bg-card);
    border: 1px solid var(--spotify-green);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.1);
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 4rem;
    color: var(--spotify-green);
    margin-bottom: 20px;
}

/* Redes Sociales */
.contact-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.05);
}

.social-btn:hover {
    transform: translateY(-5px);
    background: var(--spotify-green);
    color: black;
}

/* =========================================
   ESTILOS CONTACTO & MENSAJE DE ÉXITO
   ========================================= */

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 60vh; /* Para que no se vea vacío */
}

/* Caja del Formulario */
.contact-form-box {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeIn 0.5s ease;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    color: #b3b3b3;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-input {
    width: 100%;
    padding: 15px;
    background-color: #2a2a2a;
    border: 1px solid transparent;
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.contact-input:focus {
    border-color: #1db954; /* Spotify Green */
    background-color: #333;
}

/* --- MENSAJE DE ÉXITO (El que pediste) --- */
.success-message-box {
    display: none; /* Oculto por defecto */
    text-align: center;
    padding: 50px 20px;
    background: #1e1e1e;
    border: 1px solid #1db954;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(29, 185, 84, 0.1);
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    font-size: 4rem;
    color: #1db954;
    margin-bottom: 20px;
}

.success-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.success-text {
    color: #b3b3b3;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Redes Sociales (Ajuste) */
.social-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

/* Estilo para el Logo de Imagen */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 55px; /* Ajusta este número si lo quieres más grande o chico */
    width: auto;  /* Mantiene la proporción para no deformarlo */
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.logo a:hover .logo-img {
    transform: scale(1.05); /* Pequeño efecto zoom al pasar el mouse */
}


/* ======================================================
   DISEÑO MÓVIL "APP STYLE" (Menú Arriba y Elegante)
   ====================================================== */
@media (max-width: 768px) {

    /* 1. HEADER: ESTRUCTURA VERTICAL */
    .main-header {
        display: flex;
        flex-direction: column; /* Apila los elementos verticalmente */
        padding: 15px 20px;
        gap: 15px;
        background: rgba(10, 10, 10, 0.98); /* Fondo oscuro elegante */
    }

    /* --- EL MENÚ SUBE AL CIELO (Posición #1) --- */
    .main-nav {
        order: -1;          /* MAGIA: Manda este elemento al principio */
        width: 100%;
        display: flex;
        justify-content: center; /* Centrado perfecto */
        flex-wrap: wrap;    /* Si son muchos, bajan ordenadamente */
        gap: 12px;          /* Espacio entre enlaces */
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Línea divisoria muy sutil */
    }

    /* Estilo de los enlaces del menú (Elegante) */
    .main-nav a {
        font-size: 0.75rem; /* Letra pequeña y fina */
        text-transform: uppercase; /* Opcional: letras mayúsculas se ven pro */
        letter-spacing: 0.5px;
        color: #888;
        margin: 0;
        padding: 5px 10px;
        transition: 0.3s;
        text-decoration: none;
    }

    /* Enlace activo (Se ilumina) */
    .main-nav a.active {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        font-weight: 600;
    }

    /* --- LOGO Y TEMA (Posición #2) --- */
    .logo {
        width: 100%;
        display: flex;
        justify-content: space-between; /* Extremos opuestos */
        align-items: center;
    }

    .logo-img { height: 28px; } /* Logo ajustado */
    
    .theme-btn { 
        margin: 0; 
        width: 32px; height: 32px; 
        background: rgba(255,255,255,0.05);
    }

    /* 2. CONTENIDO (Textos Ajustados) */
    .main-container {
        margin-top: 20px;
        padding: 0 20px;
    }

    /* Título Principal */
    h1, .header h1 {
        font-size: 1.6rem !important;
        margin-top: 10px;
        line-height: 1.2;
    }

    .header p {
        font-size: 0.9rem !important;
        padding: 0 10px;
        color: #aaa;
    }

    /* 3. INPUTS Y BOTONES */
    /* Texto de ejemplo pequeño para que no se corte */
    ::placeholder { font-size: 0.8rem !important; }
    
    input, button {
        padding: 14px !important;
        font-size: 0.95rem !important;
    }

    /* 4. RESULTADOS (Compactos) */
    .result-card { padding: 20px !important; }
    
    .artist-img {
        width: 90px !important; height: 90px !important;
        margin: 0 auto 15px auto;
    }
    
    .result-card > div:first-child {
        flex-direction: column; text-align: center;
    }
    
    .stats-grid { 
        gap: 10px; 
        grid-template-columns: 1fr 1fr; /* 2 columnas */
    }

    .data-value {
        font-size: 0.8rem !important;
        word-break: break-all;
    }
}

/* ======================================================
   DISEÑO MÓVIL: LOGO ARRIBA - MENÚ ABAJO
   ====================================================== */
@media (max-width: 768px) {

    /* 1. CONTENEDOR HEADER */
    .main-header {
        display: flex;
        flex-direction: column; /* Apila los elementos verticalmente */
        align-items: center;    /* Centra todo horizontalmente */
        padding: 15px 0;        /* Espacio arriba y abajo */
        gap: 15px;              /* Espacio entre el logo y el menú */
        height: auto;           /* Altura automática */
    }

    /* 2. EL LOGO (Orden 1: Arriba) */
    .logo {
        order: 1;             /* Lo forzamos a ser el PRIMERO */
        width: 100%;
        display: flex;
        justify-content: center; /* Logo centrado */
        margin-bottom: 5px;
    }
    
    .logo-img {
        height: 55px; /* Tamaño del logo */
    }

    /* 3. EL MENÚ (Orden 2: Abajo) */
    .main-nav {
        order: 2;             /* Lo forzamos a ser el SEGUNDO */
        width: 100%;
        display: flex;
        justify-content: center; /* Centrado */
        flex-wrap: wrap;         /* Si no caben, bajan */
        gap: 15px;               /* Separación entre enlaces */
        border-top: 1px solid rgba(255,255,255,0.1); /* Línea sutil separadora */
        padding-top: 15px;
        margin: 0;
    }

    /* Estilo de los enlaces */
    .main-nav a {
        font-size: 0.85rem;
        margin: 0;
        color: var(--text-secondary);
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    /* 4. AJUSTE DEL CONTENIDO PRINCIPAL */
    .main-container {
        margin-top: 20px !important; 
        padding-top: 0 !important;
    }
}

/* ======================================================
   ARREGLO DE LA LUPA (Que el texto no la pise)
   ====================================================== */
@media (max-width: 768px) {
    
    /* Forzamos espacio a la izquierda SOLO en los inputs de texto */
    input[type="text"], input[type="url"] {
        padding-left: 45px !important; /* Hueco para la lupa */
        padding-right: 15px !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    /* Aseguramos que el icono esté bien centrado */
    .search-icon {
        left: 15px !important;
        font-size: 1.1rem !important;
    }
}


