/* ===================================
   JUDO CLUB CORUÑA - ESTILOS
   =================================== */

/* === VARIABLES === */
:root {
    --color-primary: #c8102e;
    --color-primary-dark: #a00d24;
    --color-secondary: #1a1a2e;
    --color-dark: #0f0f1a;
    --color-white: #ffffff;
    --color-light: #f8f9fa;
    --color-gray: #6c757d;
    --color-gray-light: #e9ecef;
    --color-judo: #c8102e;
    --color-jiu-jitsu: #2563eb;
    --color-aikido: #059669;
    --color-iaido: #7c3aed;
    --color-taichi: #d97706;
    --color-karate: #0e7490;
    --color-pilates: #e11d48;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* === RESET === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-secondary);
    background-color: var(--color-white);
}

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

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

ul {
    list-style: none;
}

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

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4);
}

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

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-secondary);
    transform: translateY(-2px);
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 0;
    transition: var(--transition);
}

body.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

.header.scrolled {
    padding: 6px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo img {
    height: 36px;
    width: auto;
}

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

.nav-link {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

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

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

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

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

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 26, 0.85) 0%, rgba(200, 16, 46, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    padding: 20px;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.9;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === SECTION HEADER === */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.section-text {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* === ACTIVIDADES === */
.actividades {
    padding: 100px 0;
    background: var(--color-light);
}

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

.actividad-card {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.actividad-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.actividad-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.actividad-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.actividad-card:hover .actividad-img img {
    transform: scale(1.1);
}

.actividad-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.actividad-content {
    padding: 25px;
}

.actividad-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.actividad-desc {
    font-size: 0.95rem;
    color: var(--color-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.actividad-horario {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.actividad-horario i {
    font-size: 1rem;
}

/* === HORARIOS === */
.horarios {
    padding: 100px 0;
    background: var(--color-white);
}

.horarios-table-wrapper {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.horarios-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
}

.horarios-table th,
.horarios-table td {
    padding: 18px 15px;
    text-align: center;
    border: 1px solid var(--color-gray-light);
}

.horarios-table thead {
    background: var(--color-secondary);
    color: var(--color-white);
}

.horarios-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.horarios-table tbody tr {
    transition: var(--transition);
}

.horarios-table tbody tr:hover {
    background: var(--color-light);
}

.horarios-table td {
    font-size: 0.9rem;
    line-height: 1.8;
}

.disciplina {
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center !important;
    padding-left: 20px !important;
}

.disciplina i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    vertical-align: middle;
}

.disciplina.judo { color: var(--color-judo); }
.disciplina.jiu-jitsu { color: var(--color-jiu-jitsu); }
.disciplina.karate { color: var(--color-karate); }
.disciplina.aikido { color: var(--color-aikido); }
.disciplina.iaido { color: var(--color-iaido); }
.disciplina.taichi { color: var(--color-taichi); }
.disciplina.pilates { color: var(--color-pilates); }

.horarios-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.judo { background: var(--color-judo); }
.legend-color.jiu-jitsu { background: var(--color-jiu-jitsu); }
.legend-color.karate { background: var(--color-karate); }
.legend-color.aikido { background: var(--color-aikido); }
.legend-color.iaido { background: var(--color-iaido); }
.legend-color.taichi { background: var(--color-taichi); }
.legend-color.pilates { background: var(--color-pilates); }

/* === SOBRE NOSOTROS === */
.sobre-nosotros {
    padding: 100px 0;
    background: var(--color-light);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-img {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.sobre-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sobre-content .section-tag,
.sobre-content .section-title {
    text-align: left;
}

.sobre-text {
    font-size: 1.05rem;
    color: var(--color-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.sobre-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-secondary);
}

.feature-text span {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* === CONTACTO === */
.contacto {
    padding: 100px 0;
    background: var(--color-white);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contacto-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contacto-icon {
    width: 55px;
    height: 55px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contacto-text h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

.contacto-text p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contacto-text a {
    color: var(--color-primary);
    font-weight: 500;
}

.contacto-text a:hover {
    text-decoration: underline;
}

.contacto-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

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

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.contacto-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contacto-map iframe {
    display: block;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* === CARRUSEL === */
.carousel {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    margin-top: 70px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--color-white);
    text-align: center;
}

.carousel-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

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

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* === ACTUALIDAD / NOTICIAS === */
.actualidad {
    padding: 100px 0;
    background: var(--color-white);
}

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

.noticia-card {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.noticia-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.noticia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.noticia-card:hover .noticia-img img {
    transform: scale(1.05);
}

.noticia-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-white);
}

.noticia-badge.noticia { background: var(--color-primary); }
.noticia-badge.competicion { background: #2563eb; }
.noticia-badge.evento { background: #059669; }
.noticia-badge.galeria { background: #7c3aed; }

.noticia-content {
    padding: 20px;
}

.noticia-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--color-gray);
}

.noticia-meta i {
    margin-right: 5px;
}

.noticia-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.noticia-excerpt {
    font-size: 0.95rem;
    color: var(--color-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.noticia-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.noticia-link:hover {
    gap: 12px;
}

.actualidad-more {
    text-align: center;
    margin-top: 40px;
}

/* === PANEL ADMIN === */
.btn-admin-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 998;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-admin-toggle:hover {
    background: var(--color-primary);
    transform: rotate(90deg);
}

.admin-panel {
    background: var(--color-light);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    border: 2px solid var(--color-gray-light);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-gray-light);
}

.admin-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-secondary);
}

.admin-header h3 i {
    color: var(--color-primary);
    margin-right: 10px;
}

.btn-close-admin {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--color-gray);
    cursor: pointer;
    transition: var(--transition);
}

.btn-close-admin:hover {
    color: var(--color-primary);
}

.news-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 1px solid var(--color-gray-light);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .actividades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actualidad-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }

    .header.scrolled {
        padding: 10px 0;
    }

    .logo img {
        height: 50px;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--color-dark);
        padding: 20px;
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .nav.active {
        transform: translateY(0);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-link {
        display: block;
        padding: 10px 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .actividades-grid {
        grid-template-columns: 1fr;
    }
    
    .sobre-grid {
        grid-template-columns: 1fr;
    }
    
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .horarios-table th,
    .horarios-table td {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    
    .disciplina {
        font-size: 0.85rem;
    }
    
    .sobre-features {
        grid-template-columns: 1fr;
    }
    
    .actualidad-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .carousel {
        height: 50vh;
        min-height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-caption h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .horarios-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}
