/* ===================================
   VARIABLES Y RESET
   =================================== */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5a623;
    --accent-color: #ff6b35;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --bg-dark: #0f0f0f;
    --white: #ffffff;
    --gold: #d4af37;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===================================
   UTILIDADES
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.bg-dark {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.bg-dark h2, .bg-dark h3 {
    color: var(--white);
}

.bg-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
}

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    background: var(--white);
    color: var(--accent-color);
}

.btn-large:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.navbar {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
	/* AGREGAR ESTAS LÍNEAS: */
    background: white;
    border-radius: 50%;
    padding: 5px;
}

.logo span {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu .btn-primary {
    padding: 8px 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), 
                url('../images/hero-esgrima.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
    margin-top: 80px;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 2rem;
    color: var(--secondary-color);
}

/* ===================================
   CONTENT SECTIONS
   =================================== */
.content-box {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.content-box h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.content-box h3 i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.content-box p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.location-info {
    background: var(--bg-light);
    padding: 15px;
    border-left: 4px solid var(--secondary-color);
    margin: 15px 0;
}

.schedule-list {
    list-style: none;
    padding: 0;
}

.schedule-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.schedule-list li:last-child {
    border-bottom: none;
}

/* ===================================
   FEATURE CARDS
   =================================== */
.feature-card {
    background: rgba(255,255,255,0.05);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--secondary-color);
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.feature-card p {
    color: rgba(255,255,255,0.8);
}

/* ===================================
   INSTAGRAM SECTION
   =================================== */
.instagram-container {
    max-width: 900px;
    margin: 0 auto;
}

.instagram-embed {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.instagram-placeholder {
    padding: 60px 20px;
}

/* ===================================
   CTA BOX
   =================================== */
.cta-box {
    text-align: center;
    padding: 60px 20px;
    color: var(--white);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* ===================================
   TOURNAMENT SECTION
   =================================== */
.tournament-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 100%);
    position: relative;
    overflow: hidden;
}

.tournament-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="50" opacity="0.03">❄️</text></svg>') repeat;
    animation: snow 20s linear infinite;
    pointer-events: none;
}

@keyframes snow {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

.tournament-banner {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(245, 166, 35, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tournament-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.tournament-text h2 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tournament-text h2 i {
    color: var(--gold);
    margin-right: 15px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tournament-date {
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tournament-date i {
    color: var(--accent-color);
}

.tournament-intro {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(245, 166, 35, 0.1);
    border-left: 4px solid var(--secondary-color);
    border-radius: 5px;
}

.tournament-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--white);
    transition: var(--transition);
}

.detail-item:hover {
    background: rgba(245, 166, 35, 0.15);
    transform: translateX(5px);
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    min-width: 25px;
}

.detail-item span {
    font-size: 0.95rem;
    line-height: 1.5;
}

.tournament-highlight {
    font-size: 1.1rem;
    color: var(--white);
    background: rgba(255, 107, 53, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-color);
    font-weight: 500;
}

.tournament-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--gold));
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 20px 45px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
}

.tournament-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--secondary-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(245, 166, 35, 0.6);
}

.tournament-image {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.tournament-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--secondary-color);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 40px 20px;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Tournament Section Responsive */
    .tournament-banner {
        padding: 30px 20px;
    }

    .tournament-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tournament-text h2 {
        font-size: 2rem;
    }

    .tournament-details {
        grid-template-columns: 1fr;
    }

    .tournament-btn {
        width: 100%;
        justify-content: center;
        padding: 18px 30px;
        font-size: 1.1rem;
    }

    .tournament-image {
        order: -1;
    }

}