* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6c1a6c, #067bf0, #34dbb4);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1250px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}

.info-section {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: url('https://gestiondeflotas.cl/img/gestionflota.png');
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 42, 108, 0.100);
    z-index: 1;
}

.message {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.message h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.message h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
    /* ensure white text */
    /* stronger shadow so the heading stands out over busy backgrounds */
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.85);
    /* subtle highlight behind the text to improve contrast */
    background: rgba(0, 0, 0, 0.25);
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
}

.message p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.95;
    /* softer shadow and slight background for paragraph readability */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
    background: rgba(0, 0, 0, 0.25);
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
}

.gears-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.gear {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.gear-large {
    font-size: 80px;
    animation: rotate 8s linear infinite;
}

.gear-medium {
    font-size: 60px;
    animation: rotate-reverse 6s linear infinite;
    top: 60%;
    left: 30%;
}

.gear-small {
    font-size: 40px;
    animation: rotate 4s linear infinite;
    top: 30%;
    right: 25%;
}

.wrench {
    position: absolute;
    font-size: 50px;
    color: #ffcc00;
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.7));
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    animation: wrench-pulse 2s ease-in-out infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes wrench-pulse {
    0% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }
}

.cards-section {
    display: flex;
    flex-direction: column;
    /* stack cards vertically */
    gap: 20px;
    margin-top: 30px;
    align-items: center;
    /* center cards horizontally in the container */
}

.card {
    width: 100%;
    max-width: 720px;
    /* keep cards a comfortable readable width */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
}

.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    /* small gap from card content */
    align-self: center;
    /* center button horizontally inside stacked card */
}

.link-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.link-button i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.contact-item i {
    width: 30px;
    font-size: 1.2rem;
    margin-right: 10px;
    text-align: center;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #3498db;
}

.contact-info {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info p {
    margin-bottom: 10px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .message h2 {
        font-size: 1.5rem;
    }

    .main-content {
        flex-direction: column;
    }

    .cards-section {
        flex-direction: column;
    }

    .gear-large {
        font-size: 60px;
    }

    .gear-medium {
        font-size: 45px;
    }

    .gear-small {
        font-size: 30px;
    }

    .wrench {
        font-size: 40px;
    }
}