/* ===== RESET BÁSICO Y TIPOGRAFÍA ===== */

html,
body {
    font-family: 'Open Sans', sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    color: #E4D9FF;
    background-color: #050816;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5 {
    margin: 0 0 20px 0;
    font-weight: 400;
    color: #E6E0FF;
}

h2 {
    font-size: 36px;
}

h3, h4 {
    font-size: 18px;
    letter-spacing: 1px;
}

h5 {
    text-transform: uppercase;
    font-weight: 700;
    line-height: 20px;
    color: #F472B6;
}

p {
    margin: 0 0 16px 0;
    line-height: 1.6;
}

a {
    color: #E9D5FF;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #F472B6;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

hr {
    height: 2px;
    width: 90px;
    background: rgba(255, 255, 255, 0.15);
    border: 0;
    margin: 0 auto 30px auto;
}

/* ===== NAVBAR ===== */

#menu {
    padding: 20px;
    transition: all 0.4s ease;
}

#menu.navbar-default {
    background-color: rgba(5, 8, 22, 0.85);
    border: none;
}

#menu.navbar-default .navbar-nav > li > a {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(226, 232, 240, 0.75);
}

#menu.navbar-default .navbar-nav > li > a:hover {
    color: #F472B6;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #C4B5FD;
    background-color: transparent;
}

.navbar-toggle {
    border-radius: 0;
    border-color: #4C1D95;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #E5E7EB;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: #4C1D95;
    border-color: #4C1D95;
}

/* estado navbar al hacer scroll (clase 'on') */
.on {
    background-color: #050816 !important;
    padding: 0 !important;
}

/* ===== HEADER ===== */

#header {
    height: 80px;
    background: linear-gradient(135deg, #3E295C 0%, #1B0F3B 50%, #050816 100%);
}

/* ===== SECCIÓN ABOUT ===== */

#about {
    padding: 120px 0;
    background: linear-gradient(to bottom, #050816 0%, #111827 40%, #050816 100%);
    color: #E5E7EB;
}

#about .section-title h2 {
    color: #E9D5FF;
}

#about .about-text p {
    margin-bottom: 18px;
}

#about img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

/* ===== BOTONES ===== */

.btn {
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 0;
    padding: 12px 22px;
    transition: all 0.25s ease;
}

.btn-default {
    color: #E5E7EB;
    background-color: #111827;
    border: none;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active {
    color: #F9FAFB;
    background-color: #6D28D9;
    outline: none;
    box-shadow: none;
}

/* ===== PORTFOLIO (ORIGINAL, SÓLO CAMBIO DE COLORES) ===== */

#portfolio {
    padding: 120px 0;
    background: linear-gradient(to bottom, #1F1029 0%, #050816 60%, #020617 100%);
}

#portfolio h2 {
    color: #C4B5FD;
}

.categories {
    padding-bottom: 30px;
    text-align: center;
}

ul.cat li {
    display: inline-block;
}

ol.type li {
    display: inline-block;
    margin-left: 20px;
}

ol.type li a {
    background: #111827;
    color: #C4B5FD;
    padding: 12px 24px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

ol.type li a.active {
    background: #7C3AED;
    color: #F9FAFB;
}

ol.type li a:hover {
    background: #6D28D9;
    color: #F9FAFB;
}

/* Isotope igual a tu CSS original */

.isotope-item {
    z-index: 2;
}
.isotope-hidden.isotope-item {
    z-index: 1;
}

.isotope,
.isotope .isotope-item {
    -webkit-transition-duration: 0.8s;
    -moz-transition-duration: 0.8s;
    transition-duration: 0.8s;
}

.isotope-item {
    margin-right: -1px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.isotope {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition-property: height, width;
    -moz-transition-property: height, width;
    transition-property: height, width;
}

.isotope .isotope-item {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition-property: -webkit-transform, opacity;
    -moz-transition-property: -moz-transform, opacity;
    transition-property: transform, opacity;
}

.portfolio-item {
    margin: 15px 0;
    -webkit-transition: all 0.5s ease-out;
    -moz-transition: all 0.5s ease-out;
    -ms-transition: all 0.5s ease-out;
    -o-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
}

.portfolio-item:hover {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
}

.portfolio-item .hover-bg {
    height: 195px;
    overflow: hidden;
    position: relative;
}

.hover-bg .hover-text {
    position: absolute;
    text-align: center;
    margin: 0 auto;
    color: #F9FAFB;
    background: rgba(15, 23, 42, 0.8);
    padding: 30% 0 0 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: all 0.5s;
}

.hover-bg .hover-text > h4 {
    text-transform: uppercase;
    opacity: 0;
    color: #F9FAFB;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
    transition: all 0.3s;
}

.hover-bg:hover .hover-text > h4 {
    opacity: 1;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.hover-bg .hover-text > i {
    opacity: 0;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    transition: all 0.3s;
}

.hover-bg:hover .hover-text > i {
    opacity: 1;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
}

.hover-bg:hover .hover-text {
    opacity: 1;
}

#portfolio i.fa {
    font-size: 20px;
    padding: 5px;
    color: #F472B6;
}

/* ===== FOOTER ===== */

#footer {
    background: #020617;
    color: rgba(226, 232, 240, 0.6);
    padding: 30px 0 25px 0;
}

#footer p {
    font-size: 13px;
    margin: 0;
}

#footer a {
    color: rgba(196, 181, 253, 0.9);
}

#footer a:hover {
    color: #F472B6;
}

/* ===== BOTÓN FLOTANTE DISCORD ===== */

.discord-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(88, 101, 242, 0.8); /* #5865F2 */
    color: #E5E7EB;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    transition: all 0.25s ease;
}

.discord-float i {
    font-size: 22px;
    color: #5865F2;
}

.discord-float .discord-label {
    white-space: nowrap;
}

.discord-float:hover {
    background: #5865F2;
    color: #F9FAFB;
    border-color: #A5B4FC;
    transform: translateY(-2px);
}

.discord-float:hover i {
    color: #F9FAFB;
}

/* Responsive: en móviles mostrar sólo el icono */
@media (max-width: 480px) {
    .discord-float {
        padding: 10px;
    }
    .discord-float .discord-label {
        display: none;
    }
}

/* ===== RESPONSIVE EXTRA ===== */

@media (max-width: 1024px) {
    #about img {
        float: left;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    #menu {
        padding: 10px 0;
    }

    #header {
        height: 60px;
    }
}
