/* services-navigation.css - TODOS los estilos para la nueva estructura */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Bebas+Neue&display=swap');

:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-red: #4ba34c;
    --color-gray: #333333;
    --color-light-gray: #ffffff;
    --color-dark-blue: #3c853d;
    --fuente-principal: 'Montserrat', sans-serif;
    --fuente-secundaria: 'Bebas Neue', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(to bottom, #ffffff, var(--color-dark-blue));
    color: var(--color-black);
    font-family: var(--fuente-principal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header y Navegación */
.header {
    background: var(--color-white);
    border-bottom: 2px solid var(--color-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px  ;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 60px;
    height: 60px;
    background: var(--color-white);
    border: 2px solid var(--color-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: rotate(360deg) scale(1.1);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-name {
    font-family: var(--fuente-secundaria);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-black);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-gray);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: 0.3s ease;
    text-transform: uppercase;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--color-white);
    background: var(--color-red);
    transform: translateY(-2px);
}

/* Main Content */
.services-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.page-title {
    font-family: var(--fuente-secundaria);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--color-black);
    text-transform: uppercase;
}

.page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

/* Contenedor principal de servicios */
.services-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    min-height: 600px;
    margin-top: 2rem;
}

/* Navegación de servicios */
.services-nav {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    height: fit-content;
    position: sticky;
    top: 120px;
    border-left: 5px solid var(--color-red);
}

.services-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.category.active {
    border-color: var(--color-red);
    box-shadow: 0 4px 15px rgba(0, 44, 139, 0.2);
}

.category-header {
    background: linear-gradient(135deg, #4ba34c 0%, #00704b 100%);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
}

.category-header:hover {
    background: linear-gradient(135deg, #00704b 0%, #4ba34c 100%);
    transform: translateX(5px);
}

.category-header i:first-child {
    font-size: 1.2rem;
    margin-right: 0.8rem;
}

.category-header span {
    font-size: 1.1rem;
    font-weight: 600;
    flex-grow: 1;
    font-family: var(--fuente-principal);
}

.category-header .arrow {
    transition: transform 0.3s;
}

.category.active .category-header .arrow {
    transform: rotate(90deg);
}

/* Subcategorías */
.subcategories {
    max-height: 0;
    overflow: hidden;
    background: var(--color-light-gray);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category.active .subcategories {
    max-height: 500px;
}

.subcategory {
    padding: 0.8rem 1.5rem 0.8rem 3rem;
    cursor: pointer;
    border-bottom: 1px solid #464545;
    transition: all 0.3s;
    position: relative;
    color: var(--color-gray);
    font-family: var(--fuente-principal);
}

.subcategory:last-child {
    border-bottom: none;
}

.subcategory:hover {
    background: rgba(0, 0, 0, 0.1);
    padding-left: 3.5rem;
    color: var(--color-red);
}

.subcategory::before {
    content: '›';
    position: absolute;
    left: 2rem;
    color: var(--color-red);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.subcategory:hover::before {
    transform: translateX(3px);
}

.subcategory.active {
    background: var(--color-red);
    color: var(--color-white);
}

.subcategory.active::before {
    color: var(--color-white);
}

/* Panel de visualización */
.service-display {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    border-left: 5px solid var(--color-red);
    min-height: 600px;
    position: relative;
}

.service-default {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 500px;
    width: 100%;
}

.default-content {
    text-align: center;
    color: var(--color-gray);
    padding: 2rem;
    width: 100%;
}

.default-icon {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.default-content h2 {
    font-family: var(--fuente-secundaria);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-black);
    text-transform: uppercase;
}

.default-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Contenido del servicio */
.service-content {
    display: none;
    width: 100%;
}

.service-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-title {
    font-family: var(--fuente-secundaria);
    font-size: 2.5rem;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--color-red);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-transform: uppercase;
}

.service-title i {
    color: var(--color-red);
}

/* Carrusel */
.carousel-container {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    width: 100%;
    height: 520px;
    background: var(--color-white);
}

.carousel {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-white);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.7s ease;
    display: block;
}

.carousel-slide.active img:hover {
    transform: scale(1.05);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-btn {
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 0.5rem;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.2);
}

.indicator.active {
    background: var(--color-red);
    transform: scale(1.2);
}

/* Descripción del servicio */
.service-description {
    background: var(--color-light-gray);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid var(--color-red);
}

.service-description h3 {
    color: var(--color-black);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--fuente-principal);
    font-weight: 600;
}

.service-description h3 i {
    color: var(--color-red);
}

.service-description p {
    line-height: 1.8;
    color: var(--color-gray);
    font-size: 1.1rem;
}

/* Footer */
.pie {
    background: var(--color-light-gray);
    border-top: 2px solid var(--color-red);
    padding: 1.5rem;
    text-align: center;
    margin-top: 3rem;
    width: 100%;
}

.pie p {
    color: var(--color-gray);
    font-family: var(--fuente-secundaria);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .services-container {
        grid-template-columns: 300px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .services-nav {
        position: static;
    }
    
    .carousel-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-links a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .services-container {
        padding: 0;
    }
    
    .services-main {
        padding: 1rem;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    .category-header {
        padding: 0.8rem 1rem;
    }
    
    .subcategory {
        padding: 0.7rem 1rem 0.7rem 2.5rem;
    }
    
    .subcategory:hover {
        padding-left: 2.8rem;
    }
    
    .subcategory::before {
        left: 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .carousel-container {
        height: 250px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        padding: 0.3rem;
    }
    
    .service-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .service-description {
        padding: 1.5rem;
    }
    
    .service-description p {
        font-size: 1rem;
    }
    
    .services-nav {
        padding: 1rem;
    }
}