* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    background-color: #27191c;
    color: #e0e4ce;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

header {
    background-color: #114d4d;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    width: 100%;
    max-width: 187px;
    height: auto;
    margin: 0;
}

.main-nav {
    flex: 1;
    margin: 0 2rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #e0e4ce;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #114d4d;
    min-width: 200px;
    border-radius: 5px;
    padding: 0.5rem 0;
    display: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu li {
    list-style: none;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #e0e4ce;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
}

.dropdown-menu a:hover {
    background-color: rgba(255,255,255,0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.language-selector i {
    color: #e0e4ce;
    font-size: 1.2rem;
}

.language-selector select {
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    border: 1px solid #e0e4ce;
    background-color: transparent;
    color: #e0e4ce;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 0.9rem;
}

language-selector select:hover {
    background-color: rgba(110, 153, 135, 0.2);
}

.language-selector select:focus {
    outline: none;
    border-color: #6e9987;
}

.language-selector select option {
    background-color: #114d4d;
    color: #e0e4ce;
}

.language-selector select option:hover,
.language-selector select option:focus,
.language-selector select option:active,
.language-selector select option:checked {
    background-color: #6e9987 !important;
    color: #fff;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login {
    color: #e0e4ce;
    border: 1px solid #e0e4ce;
}

.btn-register {
    background-color: #6e9987;
    color: #fff;
}

.btn:hover {
    opacity: 0.9;
}

main {
    padding-top: 100px;
    min-height: calc(100vh - 80px);
    background-color: #e1e4e2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section {
    padding: 4rem 0;
    margin-top: -2rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 0 2rem;
}

.hero-image {
    flex: 0 0 40%;
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);    
}

.dashboard-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.hero-text {
    flex: 1;
    color: #343434;
    text-align: left;
    padding: 0 1rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    color: #343434;
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 0;
    text-justify: distribute-all-lines;
    font-weight: 500;
}

.secondary-section {
    margin-top: 4rem;
    margin-bottom: 2rem;
    flex-direction: row-reverse; /* Invierte el orden de los elementos */
}

footer {
    background-color: #6e9987;
    padding: 3rem 1rem 1rem;
    width: 100%;
    max-height: 800px;
    overflow-y: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    min-height: 0; /* Para asegurar que el contenido se ajuste */
}

.footer-column h4 {
    color: #e1e4e2c5;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #ffffffc2;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.footer-column ul li a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(224, 228, 206, 0.2);
}

.social-media {
    padding: 2rem 0;
    border-top: 1px solid rgba(224, 228, 206, 0.2);
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icon img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon:hover img {
    opacity: 1;
}

/* Botón menú móvil */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #e0e4ce;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Menú móvil */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #114d4d;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(224, 228, 206, 0.1);
}

.mobile-nav-link {
    color: #e0e4ce;
    text-decoration: none;
    padding: 1rem;
    display: block;
    font-size: 1.1rem;
}

.mobile-submenu {
    display: none;
    background-color: rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.mobile-submenu li a {
    color: #e0e4ce;
    text-decoration: none;
    padding: 0.8rem 2rem;
    display: block;
    font-size: 1rem;
}

.trusted-by {

    padding: 4rem 0;
    text-align: center;
}

.trusted-title {
    color: #343434;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.company-logo {
    width: 100%;
    aspect-ratio: 200/100;
    object-fit: contain;
    filter: brightness(1) invert(0.8);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.company-logo:hover {
    opacity: 1;
}

.features-section {
    margin: 4rem auto;
    text-align: center;
    max-width: 900px;
    padding: 0 1rem;
}

.features-title {
    color: #343434;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: rgba(110, 153, 135, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    color: #6e9987;
    font-size: 2rem;
}

.feature-item span {
    color: #343434;
    font-size: 1rem;
    text-align: center;
}

.testimonials {
    padding: 6rem 0;
    background-color: #f5f5f5;
}

.testimonials-title {
    text-align: center;
    color: #343434;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h3 {
    color: #343434;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.testimonial-info p {
    color: #6e9987;
    font-size: 0.9rem;
}

.testimonial-text {
    color: #343434;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-rating {
    color: #ffd700;
    font-size: 1rem;
}

.btn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #114d4d;
    color: #e0e4ce;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.btn-scroll-top:hover {
    background-color: #6e9987;
    transform: translateY(-3px);
}

.btn-scroll-top.visible {
    display: flex;
}

.newsletter-section {
    background-color: #114d4d;
    padding: 4rem 0;
    margin-top: 4rem;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.newsletter-content h2 {
    color: #e0e4ce;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: #e0e4ce;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form .input-group {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem;
    border: 2px solid #6e9987;
    border-radius: 5px;
    font-size: 1rem;
    background-color: rgba(224, 228, 206, 0.1);
    color: #e0e4ce;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(224, 228, 206, 0.6);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #e0e4ce;
    background-color: rgba(224, 228, 206, 0.2);
}

.btn-subscribe {
    padding: 0 2rem;
    border: none;
    border-radius: 5px;
    background-color: #6e9987;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-subscribe:hover {
    background-color: #5a7d6e;
    transform: translateY(-2px);
}

/* Ajustes responsivos existentes */
@media (max-width: 968px) {
    .hero-content {
        gap: 2rem;
    }

    .hero-image {
        flex: 0 0 45%;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 120px; /* Más espacio para el header en móviles */
    }

    .container {
        padding: 1rem;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons button {
        width: 100%;
    }

    footer {
        max-height: 600px; /* Altura reducida en tablets */
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .input-group {
        flex-direction: column;
    }
    
    #shortUrlResult {
        border-radius: 5px;
    }
    
    .copy-btn {
        margin-top: 0.5rem;
        width: 100%;
        border-radius: 5px;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

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

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
        align-items: center;
    }

    .hero-image {
        max-width: 300px;
        margin: 0 auto;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
        padding: 0 1rem;
    }

    .hero-image {
        margin: 0 1rem;
    }

    .desktop-nav {
        display: none; /* Oculta el menú desktop */
    }

    .mobile-menu-btn {
        display: block; /* Muestra el botón hamburguesa */
    }

    .mobile-nav.active {
        display: block; /* Muestra el menú móvil cuando está activo */
    }

    .mobile-nav-item.active .mobile-submenu {
        display: block; /* Muestra el submenú cuando está activo */
    }

    .secondary-section {
        flex-direction: column; /* En móvil vuelve a column para mejor visualización */
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .features-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .social-icons {
        gap: 1.5rem;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }

    .btn-scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .newsletter-content h2 {
        font-size: 1.5rem;
    }

    .newsletter-content p {
        font-size: 1rem;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .btn-subscribe {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .trusted-by {
        padding: 2rem 0;
    }

    .trusted-title {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .testimonials {
        padding: 4rem 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonials-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    footer {
        max-height: 500px; /* Altura reducida en móviles */
    }

    .hero-section {
        padding: 2rem 0;
    }

    .hero-image {
        max-width: 250px;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 1rem;
    }
}