/* ================================
   VARIABLES Y RESET
   ================================ */
:root {
    --primary-color: #FF6B1A;
    --secondary-color: #1A1A1A;
    --accent-color: #FFD700;
    --background-color: #F5F5F5;
    --text-color: #2C2C2C;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Rubik', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* ================================
   LAYOUT
   ================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 3rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Rubik', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.logo-text {
    color: var(--secondary-color);
}

.logo-accent {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-cta {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
}

.nav-cta:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/img16.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(255, 107, 26, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    display: block;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================
   BUTTONS
   ================================ */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.25rem;
}

/* ================================
   CONTENT GRIDS
   ================================ */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

.content-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-image {
    position: sticky;
    top: 100px;
}

.character-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.character-image:hover {
    transform: scale(1.05);
}

.image-caption {
    margin-top: 15px;
    padding: 15px;
    background: var(--white);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: var(--text-color);
}

/* ================================
   INFO CARDS & TABLES
   ================================ */
.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.info-card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.info-table td {
    padding: 12px 0;
}

.info-table td:first-child {
    width: 40%;
    font-weight: 600;
}

/* ================================
   AD BANNERS - ACTUALIZADOS CON IMAGEN
   ================================ */
.ad-banner {
    margin: 60px 0;
    overflow: hidden;
}

.ad-content {
    display: block;
    transition: var(--transition);
    position: relative;
}

.ad-content:hover {
    transform: scale(1.02);
}

.ad-banner-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.ad-banner-image:hover {
    box-shadow: 0 15px 40px rgba(255, 107, 26, 0.4);
}

/* Estilos alternativos para banners de texto (backup) */
.ad-text {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 15px;
    color: var(--white);
}

.ad-text h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
}

.ad-text p {
    font-size: 1.125rem;
    margin-bottom: 15px;
}

.ad-cta {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    margin-top: 10px;
    transition: var(--transition);
}

.ad-content:hover .ad-cta {
    background: var(--accent-color);
    color: var(--secondary-color);
}

/* ================================
   TIMELINE (Historia)
   ================================ */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
    z-index: 2;
}

.timeline-content {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 0 auto;
    max-width: 90%;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.content-with-image {
    display: flex;
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}

.content-with-image.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
}

.inline-image {
    width: 250px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.timeline-image {
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ================================
   QUIRK SECTION
   ================================ */
.quirk-intro {
    margin-bottom: 50px;
}

.quirk-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.quirk-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.quirk-mechanics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.mechanic-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.mechanic-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.mechanic-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.mechanic-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.techniques-grid {
    display: grid;
    gap: 40px;
    margin: 40px 0;
}

.technique-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    align-items: center;
}

.technique-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.technique-info h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.pros, .cons {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.pros h4 {
    color: #27ae60;
    margin-bottom: 20px;
}

.cons h4 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
}

.pros li, .cons li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
}

.cons li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: 700;
}

/* ================================
   PERSONALITY SECTION
   ================================ */
.personality-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.personality-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.traits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.trait-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

.trait-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.trait-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.evolution-section {
    margin: 50px 0;
}

.evolution-phase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.evolution-phase.reverse {
    grid-template-columns: 2fr 1fr;
}

.evolution-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.evolution-text h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.relationships {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.relationship-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.relationship-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.relationship-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ================================
   COSTUME SECTION
   ================================ */
.costume-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.costume-hero-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.costume-features {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.costume-evolution {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 50px;
}

.costume-evolution h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.costume-alt-image {
    width: 300px;
    margin: 30px auto 0;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ================================
   CURIOSIDADES SECTION
   ================================ */
.trivia-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.trivia-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    padding-left: 80px;
    transition: var(--transition);
}

.trivia-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.trivia-number {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: 'Rubik', sans-serif;
}

.trivia-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.fun-facts {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 50px 0;
}

.fun-facts h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.facts-list {
    list-style: none;
    padding: 0;
}

.facts-list li {
    padding: 15px 0;
    padding-left: 40px;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.125rem;
}

.facts-list li:last-child {
    border-bottom: none;
}

.quotes-section {
    margin-top: 60px;
}

.quotes-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.quotes-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.quote-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    font-style: italic;
    font-size: 1.125rem;
    position: relative;
}

.quote-card::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -10px;
    left: 15px;
    color: rgba(255, 255, 255, 0.2);
    font-family: Georgia, serif;
}

/* ================================
   QUIZ SECTION
   ================================ */
.section-quiz {
    background: var(--white);
}

.quiz-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.125rem;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-start {
    text-align: center;
    padding: 60px 0;
}

.quiz-progress {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

.question-container {
    background: var(--background-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.options-grid {
    display: grid;
    gap: 15px;
}

.option-btn {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: #fff5f0;
}

.option-btn.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.quiz-results {
    text-align: center;
    padding: 60px 40px;
    background: var(--background-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

#resultsTitle {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.score-display {
    margin: 40px 0;
}

.score-text {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.score-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: 'Rubik', sans-serif;
}

.results-message {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 30px 0;
    color: var(--secondary-color);
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-game-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    margin-top: 10px;
    transition: var(--transition);
}

.footer-game-link:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.7;
}

/* ================================
   UTILITIES
   ================================ */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }