/* ============================================
   PALABRAPLAY - ESTILOS PRINCIPALES
   Diseño Gaming Vibrante & Profesional
   ============================================ */

/* Variables de Color */
:root {
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-hover: #0f3460;
    
    --accent-magenta: #ff006e;
    --accent-yellow: #ffbe0b;
    --accent-purple: #8338ec;
    --accent-blue: #3a86ff;
    --accent-green: #06ffa5;
    --accent-red: #ff4757;
    
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --text-muted: #6c6c8a;
    
    --gradient-primary: linear-gradient(135deg, var(--accent-magenta) 0%, var(--accent-purple) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-magenta) 100%);
    
    --shadow-glow: 0 0 20px rgba(255, 0, 110, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    --font-main: 'Poppins', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.logo i {
    color: var(--accent-magenta);
    font-size: 1.8rem;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-yellow);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 110, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(131, 56, 236, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 190, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-icons i {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.icon-1 { top: 20%; left: 10%; color: var(--accent-magenta); animation-delay: 0s; }
.icon-2 { top: 60%; right: 10%; color: var(--accent-yellow); animation-delay: 1s; }
.icon-3 { bottom: 20%; left: 20%; color: var(--accent-purple); animation-delay: 2s; }
.icon-4 { top: 40%; right: 20%; color: var(--accent-blue); animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background: var(--gradient-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: var(--shadow-glow);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-yellow);
}

.btn-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 110, 0.4); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 110, 0.6); }
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-yellow);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* ============================================
   ADS CONTAINER
   ============================================ */
.ad-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.ad-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ad-space {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ad-container.inline {
    margin: 30px 0;
}

/* ============================================
   GAMES SECTION
   ============================================ */
.games-section {
    padding: 60px 0;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card.featured {
    border: 2px solid var(--accent-magenta);
    position: relative;
}

.game-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    right: 30px;
    background: var(--accent-magenta);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.game-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.game-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.wordle-icon { background: var(--accent-green); color: var(--bg-primary); }
.ahorcado-icon { background: var(--accent-magenta); }
.sopa-icon { background: var(--accent-purple); }

.game-title-area h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.game-title-area p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.game-badge {
    margin-left: auto;
    background: var(--accent-yellow);
    color: var(--bg-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ============================================
   WORDLE STYLES
   ============================================ */
.wordle-container {
    max-width: 500px;
    margin: 0 auto;
}

.wordle-grid {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.wordle-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.wordle-tile {
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: transparent;
}

.wordle-tile.filled {
    border-color: rgba(255, 255, 255, 0.5);
    animation: pop 0.1s ease;
}

.wordle-tile.correct {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--bg-primary);
    animation: flip 0.5s ease;
}

.wordle-tile.present {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--bg-primary);
    animation: flip 0.5s ease;
}

.wordle-tile.absent {
    background: var(--text-muted);
    border-color: var(--text-muted);
    color: white;
    animation: flip 0.5s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes flip {
    0% { transform: rotateX(0); }
    50% { transform: rotateX(90deg); }
    100% { transform: rotateX(0); }
}

.wordle-keyboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.key {
    min-width: 30px;
    height: 50px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0 10px;
}

.key:hover {
    background: rgba(255, 255, 255, 0.2);
}

.key.wide {
    min-width: 50px;
    font-size: 0.8rem;
}

.key.correct { background: var(--accent-green); color: var(--bg-primary); }
.key.present { background: var(--accent-yellow); color: var(--bg-primary); }
.key.absent { background: var(--text-muted); }

.wordle-message {
    text-align: center;
    margin: 20px 0;
    font-weight: 600;
    min-height: 30px;
}

.wordle-message.success { color: var(--accent-green); }
.wordle-message.error { color: var(--accent-red); }

.wordle-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* ============================================
   AHORCADO STYLES
   ============================================ */
.ahorcado-container {
    max-width: 800px;
    margin: 0 auto;
}

.ahorcado-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 30px;
}

.ahorcado-figure {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
}

.hangman-svg {
    width: 100%;
    height: auto;
    max-height: 300px;
}

.ahorcado-game {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.word-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 5px;
}

.letter-slot {
    width: 40px;
    height: 50px;
    border-bottom: 4px solid var(--accent-magenta);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.letter-slot.revealed {
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.wrong-letters {
    text-align: center;
    padding: 15px;
    background: rgba(255, 71, 87, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.wrong-letters .label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.wrong-letters .letters {
    color: var(--accent-red);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.ahorcado-keyboard {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 5px;
}

.ahorcado-keyboard .key {
    height: 40px;
    min-width: auto;
    font-size: 0.85rem;
}

.ahorcado-keyboard .key:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ahorcado-message {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    min-height: 30px;
}

.game-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

select {
    padding: 12px 20px;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: var(--bg-secondary);
    color: white;
    font-family: inherit;
    cursor: pointer;
}

/* ============================================
   SOPA DE LETRAS STYLES
   ============================================ */
.sopa-container {
    max-width: 900px;
    margin: 0 auto;
}

.sopa-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.sopa-grid-wrapper {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    overflow: auto;
}

.sopa-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    min-width: 300px;
}

.sopa-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.sopa-cell:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sopa-cell.selected {
    background: var(--accent-yellow);
    color: var(--bg-primary);
}

.sopa-cell.found {
    background: var(--accent-green);
    color: var(--bg-primary);
}

.sopa-words {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
}

.sopa-words h3 {
    margin-bottom: 15px;
    color: var(--accent-yellow);
}

.sopa-words ul {
    list-style: none;
}

.sopa-words li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sopa-words li.found {
    text-decoration: line-through;
    opacity: 0.5;
}

.sopa-words li.found::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: bold;
}

.sopa-timer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-magenta);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   HOW TO PLAY SECTION
   ============================================ */
.how-to-play {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.guide-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-magenta);
}

.guide-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.guide-icon.yellow { background: rgba(255, 190, 11, 0.2); color: var(--accent-yellow); }
.guide-icon.magenta { background: rgba(255, 0, 110, 0.2); color: var(--accent-magenta); }
.guide-icon.purple { background: rgba(131, 56, 236, 0.2); color: var(--accent-purple); }

.guide-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.guide-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 110, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.creator-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.creator-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 3rem;
}

.creator-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.creator-role {
    color: var(--accent-yellow);
    font-weight: 600;
    margin-bottom: 10px;
}

.creator-location {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-text h2 {
    color: var(--accent-yellow);
    margin: 30px 0 15px;
    font-size: 1.8rem;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.value-item i {
    color: var(--accent-green);
}

.timeline-section {
    margin-top: 60px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--accent-magenta);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.timeline-date {
    color: var(--accent-yellow);
    font-weight: 700;
    margin-bottom: 5px;
}

.timeline-content h3 {
    margin-bottom: 5px;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    margin-bottom: 3px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-contact h3 {
    margin-bottom: 15px;
}

.social-links.large {
    display: flex;
    gap: 15px;
}

.social-links.large a {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links.large a:hover {
    background: var(--accent-magenta);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-secondary);
    color: white;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-magenta);
}

.form-consent {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.checkbox-label input {
    margin-top: 3px;
}

.checkbox-label a {
    color: var(--accent-yellow);
}

.hidden {
    display: none;
}

.faq-preview {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background: rgba(255, 190, 11, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 190, 11, 0.3);
}

.faq-preview h2 {
    margin-bottom: 10px;
}

.faq-preview p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-notice {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    border-left: 4px solid var(--accent-magenta);
    display: flex;
    align-items: center;
    gap: 20px;
}

.legal-notice i {
    font-size: 2rem;
    color: var(--accent-magenta);
}

.legal-notice p {
    margin: 0;
    line-height: 1.8;
}

.legal-article h2 {
    color: var(--accent-yellow);
    margin: 40px 0 20px;
    font-size: 1.6rem;
}

.legal-article h3 {
    color: var(--text-primary);
    margin: 25px 0 15px;
    font-size: 1.2rem;
}

.legal-article p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-article ul,
.legal-article ol {
    margin: 15px 0;
    padding-left: 25px;
    color: var(--text-secondary);
}

.legal-article li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-article a {
    color: var(--accent-yellow);
    text-decoration: none;
}

.legal-article a:hover {
    text-decoration: underline;
}

.legal-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-section {
    padding: 60px 0;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.faq-cat-btn {
    padding: 10px 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-cat-btn:hover,
.faq-cat-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-group {
    display: none;
}

.faq-group.active {
    display: block;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--accent-magenta);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer > * {
    padding: 0 25px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 45px;
}

.faq-contact {
    text-align: center;
    margin-top: 60px;
    padding: 50px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-contact h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.faq-contact p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* ============================================
   GUIDE ARTICLES (SEO)
   ============================================ */
.guide-article {
    padding: 40px 0 80px;
}

.guide-header {
    text-align: center;
    margin-bottom: 50px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-yellow);
}

.breadcrumb i {
    font-size: 0.7rem;
}

.guide-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.guide-meta i {
    color: var(--accent-magenta);
    margin-right: 5px;
}

.guide-content {
    max-width: 800px;
    margin: 0 auto;
}

.guide-intro {
    text-align: center;
    margin-bottom: 40px;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.guide-toc {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-toc ol {
    padding-left: 20px;
}

.guide-toc li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.guide-toc a {
    color: var(--accent-yellow);
    text-decoration: none;
}

.guide-toc a:hover {
    text-decoration: underline;
}

.guide-content h2 {
    color: var(--accent-yellow);
    margin: 50px 0 20px;
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.guide-content h3 {
    color: var(--text-primary);
    margin: 30px 0 15px;
    font-size: 1.3rem;
}

.guide-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.guide-content ul,
.guide-content ol {
    color: var(--text-secondary);
    margin: 20px 0;
    padding-left: 25px;
}

.guide-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.info-box {
    background: rgba(255, 190, 11, 0.1);
    border-left: 4px solid var(--accent-yellow);
    padding: 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 30px 0;
}

.info-box h4 {
    color: var(--accent-yellow);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-guide {
    display: grid;
    gap: 15px;
    margin: 30px 0;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
}

.color-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.color-box.green { background: var(--accent-green); color: var(--bg-primary); }
.color-box.yellow { background: var(--accent-yellow); color: var(--bg-primary); }
.color-box.gray { background: var(--text-muted); color: white; }

.color-desc strong {
    display: block;
    margin-bottom: 5px;
    color: white;
}

.color-desc p {
    margin: 0;
    font-size: 0.9rem;
}

.rules-list,
.steps-list,
.benefits-list,
.curiosity-list {
    list-style: none;
    padding: 0;
}

.rules-list li,
.benefits-list li,
.curiosity-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card);
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
}

.rules-list i,
.benefits-list i,
.curiosity-list i {
    color: var(--accent-green);
    font-size: 1.2rem;
    margin-top: 3px;
}

.steps-list {
    counter-reset: step;
}

.steps-list li {
    position: relative;
    padding-left: 60px;
    margin-bottom: 20px;
    min-height: 50px;
}

.steps-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.drawing-parts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.part-item {
    background: var(--bg-card);
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.part-item .num {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--accent-magenta);
    border-radius: 50%;
    line-height: 30px;
    font-weight: 700;
    margin-bottom: 5px;
}

.frequency-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 30px 0;
}

.freq-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
}

.freq-bar::before {
    content: '';
    width: var(--width);
    height: 30px;
    background: var(--color);
    border-radius: var(--radius-sm);
    transition: width 1s ease;
}

.freq-bar .letter {
    width: 30px;
    font-weight: 700;
    font-size: 1.2rem;
}

.freq-bar .percent {
    margin-left: auto;
    font-weight: 600;
    color: var(--color);
}

.words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.word-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.word-card:hover {
    border-color: var(--accent-magenta);
    transform: translateY(-5px);
}

.word-card.recommended {
    border-color: var(--accent-green);
    position: relative;
}

.word-card.recommended::after {
    content: 'RECOMENDADA';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-green);
    color: var(--bg-primary);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}

.word-card .word {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 5px;
    color: var(--accent-yellow);
}

.word-card .score {
    display: block;
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.word-card p {
    font-size: 0.85rem;
    margin: 0;
}

.variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.variant-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-purple);
}

.variant-card h4 {
    color: var(--accent-purple);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.variant-card p {
    margin: 0;
    font-size: 0.95rem;
}

.guide-cta {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1) 0%, rgba(131, 56, 236, 0.1) 100%);
    border-radius: var(--radius-lg);
    margin: 50px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-cta h3 {
    margin-bottom: 10px;
}

.guide-cta p {
    margin-bottom: 25px;
}

.guide-author {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-top: 50px;
}

.guide-author .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.guide-author h4 {
    margin-bottom: 5px;
}

.guide-author p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 20px 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-magenta);
    transform: translateY(-3px);
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--accent-yellow);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-magenta);
}

.footer-newsletter h4 {
    margin-bottom: 15px;
    color: var(--accent-yellow);
}

.footer-newsletter p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: var(--radius-xl);
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-magenta);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .creator-card {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ahorcado-layout {
        grid-template-columns: 1fr;
    }

    .sopa-layout {
        grid-template-columns: 1fr;
    }

    .ahorcado-keyboard {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-bar {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .wordle-tile {
        font-size: 1.5rem;
    }

    .word-display {
        font-size: 1.5rem;
    }

    .letter-slot {
        width: 30px;
        height: 40px;
    }

    .guide-author {
        flex-direction: column;
        text-align: center;
    }

    .guide-author .author-avatar {
        margin: 0 auto;
    }

    .drawing-parts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animaciones adicionales */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease;
}

/* Utilidades */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }