/*
	Solitude by TEMPLATE STOCK
	templatestock.co @templatestock
	Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
*/

/* ==========================================================================
   ESTILOS GLOBALES
   ========================================================================== */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    color: #000000;
}

body {
    font-family: 'Share Tech';
    font-weight: 300;
    font-size: 16px;
    color: #000000 !important;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
}

body:not(.rhythm-citadel-page) h1,
body:not(.rhythm-citadel-page) h2,
body:not(.rhythm-citadel-page) h3,
body:not(.rhythm-citadel-page) h4,
body:not(.rhythm-citadel-page) h5,
body:not(.rhythm-citadel-page) h6 {
    text-align: center;
    color: #3498db !important;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5) !important;
}

.container {
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
}

.centered {
    text-align: center;
}

.white {
    background: white;
    padding: 60px 0;
}

.greywrap {
    border-bottom: none !important;
    margin-bottom: none !important;
    margin-top: 40px !important;
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader-content {
    text-align: center;
    color: white;
    font-family: 'Open Sans', sans-serif;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(52, 152, 219, 0.3);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.preloader-content p {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 1px;
}

.progress-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 20px auto 0;
    overflow: hidden;
}

.progress-bar-preloader {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

body:not(.loaded) {
    overflow: hidden;
}

body.loaded {
    overflow: auto;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar-fixed-top {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.navbar-default {
    border-color: transparent;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
    padding: 12px 0;
}

.navbar-nav {
    float: right;
}

.navbar-nav>li>a {
    padding-top: 25px;
    padding-bottom: 25px;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
}

.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
    margin-top: 25px;
    float: left;
}

.navbar-brand img {
    height: 70px;
    margin-right: 15px;
}

.navbar-brand span {
    font-size: 30px;
    font-weight: bold;
    color: #3498db;
}

.navbar-toggle {
    margin: 0;
    border: 1px solid #000000 !important;
    order: 2;
    margin-left: auto;
    background: transparent !important;
    padding: 9px 10px;
    transition: all 0.3s ease;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background-color: rgba(0, 0, 0, 0.1) !important;
    border-color: #000000 !important;
}

.navbar-toggle .icon-bar {
    background-color: #000000 !important;
    height: 3px;
    width: 22px;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.navbar-toggle .icon-bar+.icon-bar {
    margin-top: 4px;
}

.navbar-toggle:hover .icon-bar {
    background-color: #333333 !important;
}

.navbar-toggle.collapsed {
    border-color: #000000 !important;
}

.navbar-toggle.collapsed .icon-bar {
    background-color: #000000 !important;
}

.navbar-default .navbar-toggle {
    border-color: #000000 !important;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #000000 !important;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

/* NAVBAR - RESPONSIVE */
/* Grande (992px y más) */
@media (min-width: 992px) {
    .navbar-header {
        display: block;
    }

    .navbar-brand {
        display: flex !important;
        align-items: center;
        margin-top: 5px !important;
        float: left !important;
        height: auto;
    }

    .navbar-brand img {
        height: 70px !important;
        margin-right: 15px !important;
    }

    .navbar-brand span {
        font-size: 30px !important;
        color: #3498db !important;
    }

    .navbar-toggle {
        display: none !important;
    }

    .navbar-collapse {
        display: block !important;
        padding-top: 5px !important;
    }

    .navbar-nav {
        float: right !important;
        margin: 0 !important;
    }

    .navbar-nav>li>a {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
        font-size: 18px !important;
    }

    .navbar>.container {
        display: block;
    }
}

/* Mediano (768px a 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-header {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0 15px;
    }

    .navbar-brand {
        display: flex !important;
        align-items: center;
        margin: 0 !important;
        margin-top: 5px !important;
        float: none !important;
        flex-shrink: 0;
        height: 55px;
    }

    .navbar-brand img {
        height: 50px !important;
        margin-right: 10px !important;
        transition: none !important;
    }

    .navbar-brand span {
        font-size: 22px !important;
        white-space: nowrap;
        transition: none !important;
        line-height: 50px;
        color: #3498db !important;
    }

    .navbar-toggle {
        display: none !important;
    }

    .navbar-collapse {
        display: flex !important;
        flex: 1;
        justify-content: flex-end;
        align-items: center;
        max-height: none !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        transition: none !important;
        margin-top: 5px !important;
    }

    .navbar-collapse.collapse {
        display: flex !important;
        height: auto !important;
        overflow: visible !important;
    }

    .navbar-nav {
        width: auto;
        margin: 0 !important;
        display: flex !important;
        align-items: center;
        flex-wrap: nowrap;
    }

    .navbar-nav>li {
        float: none;
    }

    .navbar-nav>li>a {
        padding: 18px 10px !important;
        font-size: 14px !important;
        white-space: nowrap;
        line-height: normal;
    }

    .navbar-default {
        min-height: 70px !important;
        padding: 8px 0 !important;
    }
}

/* Pequeño (767px y menos) */
@media (max-width: 767px) {
    .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 5px 15px;
        width: 100%;
    }

    .navbar-brand {
        display: flex !important;
        align-items: center;
        margin: 0 !important;
        flex: 1;
        max-width: 80%;
    }

    .navbar-brand img {
        height: 40px !important;
        margin-right: 8px !important;
    }

    .navbar-brand span {
        font-size: 18px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #3498db !important;
    }

    .navbar-toggle {
        display: block !important;
        margin: 0 !important;
        order: 2;
    }

    .navbar-collapse {
        clear: both;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar-collapse.collapse.in,
    .navbar-collapse.collapse.show {
        max-height: 300px;
    }

    .navbar-nav {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .navbar-nav>li {
        display: block;
        float: none;
    }

    .navbar-nav>li>a {
        padding: 12px 15px !important;
        border-top: 1px solid #eee;
        font-size: 15px;
        display: block;
    }
}

/* Muy pequeño (480px y menos) */
@media (max-width: 480px) {
    .navbar-brand span {
        font-size: 16px !important;
        color: #3498db !important;
    }

    .navbar-brand img {
        height: 35px !important;
    }

    .navbar-toggle {
        padding: 8px 9px;
    }

    .navbar-toggle .icon-bar {
        width: 20px;
    }
}

/* ==========================================================================
   HEADER / HERO SECTIONS
   ========================================================================== */

#headerwrap2 {
    padding-top: 250px;
    padding-bottom: 270px;
    text-align: center;
    background-attachment: relative;
    background-position: center center;
    min-height: 500px;
    width: 100%;
    background-size: cover;
    position: relative;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#headerwrap2 header {
    position: relative;
    z-index: 2;
    text-align: center;
}

#headerwrap header h1,
#headerwrap2 header h1 {
    color: white;
    font-size: 4em;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

#headerwrap header p {
    color: white;
    font-size: 1.5em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

body:not(.rhythm-citadel-page) #headerwrap2 header h1 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5) !important;
}

body:not(.rhythm-citadel-page) #headerwrap2 header p.animated {
    color: white !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5) !important;
    font-size: 1.5em !important;
}

#headerwrap2 header h1 {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    font-size: 4em;
}

/* HEADER - RESPONSIVE */
@media (max-width: 768px) {
    #headerwrap2 {
        padding-top: 150px;
        padding-bottom: 150px;
    }

    #headerwrap2 header h1 {
        font-size: 2.5em;
    }

    #headerwrap header h1,
    #headerwrap2 header h1 {
        font-size: 2.5em;
    }

    #headerwrap header p {
        font-size: 1.2em;
    }

    #headerwrap2 header p {
        font-size: 1.2em;
    }
}

/* ==========================================================================
   SECCIONES DE PROYECTOS (Página Principal)
   ========================================================================== */

.document-section {
    border-bottom: none !important;
    margin-bottom: none !important;
    padding-bottom: 50px !important;
}

.document-section:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.section-content {
    display: flex;
    align-items: start;
    gap: 40px;
}

.section-image {
    flex: 0 0 auto;
    text-align: center;
}

.section-image img {
    border-radius: 10px;
    object-fit: cover;
}

.document-section:first-child .section-image {
    flex: 0 0 auto;
}

.img-rhythm-citadel {
    width: 250px;
    height: 350px;
}

.img-game-development {
    width: 250px;
    height: 250px;
}

.section-text {
    flex: 1;
    text-align: center;
    align-self: flex-start;
}

.section-text h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 2em;
    font-weight: 600;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.section-text p {
    color: #000000;
    line-height: 1.8;
    font-size: 1.1em;
    margin-bottom: 15px;
    margin-left: 50px;
    margin-right: 50px;
}

/* SECCIONES PROYECTOS - RESPONSIVE */
@media (max-width: 768px) {
    .section-content {
        flex-direction: column;
        text-align: center;
    }

    .section-image {
        margin: 0 auto 20px auto;
        text-align: center;
    }

    .section-text {
        text-align: center;
        width: 100%;
    }

    .section-text p {
        margin-left: 15px;
        margin-right: 15px;
    }

    .img-rhythm-citadel,
    .img-game-development {
        width: 200px;
        height: auto;
        max-width: 100%;
    }

    .section-image {
        order: -1;
    }
}

/* ==========================================================================
   PROGRESS SECTION (Página Principal)
   ========================================================================== */

.progress-section {
    background: transparent;
    padding: 80px 0;
    border-bottom: 1px solid #eee;
}

.progress-bars {
    max-width: 800px;
    margin: 40px auto;
}

.progress-item {
    margin-bottom: 30px;
}

.progress-item span {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.progress {
    height: 25px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    background: #3498db;
    border-radius: 12px;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    line-height: 25px;
    transition: width 1.5s ease-in-out;
}

.milestones {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.milestones h3.centered {
    font-size: 2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.milestone-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.milestone {
    text-align: center;
    padding: 20px;
    background: #3498db;
    border-radius: 10px;
    min-width: 150px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.milestone:hover {
    transform: translateY(-5px);
    background: #2980b9;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.milestone.active {
    background: #2c3e50;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

.milestone-date {
    display: block;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.milestone-desc {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.milestone-description-panel {
    margin-top: 30px;
    padding: 25px;
    background: #c6e8ff !important;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: none;
}

.milestone-description-panel h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
}

.milestone-description-panel p {
    color: #000000;
    line-height: 1.6;
    font-size: 1em;
    font-weight: 200;
    margin: 0;
}

/* MILESTONES - RESPONSIVE */
.milestone-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.milestone {
    width: 100%;
    max-width: 300px;
    margin-bottom: 15px;
}

/* Pequeño */
@media (min-width: 768px) {
    .milestone-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 800px;
        margin: 0 auto;
    }

    .milestone {
        min-width: auto;
        margin-bottom: 0;
        width: 100%;
    }
}

/* Grande */
@media (min-width: 992px) {
    .milestone-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        max-width: 1200px;
    }

    .milestone {
        min-width: auto;
    }
}

/* Muy pequeño */
@media (max-width: 767px) {
    .milestone-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .milestone {
        width: 100%;
        max-width: 300px;
    }
}

/* PROGRESS SECTION - RESPONSIVE */
@media (max-width: 768px) {
    .progress-section {
        padding: 50px 0;
    }

    .progress-bar {
        font-size: 12px;
    }
}

/* ==========================================================================
   ABOUT US SECTION (Página Principal)
   ========================================================================== */

.container .row.white h1.centered {
    color: #3498db;
}

/* ==========================================================================
   CARRUSEL MIEMBROS (Página Principal)
   ========================================================================== */
.equipo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 80px auto;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* CONTENEDOR DEL CÍRCULO - tamaño base */
.circle-wrapper {
    position: relative;
    width: 300px;
    /* Tamaño base */
    height: 300px;
    margin: 0 auto;
}

/* CÍRCULO PRINCIPAL */
.circle {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: rotate(-300deg);
    transition: transform 1s ease-in-out;
    z-index: 2;
}

/* MIEMBROS - tamaño RELATIVO al círculo */
.circle .member-container {
    z-index: 3;
    position: absolute;
    width: 80px;
    /* Tamaño fijo pero se ajustará en responsive */
    height: 80px;
    top: 50%;
    left: 50%;
    margin-left: -40px;
    /* Mitad del ancho */
    margin-top: -40px;
    /* Mitad de la altura */
}

.circle .member-container img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* POSICIONES - VERSIÓN CORREGIDA (sin transform extra) */
.circle .member-container:nth-child(1) {
    transform: translate(140px, 0);
}

.circle .member-container:nth-child(2) {
    transform: translate(70px, 121px);
}

.circle .member-container:nth-child(3) {
    transform: translate(-70px, 121px);
}

.circle .member-container:nth-child(4) {
    transform: translate(-140px, 0);
}

.circle .member-container:nth-child(5) {
    transform: translate(-70px, -121px);
}

.circle .member-container:nth-child(6) {
    transform: translate(70px, -121px);
}

.circle .member-container img:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* ENGRANAJE - tamaño fijo pero proporcional */
.engranaje-central {
    position: absolute;
    width: 375px;
    height: 375px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 1;
    transition: transform 1s ease-in-out;
    pointer-events: none;
}

.engranaje-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* PANEL DE INFORMACIÓN */
.info-panel {
    max-width: 350px;
    min-height: 150px;
    text-align: left;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
}

.info-panel h2 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.info-panel p {
    color: #333;
    line-height: 1.6;
    font-size: 1.1em;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* Mediano (768px a 991px) */
@media (max-width: 991px) {
    .equipo-container {
        flex-direction: column;
        gap: 40px;
        margin: 60px auto;
    }

    .circle-wrapper {
        width: 250px;
        height: 250px;
    }

    .circle .member-container {
        width: 65px;
        height: 65px;
        margin-left: -30px;
        margin-top: -30px;
    }

    .circle .member-container:nth-child(1) {
        transform: translate(116.67px, 0);
    }

    .circle .member-container:nth-child(2) {
        transform: translate(58.33px, 100.83px);
    }

    .circle .member-container:nth-child(3) {
        transform: translate(-58.33px, 100.83px);
    }

    .circle .member-container:nth-child(4) {
        transform: translate(-116.67px, 0);
    }

    .circle .member-container:nth-child(5) {
        transform: translate(-58.33px, -100.83px);
    }

    .circle .member-container:nth-child(6) {
        transform: translate(58.33px, -100.83px);
    }

    .engranaje-central {
        width: 312.5px;
        height: 312.5px;
    }

    .info-panel {
        max-width: 500px;
        width: 100%;
        text-align: center;
        min-width: auto;
    }

    .info-panel h2 {
        font-size: 1.6em;
    }

    .info-panel p {
        font-size: 1em;
    }
}

/* Pequeño (576px a 767px) */
@media (max-width: 767px) {
    .equipo-container {
        gap: 30px;
        margin: 50px auto;
        padding: 0 15px;
    }

    .circle-wrapper {
        width: 220px;
        height: 220px;
    }

    .circle .member-container {
        width: 50px;
        height: 50px;
        margin-left: -25px;
        margin-top: -25px;
    }

    .circle .member-container:nth-child(1) {
        transform: translate(102.67px, 0);
    }

    .circle .member-container:nth-child(2) {
        transform: translate(51.33px, 88.73px);
    }

    .circle .member-container:nth-child(3) {
        transform: translate(-51.33px, 88.73px);
    }

    .circle .member-container:nth-child(4) {
        transform: translate(-102.67px, 0);
    }

    .circle .member-container:nth-child(5) {
        transform: translate(-51.33px, -88.73px);
    }

    .circle .member-container:nth-child(6) {
        transform: translate(51.33px, -88.73px);
    }

    .engranaje-central {
        width: 275px;
        height: 275px;
    }

    .circle .member-container img {
        border-width: 2px;
    }

    .info-panel {
        padding: 15px;
        max-width: 100%;
    }

    .info-panel h2 {
        font-size: 1.4em;
    }
}

/* Más pequeño (480px a 575px) */
@media (max-width: 575px) {
    .circle-wrapper {
        width: 200px;
        height: 200px;
    }

    .circle .member-container {
        width: 45px;
        height: 45px;
        margin-left: -22.5px;
        margin-top: -22.5px;
    }

    .circle .member-container:nth-child(1) {
        transform: translate(93.33px, 0);
    }

    .circle .member-container:nth-child(2) {
        transform: translate(46.67px, 80.67px);
    }

    .circle .member-container:nth-child(3) {
        transform: translate(-46.67px, 80.67px);
    }

    .circle .member-container:nth-child(4) {
        transform: translate(-93.33px, 0);
    }

    .circle .member-container:nth-child(5) {
        transform: translate(-46.67px, -80.67px);
    }

    .circle .member-container:nth-child(6) {
        transform: translate(46.67px, -80.67px);
    }

    .engranaje-central {
        width: 250px;
        height: 250px;
    }

    .circle .member-container img:hover {
        transform: scale(1.1);
    }

    .equipo-container {
        margin: 40px auto;
        gap: 25px;
    }
}

/* Muy pequeño (menos de 480px) */
@media (max-width: 480px) {
    .circle-wrapper {
        width: 180px;
        height: 180px;
    }

    .circle .member-container {
        width: 40px;
        height: 40px;
        margin-left: -20px;
        margin-top: -20px;
    }

    .circle .member-container:nth-child(1) {
        transform: translate(84px, 0);
    }

    .circle .member-container:nth-child(2) {
        transform: translate(42px, 72.6px);
    }

    .circle .member-container:nth-child(3) {
        transform: translate(-42px, 72.6px);
    }

    .circle .member-container:nth-child(4) {
        transform: translate(-84px, 0);
    }

    .circle .member-container:nth-child(5) {
        transform: translate(-42px, -72.6px);
    }

    .circle .member-container:nth-child(6) {
        transform: translate(42px, -72.6px);
    }

    .engranaje-central {
        width: 225px;
        height: 225px;
    }

    .info-panel {
        padding: 12px;
    }

    .info-panel h2 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .info-panel p {
        font-size: 0.95em;
    }
}

/* ==========================================================================
   STORY SECTION (Rhythm Citadel)
   ========================================================================== */

body.rhythm-citadel-page #story h1 {
    margin-top: 60px !important;
    /* o el valor que prefieras */
    margin-bottom: 40px !important;
}

.container .row.white {
    padding: 60px 0;
}

.container .row.white h1.centered {
    margin-bottom: 40px;
}

body.rhythm-citadel-page #story .row.white {
    background: transparent !important;
    backdrop-filter: none !important;
}

#story .col-md-12 {
    margin: 0 auto;
    float: none;
    max-width: 750px;
    display: block;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

#story p {
    text-align: justify;
    text-justify: inter-word;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.3em;
    font-weight: 200;
    color: white !important;
    width: 100%;
    box-sizing: border-box;
}

/* STORY SECTION - RESPONSIVE */
/* Mediano */
@media (min-width: 769px) and (max-width: 991px) {
    #story .col-md-12 {
        max-width: 90%;
        padding-left: 30px;
        padding-right: 30px;
    }

    #story p {
        font-size: 1.2em !important;
    }
}

/* Pequeño */
@media (max-width: 768px) {
    #story .col-md-12 {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        margin: 0;
    }

    #story p {
        font-size: 1.1em !important;
        line-height: 1.7;
        text-align: left;
        hyphens: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 10px;
    }

    .container .row.white {
        padding: 40px 0 !important;
    }

    .container .row.white h1.centered {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 1.8em !important;
    }
}

/* Muy pequeño */
@media (max-width: 480px) {
    #story .col-md-12 {
        padding-left: 15px;
        padding-right: 15px;
    }

    #story p {
        font-size: 1em !important;
        line-height: 1.6;
        padding: 0 5px;
        text-align: left;
    }

    .container .row.white {
        padding: 30px 0 !important;
    }

    .container .row.white h1.centered {
        font-size: 1.6em !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ==========================================================================
   STATS SECTION (Rhythm Citadel)
   ========================================================================== */

.stats-divider {
    padding: 80px 0;
    background: transparent;
    text-align: center;
}

.stats-divider .counter {
    display: block;
    font-size: 3em;
    font-weight: bold;
    color: #FFBF00;
    margin-bottom: 10px;
}

.stats-divider .counter-desc {
    font-size: 1.1em;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   ENEMIES & TOWERS SECTIONS (Rhythm Citadel)
   ========================================================================== */

.enemy-section,
.tower-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2px !important;
    padding-bottom: 2px !important;
    /* REDUCIDO de 50px */
}

.enemy-section:last-child,
.tower-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.enemy-content,
.tower-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.enemy-content.reverse,
.tower-content.reverse {
    flex-direction: row-reverse;
    justify-content: flex-start;
    margin-bottom: auto !important;
    padding-bottom: auto !important;
}

.enemy-image,
.tower-image {
    flex: 0 0 150px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.enemy-image img,
.tower-image img {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    object-fit: contain;
    cursor: pointer;
}

.enemy-text,
.tower-text {
    flex: 1;
    text-align: left;
}

.enemy-text p,
.tower-text p {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff !important;
    font-size: 1.3em;
    font-weight: 200;
}

.enemy-section {
    margin-bottom: 1px;
    padding-bottom: 1px;
}

.container .row.white {
    padding: 10px 0;
}

body.rhythm-citadel-page #towers .row.white,
body.rhythm-citadel-page #towers+.container .row.white {
    background: transparent !important;
    backdrop-filter: none !important;
}

body.rhythm-citadel-page section.clean-section-divider#towers p.fade-up {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}

.enemy-text h4 {
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.enemy-text p {
    color: white;
    font-size: 1.3em;
    font-weight: 200;
    line-height: 1.6;
    margin-bottom: 10px;
}

.enemy-img,
.tower-img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

/* ENEMIES - RESPONSIVE */
@media (max-width: 768px) {

    .enemy-content,
    .enemy-content.reverse {
        flex-direction: column;
        text-align: center;
        gap: 10px !important;
        margin: 0 auto;
        padding: 0 10px;
    }

    .enemy-image {
        order: 2;
        margin-top: 10px !important;
        margin-bottom: 5px !important;
    }

    .enemy-text {
        order: 1;
        text-align: center;
        margin-bottom: 5px !important;
    }

    .enemy-image img {
        width: 180px;
        height: 180px;
        margin: 0 auto 5px auto;
    }

    .enemy-text h4 {
        font-size: 1.4em;
        text-align: center;
        margin-bottom: 8px !important;
        line-height: 1.2;
    }

    .enemy-text p {
        font-size: 1.05em;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 8px !important;
        line-height: 1.5;
    }

    .enemy-section {
        margin-bottom: 25px !important;
        padding: 15px 10px !important;
    }

    .tower-content,
    .tower-content.reverse {
        flex-direction: column !important;
        text-align: center;
    }

    .tower-content.reverse {
        flex-direction: column !important;
    }

    .tower-image {
        margin-bottom: 20px;
        order: 2;
    }

    .tower-text {
        order: 1;
        text-align: center;
    }

    .tower-image img,
    .enemy-image img {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .enemy-img,
    .tower-img {
        max-width: 150px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .enemy-image img {
        width: 150px;
        height: 150px;
    }

    .enemy-content,
    .enemy-content.reverse {
        gap: 8px !important;
        padding: 0 5px;
    }

    .enemy-text h4 {
        font-size: 1.3em !important;
        margin-bottom: 6px !important;
    }

    .enemy-text p {
        font-size: 1em !important;
        line-height: 1.4 !important;
        margin-bottom: 6px !important;
    }

    .enemy-image {
        margin-top: 8px !important;
    }

    .enemy-section {
        margin-bottom: 20px !important;
        padding: 10px 5px !important;
    }
}

/* ==========================================================================
   GAME MECHANICS SECTION (Rhythm Citadel)
   ========================================================================== */

.clean-section-divider h1 {
    margin-bottom: 0px !important;
    font-weight: 300;
    font-size: 2.5em;
}

.clean-section-divider p {
    font-size: 1.2em;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

.callout {
    margin-bottom: 40px;
}

.service-info h2 {
    margin-top: 0;
    border-bottom: 4px solid #D4AF37;
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-size: 22px;
    text-transform: uppercase;
}

.service-info ul {
    padding-left: 20px;
}

.service-info li {
    margin-bottom: 8px;
    line-height: 1.6;
}

body.rhythm-citadel-page .greywrap {
    color: white !important;
}

body.rhythm-citadel-page section.clean-section-divider#mechanics p.fade-up {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}

.service-info {
    padding: 20px;
    margin-bottom: 25px;
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    border-left: 4px solid #FFD700;
}

.service-info h2 {
    color: #FFD700;
    font-size: 1.6em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFD700;
}

.service-info ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.service-info li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: white;
}

.service-info p {
    color: white;
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-info h2 {
    border-bottom: 3px solid #FFD700;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.service-info p,
.service-info li {
    font-size: 1.1em;
    line-height: 1.6;
}

body.rhythm-citadel-page .service-info h2,
body.rhythm-citadel-page .enemy-section h4 {
    color: #FFD700 !important;
}

body.rhythm-citadel-page .service-info p,
body.rhythm-citadel-page .service-info li,
body.rhythm-citadel-page .enemy-section p {
    color: white !important;
}

body.rhythm-citadel-page .service-info strong,
body.rhythm-citadel-page .enemy-section strong {
    color: #FFD700 !important;
}

body.rhythm-citadel-page #mechanics .clean-section-divider p,
body.rhythm-citadel-page #towers .clean-section-divider p {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
    font-size: 1.2em !important;
}

body.rhythm-citadel-page .enemy-section {
    background: transparent !important;
    padding: 10px 0 !important;
    border: none !important;
}

body.rhythm-citadel-page .service-info {
    background: transparent !important;
    border-left: none !important;
    padding: 10px 0 !important;
}

/* GAME MECHANICS - RESPONSIVE */
@media (max-width: 768px) {

    body.rhythm-citadel-page #mechanics .clean-section-divider p,
    body.rhythm-citadel-page #towers .clean-section-divider p {
        font-size: 1em !important;
    }

    .callout {
        margin-left: 0 !important;
        margin-bottom: 30px;
        width: 100%;
    }

    .service-info {
        text-align: center;
        padding: 15px;
        border-bottom: 2px solid #FFD700;
        margin-bottom: 20px;
    }

    .service-info h2 {
        font-size: 1.4em;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom-width: 2px;
    }

    .service-info p,
    .service-info li {
        font-size: 1em;
        line-height: 1.5;
    }

    .service-info ul {
        padding-left: 0;
        list-style-position: inside;
    }

    .service-info {
        padding: 15px;
        margin-bottom: 20px;
    }

    .service-info h2 {
        font-size: 1.4em;
        padding-bottom: 8px;
        border-bottom-width: 2px;
    }

    .service-info p,
    .service-info li {
        font-size: 1em;
    }

    .col-sm-12 {
        margin-bottom: 15px;
    }

    .col-md-4.col-md-offset-1 {
        width: 100%;
        margin-left: 0;
        float: none;
    }
}

/* ==========================================================================
   PLAY SECTION (Rhythm Citadel)
   ========================================================================== */

.btn-Back {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFD700;
    color: rgb(0, 0, 0);
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    z-index: 1;
}

.btn-Back:hover {
    background-color: rgba(0, 0, 0, 0.7);
    color: #FFD700;
}

.clean-section-divider {
    padding: 90px 0;
    text-align: center;
    background: transparent;
    position: relative;
}

.clean-section-divider.accent {
    background: #800020;
    color: #FFD700;
    border: 2px solid #D4AF37;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#footerwrap {
    background: #202020;
    margin-top: 0px;
    padding-top: 40px;
    padding-bottom: 40px;
    border-bottom: none;
    text-align: center;
}

#footerwrap h1 {
    color: aliceblue;
    margin-bottom: 30px;
}

#footer-social {
    padding: 0;
    margin: 0 0 30px 0;
    color: aliceblue;
    list-style: none;
}

#footer-social a {
    color: aliceblue;
    text-decoration: none;
}

#footer-social a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   BOTONES Y ELEMENTOS INTERACTIVOS
   ========================================================================== */

.btn-success {
    color: #2980b9;
    background-color: transparent;
    border-color: #2980b9;
    font-weight: 700;
    border-width: 3px;
    border-radius: 10px;
    padding: 8px 16px;
    text-transform: uppercase;
}

.btn-success:hover {
    background-color: #2980b9;
    border-color: #0099ff;
    color: white;
}

.homebtn {
    border: 3px solid #FFD700;
    color: #FFD700;
    border-radius: 0;
    padding: 15px 20px;
    font-size: 22px;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.homebtn:hover {
    border: 3px solid #FFD700;
    background-color: #FFD700;
    color: #222;
    text-decoration: none;
}

.homeicon {
    font-size: 20px;
    margin-left: 8px;
    position: relative;
    top: -3px;
}

/* ==========================================================================
   ANIMACIONES Y TRANSICIONES
   ========================================================================== */

body.loaded #headerwrap,
body.loaded .greywrap,
body.loaded .progress-section,
body.loaded .equipo-container,
body.loaded #footerwrap {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-display {
    opacity: 0;
}

.appear {
    opacity: 1;
    -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

/* ==========================================================================
   IMAGEN DE FONDO RHYTHM CITADEL
   ========================================================================== */

body.rhythm-citadel-page {
    background-image: url('../images/bgMarco.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-color: #1a1a1a !important;
}

body.rhythm-citadel-page .white {
    background: transparent !important;
}

body.rhythm-citadel-page .greywrap {
    background: transparent !important;
}

body.rhythm-citadel-page #headerwrap,
body.rhythm-citadel-page #headerwrap2 {
    background: linear-gradient(rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9)) !important;
}

/* ==========================================================================
   CUSTOM DIVIDER
   ========================================================================== */

.custom-divider {
    width: 100%;
    height: 50px;
    background-image: url('../images/Borde.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    margin: 40px 0;
    border: none;
}

.callout {
    margin-left: 120px;
}

/* ==========================================================================
   MEDIA QUERIES GLOBALES
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .col-md-10.col-md-offset-1,
    .col-lg-10.col-lg-offset-1 {
        padding-left: 0;
        padding-right: 0;
    }

    .spinner {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }

    .preloader-content p {
        font-size: 16px;
    }

    .progress-container {
        width: 150px;
    }

    .navbar-brand span {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }

    .preloader-content p {
        font-size: 14px;
    }
}