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

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .7rem 5%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
}

.contact-btn {
    background-color: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Solutions Dropdown */
.solutions-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dropdown-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.solutions-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100%);
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    min-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.solutions-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.solutions-dropdown:hover .dropdown-menu::before {
    opacity: 1;
}

.dropdown-content {
    padding: 1rem;
}

.solution-item-dropdown {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5rem;
    z-index: 1;
}

.solution-item-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.solution-item-dropdown:hover::before {
    left: 100%;
}

.solution-item-dropdown:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.solution-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.solution-item-dropdown:hover .solution-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.3);
}

.solution-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.solution-info {
    flex: 1;
}

.solution-info h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.solution-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Animación de entrada para los items del dropdown */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.solutions-dropdown:hover .solution-item-dropdown:nth-child(1) {
    animation: slideInDown 0.3s ease forwards;
}

.solutions-dropdown:hover .solution-item-dropdown:nth-child(2) {
    animation: slideInDown 0.3s ease 0.1s forwards;
}

.main-content {
    padding: 2rem 5%;
    margin-top: -2rem;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

.service-card {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-card p {
    color: #7f8c8d;
    margin-bottom: .5rem;
}

.contact-button {
    background-color: #3498db;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: #2980b9;
}

.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
                url('../images/landing.png') center/cover;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 70ch;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.primary-button, .secondary-button {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-button {
    background-color: #3498db;
    color: white;
}

.primary-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.secondary-button {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-button:hover {
    background-color: white;
    color: #2c3e50;
    transform: translateY(-2px);
}

.footer {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 0 0 0;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: #ecf0f1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.contact-info i {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    margin-top: 4rem;
    background-color: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    color: #ecf0f1;
    font-size: 0.9rem;
}

/* Responsive design para el footer */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Sección de Soluciones */
.solutions {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

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

.solutions-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.solutions-subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.solution-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.solution-item.active {
    border: 2px solid #3498db;
}

.solution-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-item h3 {
    padding: 1rem;
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.solution-item p {
    padding: 0 1rem 1rem;
    color: #7f8c8d;
    margin: 0;
}

.solution-details {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.solution-detail {
    display: none;
}

.solution-detail.active {
    display: block;
}

.solution-detail h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.detail-text ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 2rem;
}

.detail-text li {
    padding: 0.5rem 0;
    color: #2c3e50;
    position: relative;
    padding-left: 1.5rem;
}

.detail-text li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.detail-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.detail-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.detail-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Responsive design para soluciones */
@media (max-width: 768px) {
    .detail-content {
        grid-template-columns: 1fr;
    }
    
    .detail-image {
        order: -1;
    }
    
    /* Responsive dropdown */
    .navbar {
        flex-wrap: wrap;
    }
    
    .dropdown-menu {
        min-width: 320px;
        right: auto;
        left: 0;
    }
    
    .solution-item-dropdown {
        padding: 1rem;
    }
    
    .solution-icon {
        width: 50px;
        height: 50px;
    }
    
    .solution-icon img {
        width: 40px;
        height: 40px;
    }
    
    .solution-info h4 {
        font-size: 1rem;
    }
    
    .solution-info p {
        font-size: 0.8rem;
    }
}

.a-none-decoration {
    text-decoration: none;
}

.services {
    margin-bottom: 2rem;
}

.services-title {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    padding-bottom: 1.5rem;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.services-title-highlight {
    display: block;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-title-sub {
    display: block;
    color: #7f8c8d;
    font-size: 1.2rem;
    font-weight: normal;
}

/* Animación en hover */
.services-title:hover::after {
    width: 120px;
    transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .services-title-highlight {
        font-size: 2rem;
    }
    
    .services-title-sub {
        font-size: 1rem;
    }
}

/* Agregar estados de foco visibles */
.contact-button:focus,
.nav-links a:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Mejorar la accesibilidad en dispositivos móviles */
@media (max-width: 768px) {
    .nav-links a,
    .contact-button {
        padding: 0.8rem;
        min-height: 44px;
    }
}

/* Agregar media queries para responsividad */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-left: 1rem;
        margin-right: 1rem;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card img {
        width: 80px;
        height: 80px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        margin-left: 1rem;
        margin-right: 1rem;
        gap: 1rem;
    }

    .service-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .service-card img {
        width: 70px;
        height: 70px;
    }

    .services-title-highlight {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }

    .services-title-sub {
        font-size: 1rem;
    }

    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .contact-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .service-card {
        padding: 1rem;
    }

    .service-card img {
        width: 60px;
        height: 60px;
    }

    .services-title-highlight {
        font-size: 1.5rem;
    }

    .services-title-sub {
        font-size: 0.9rem;
    }
}