/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fefefe;
    overflow-x: hidden;
    padding-top: 90px; /* Espacio para el navbar fijo */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #1a252f;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #2c3e50;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #34495e;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #5a6c7d;
}

/* Color Palette */
:root {
    --primary-color: #8b4513; /* Terracotta */
    --secondary-color: #f5f5dc; /* Cream */
    --accent-color: #9caf88; /* Sage green */
    --text-dark: #2c3e50;
    --text-light: #5a6c7d;
    --background: #fefefe;
    --border-color: #e8e8e8;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(254, 254, 254, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: calc(100vh - 90px);
    background: linear-gradient(135deg, rgba(156, 175, 136, 0.1) 0%, rgba(139, 69, 19, 0.05) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('hero-damas-bolivia.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button:hover {
    background: #7a3d11;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.6s both;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Game Board Section */
.game-section {
    background: var(--secondary-color);
    padding: 5rem 0;
}

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

.game-board {
    width: 400px;
    height: 400px;
    background: #8b4513;
    border: 3px solid #654321;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 1px;
    padding: 10px;
    margin: 0 auto;
}

.square {
    background: #f5f5dc;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.square.dark {
    background: #8b4513;
}

.square.piece-white::after {
    content: '';
    width: 30px;
    height: 30px;
    background: #f5f5dc;
    border-radius: 50%;
    border: 2px solid #654321;
}

.square.piece-black::after {
    content: '';
    width: 30px;
    height: 30px;
    background: #2c3e50;
    border-radius: 50%;
    border: 2px solid #1a252f;
}

.game-info h3 {
    margin-bottom: 1.5rem;
}

.game-info ul {
    list-style: none;
    padding: 0;
}

.game-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.game-info li:before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer p {
    color: #bdc3c7;
    margin-bottom: 0;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container,
    .game-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .game-board {
        width: 300px;
        height: 300px;
    }
    
    .square.piece-white::after,
    .square.piece-black::after {
        width: 25px;
        height: 25px;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* --- ChatGPT patch: Pure CSS/JS responsive navbar + spacing + mobile polish --- */
.navbar-container { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.logo { display:inline-flex; align-items:center; gap:12px; margin-right:40px; text-decoration:none; color:#000; }
.brand-text { font-weight:800; color:#000; }
.brand-logo { height:68px; width:auto; }

.nav-menu { display:flex; align-items:center; gap:2rem; }

.hamburger { display:none; background:none; border:none; padding:8px; cursor:pointer; line-height:0; }
.hamburger .bar { display:block; width:26px; height:3px; background:#000; margin:5px 0; transition:transform .3s ease, opacity .3s ease; }

/* General navbar spacing */
.navbar { padding: 12px 0; }

/* Responsive */
:root { --navbar-height: 70px; }

@media (max-width: 992px) {
  .hamburger { display:inline-block; }
  .logo { margin-right:0; }
  .navbar-container { position:relative; }
  .nav-menu {
    position:absolute; top:100%; right:0; left:0;
    background:#fff; border:1px solid var(--border-color);
    border-radius:10px; padding:12px 16px; box-shadow:0 8px 20px rgba(0,0,0,.08);
    display:none; flex-direction:column; gap:12px; z-index:2000;
  }
  .nav-menu.active { display:flex; }
  .nav-link { padding:6px 2px; }
  .brand-logo { height:44px; }
  .brand-text { font-size:1.05rem; }
  .hero-content { padding: 0 14px; }
  .hero-content h1 { font-size: clamp(1.8rem, 6.5vw + 0.6rem, 2.6rem); line-height:1.15; margin-bottom:1rem; }
  .hero-content p { font-size:1rem; line-height:1.6; margin-bottom:1.25rem; }
  .cta-button { padding:0.9rem 1.4rem; font-size:1rem; }
}

@media (max-width: 420px) {
  :root { --navbar-height: 64px; }
  .brand-logo { height:40px; }
  .brand-text { font-size:1rem; }
  .hero-content h1 { font-size: clamp(1.6rem, 7.5vw + 0.5rem, 2.3rem); }
}
