@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color: #fafafa;
}

body {
    background-repeat: no-repeat;
    background: linear-gradient(180deg, #012e40 10%, #011c26 50%, #00080d 100%);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.background-layers {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}
    
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 164px 164px;
    width: 100%;
    height: 100%;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

header {
    padding: 20px 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

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

.logo i {
    font-size: 24px;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.desktop-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

.desktop-menu li {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-menu li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 0.5rem 0.8rem;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.desktop-menu li a:hover {
    opacity: 0.5;
}

.desktop-menu li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(20, 20, 40, 0.9);
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    min-width: 160px;
    z-index: 100;
}

.desktop-menu li.has-submenu:hover .submenu {
    display: block;
}

.desktop-menu li .submenu li {
    display: block;
    width: 100%;
}

.desktop-menu li .submenu li a {
    padding: 0.5rem 1rem;
    color: white;
    white-space: nowrap;
}

.desktop-menu li .submenu li a:hover {
    opacity: 0.5;
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #011c26;
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 20px 20px;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay .logo {
    position: absolute;
    top: 24px;
    left: 20px;
    z-index: 1001;
}

.mobile-menu-overlay.active .logo {
    opacity: 1;
}

.mobile-menu-overlay.active .logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.mobile-menu-overlay .logo i {
    font-size: 24px;
}

.mobile-menu-overlay .logo h1 {
    font-size: 24px;
}

.mobile-menu-content {
    margin: 0 auto;
}

.mobile-menu-section,
.mobile-menu-single {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active .mobile-menu-section,
.mobile-menu-overlay.active .mobile-menu-single {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-menu-section:nth-child(1),
.mobile-menu-overlay.active .mobile-menu-single:nth-child(1) {
    transition-delay: 0.05s;
}
.mobile-menu-overlay.active .mobile-menu-section:nth-child(2),
.mobile-menu-overlay.active .mobile-menu-single:nth-child(2) {
    transition-delay: 0.06s;
}
.mobile-menu-overlay.active .mobile-menu-section:nth-child(3),
.mobile-menu-overlay.active .mobile-menu-single:nth-child(3) {
    transition-delay: 0.07s;
}
.mobile-menu-overlay.active .mobile-menu-section:nth-child(4),
.mobile-menu-overlay.active .mobile-menu-single:nth-child(4) {
    transition-delay: 0.08s;
}

.mobile-menu-section h3 {
    color: white;
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: normal;
}

.mobile-menu-section h3 i {
    transition: transform 0.3s ease;
    padding: 10px;
}

.mobile-menu-section.expanded h3 i {
    transform: rotate(180deg);
}

.mobile-menu-items {
    display: none;
    padding-top: 10px;
    list-style: none;
}

.mobile-menu-section.expanded .mobile-menu-items {
    display: block;
}

.mobile-menu-items a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 12px 0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-menu-items a:hover,
.mobile-menu-section h3:hover {
    color: white;
    padding-left: 5px;
    opacity: 0.5;
}

.mobile-menu-single a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-single a:hover {
    padding-left: 5px;
    opacity: 0.5;
}

.profile {
    width: 160px;
    height: auto;
    display: block;
    background: transparent;
    color: #fff;
    border: 1px solid #ffffff61;
    border-radius: 15px;
    box-shadow: 0px 0px 7px #a5a8b496;
    padding: 10px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
}

.profile::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.6s;
}

.profile:hover {
    border: 1px solid #ffffff;
    box-shadow: 0px 0px 10px #a5a8b4cc;
}

.profile:hover::before {
    left: 100%;
}

.profile:active {
    transform: translateY(1px);
    box-shadow: 0px 0px 5px #a5a8b496;
}

.mobile-profile {
    margin-top: 40px;
    text-align: center;
}

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

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
}

.ds {
    margin: 85px auto 30px;
    color: #fafafa;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.ds h2 {
    font-size: 64px;
    font-weight: 800;
    font-style: italic;
    margin: 0 0 -20px 0;
}

.ds p {
    font-size: 24px;
    margin: 20px 0;
    color: #B5B7BA;
}

.write {
    display: flex;
    align-items: center;
    margin: 12rem 0 0 0;
    color: #B5B7BA;
    background: transparent;
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.write input {
    background: transparent;
    color: #B5B7BA;
    border: 1px solid #B5B7BA;
    border-radius: 70px;
    width: 100%;
    font-size: 30px;
    padding: 10px 20px; 
    outline: none;
}

.write .send {
    position: absolute;
    right: 110px;
    background: transparent;
    border: none;
    color: #B5B7BA;
    font-size: 30px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.write .send:hover {
    transform: rotate(50deg);
}

.write .down-arrow {
    width: 65px;
    height: 65px;
    font-size: 30px;
    font-weight: 300;
    background: transparent;
    border: 1px solid #B5B7BA;
    color: #B5B7BA;
    border-radius: 100%;
    cursor: pointer;
    box-shadow: 0px 0px 7px #a5a8b496;
    animation: bounceArrow 1s infinite ease-in-out;
    flex-shrink: 0;
}

.down-arrow:hover {
    animation: none;
    border: 1px solid #fff;
}

.down-arrow:hover i {
    color: #fff;
}

.write i {
    color: #B5B7BA;
    background: transparent;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.more-d {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 80px auto;
    color: #fff;
}

.faq-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
    text-transform: uppercase;
    color: #fff;
    text-align: left;
}

.faq-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);    
    gap: 25px;
    margin-bottom: 50px;
}

.faq-card, .faq-card-small {
    border-radius: 15px;
    padding: 30px;
    position: relative;
    border: 1px solid rgb(181, 183, 186);
    box-shadow: 0 4px 20px rgba(181, 183, 186, 0.1);
    margin: 0;
}

.faq-card {
    grid-column: span 3;
}

.faq-card-small {
    grid-column: span 2;
}

.faq-question {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: left;
    color: #fff;
    line-height: 1.4;
}

.faq-card-small .faq-question {
    font-size: 16px;
}

.faq-admin {
    position: absolute;
    top: 80px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
}

.faq-card-small .faq-admin {
    top: 70px;
    right: 20px;
    font-size: 12px;
}

.faq-admin i {
    font-size: 16px;
    margin-left: 5px;
}

.faq-card-small .faq-admin i {
    font-size: 14px;
}

.faq-answer {
    font-size: 14px;
    line-height: 1.6;
    color: #B5B7BA;
    text-align: right;
    margin-bottom: 15px;
    padding-left: 20%;
}

.faq-card-small .faq-answer {
    font-size: 13px;
    padding-left: 10%;
}

.faq-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.faq-card-small .user-avatar {
    width: 30px;
    height: 30px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.faq-card-small .user-name {
    font-size: 12px;
}

.comentario-actions {
    margin-top: 8px;
    display: flex;
    gap: 10px;
}

.btn-editar {
  background: #011c26;
  background-color: #073f56;
  border: none;
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-editar:hover {
  background-color: #0056b3;
}

.btn-eliminar {
  background-color: #dc3545;
  border: none;
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-eliminar:hover {
  background-color: #a71d2a;
}

.faq-like {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 24px;
    cursor: pointer;
}

.faq-card-small .faq-like {
    bottom: 25px;
    right: 20px;
    font-size: 20px;
}

.faq-like i {
    color: #B5B7BA;
    transition: all 0.3s;
}

.faq-like i:hover {
    color: #fff;
    transform: scale(1.2);
}

.faq-like i.filled{
    color: red;
}

.contact-section {
    text-align: center;
    width: 100%;
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid #B5B7BA;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.144);
    margin-bottom: 60px;
}

.contact-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
}

.contact-btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.144);
    background-color: transparent;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-btn:hover {
    scale: 1.05;
}

.foooter {
    font-style: italic;
    margin-top: 100px;
}

.content-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

.title-footer {
    font-size: 14rem;
    color: #b5b7ba;
    text-align: center;
}

.footer-contact {
    font-size: 20px;
}

.footer-contact p {
    color: #b5b7ba;
    font-size: 20px;
    margin: 10px 0;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 25px;
    text-align: left;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    text-align: start;
}

.footer-contact ul li:first-child {
    text-decoration: underline;
    color: #b5b7ba;
}

.footer-links ul li a, 
.footer-contact ul li a {
    text-decoration: none;
    color: #b5b7ba;
    font-size: 17px;
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
    text-decoration: underline;
    color: #fff;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    color: #615e5e44;
    font-size: 14px;
    position: relative;
    z-index: 10;
}

footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.603);
    text-align: center;
}

@media (max-width: 1100px) {
    .faq-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .faq-card, .faq-card-small {
        grid-column: span 1;
    }
    
    .ds h2 {
        font-size: 56px;
    }
    
    .write {
        max-width: 700px;
    }
}

@media (max-width: 1054px) {
    .title-footer {
        flex-basis: 100%;
    }
}

@media (max-width: 1024px) {
    .title-footer {
        flex-basis: 100%;
    }

    .titulo-servicios {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .profile {
        display: none;
    }

    .mobile-profile > .profile {
        display: block;
        margin: auto;
    }

    nav {
        justify-content: space-between;
    }

    nav ul {
        justify-content: center;
        padding: 10px 0;
    }

    .faq-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-card, .faq-card-small {
        grid-column: span 1;
        padding: 25px;
    }
    
    .faq-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .ds {
        margin: 60px auto 20px;
        padding: 0 15px;
    }
    
    .ds h2 {
        font-size: 48px;
        margin-bottom: 10px;
    }
    
    .ds p {
        font-size: 20px;
    }
    
    .write {
        margin: 8rem 0 0 0;
        padding: 0 15px;
        gap: 15px;
    }
    
    .write input {
        font-size: 24px;
        padding: 15px 20px;
        padding-right: 80px;
    }
    
    .write .send {
        font-size: 24px;
        right: 95px;
    }
    
    .write .down-arrow {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .more-d {
        margin: 60px auto;
        padding: 0 15px;
    }
    
    .faq-admin {
        position: static;
        margin-bottom: 15px;
        justify-content: flex-start;
    }
    
    .faq-card-small .faq-admin {
        position: static;
        margin-bottom: 15px;
    }
    
    .faq-answer {
        text-align: left;
        padding-left: 0;
        margin-bottom: 20px;
    }
    
    .faq-card-small .faq-answer {
        padding-left: 0;
    }
    
    .faq-like {
        position: static;
        margin-top: 15px;
        text-align: left;
    }
    
    .faq-card-small .faq-like {
        position: static;
        margin-top: 15px;
    }
    
    .contact-section {
        padding: 30px 20px;
    }
    
    .contact-title {
        font-size: 20px;
    }
    
    .contact-btn {
        font-size: 16px;
        padding: 10px 25px;
    }
}

@media (max-width: 576px) {    
    nav ul {
        gap: 10px;
    }

    nav ul li a {
        font-size: 16px;
        padding: 0.5rem;
        text-align: center;
    }

    .profile {
        width: 120px;
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .ds {
        margin: 40px auto 15px;
        padding: 0 10px;
    }
    
    .ds h2 {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .ds p {
        font-size: 18px;
        margin: 15px 0;
    }
    
    .write {
        margin: 6rem 0 0 0;
        padding: 0 10px;
        gap: 15px;
    }
    
    .write input {
        font-size: 18px;
        padding: 12px 15px;
        padding-right: 60px;
    }
    
    .write .send {
        font-size: 20px;
        right: 120px;
    }
    
    .write .down-arrow {
        width: 50px;
        height: 50px;
        font-size: 20px;
        align-self: center;
    }
    
    .more-d {
        margin: 40px auto;
        padding: 0 10px;
    }
    
    .faq-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .faq-container {
        gap: 15px;
    }
    
    .faq-card, .faq-card-small {
        padding: 20px;
    }
    
    .faq-question {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .faq-card-small .faq-question {
        font-size: 15px;
    }
    
    .faq-answer {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .faq-card-small .faq-answer {
        font-size: 12px;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
    }
    
    .faq-card-small .user-avatar {
        width: 25px;
        height: 25px;
    }
    
    .user-name {
        font-size: 12px;
    }
    
    .faq-card-small .user-name {
        font-size: 11px;
    }
    
    .faq-like {
        font-size: 20px;
    }
    
    .faq-card-small .faq-like {
        font-size: 18px;
    }
    
    .contact-section {
        padding: 25px 15px;
    }
    
    .contact-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .contact-btn {
        font-size: 14px;
        padding: 8px 20px;
    }
    
    .content-footer {
        gap: 20px;
        margin-bottom: 50px;
    }

    .title-footer {
        font-size: 8.5rem;
    }

    .footer-links h4,
    .footer-contact h4 {
        font-size: 1.4rem;
    }

    .footer-links ul li a,
    .footer-contact p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-links ul {
        padding: 0;
    }

    .title-footer {
        font-size: 6rem;
    }
}

@media (max-width: 400px) {
    .ds h2 {
        font-size: 28px;
    }
    
    .ds p {
        font-size: 16px;
    }
    
    .write input {
        font-size: 16px;
        padding: 10px 12px;
        padding-right: 50px;
    }
    
    .write .send {
        font-size: 18px;
        right: 80px;
    }
    
    .write .down-arrow {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .faq-title {
        font-size: 22px;
    }
    
    .faq-card, .faq-card-small {
        padding: 15px;
    }
    
    .faq-question {
        font-size: 15px;
    }
    
    .faq-card-small .faq-question {
        font-size: 14px;
    }
    
    .contact-title {
        font-size: 16px;
    }
    
    .contact-btn {
        font-size: 13px;
        padding: 6px 15px;
    }
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #011C26 0%, #00080D 100%);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #012E40;
    border-radius: 8px;
    border: 1px solid #00080D;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #01475F;
}

* {
    scrollbar-color: #012E40 #00080D;
}

@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
    }
    
    .write input {
        min-height: 50px;
    }
    
    .write .send {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .write .down-arrow {
        min-width: 55px;
        min-height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 320px) {
    .ds h2 {
        font-size: 24px;
    }
    
    .ds p {
        font-size: 14px;
    }
    
    .write {
        margin: 4rem 0 0 0;
    }
    
    .more-d {
        margin: 30px auto;
    }
    
    .faq-title {
        font-size: 20px;
    }
}