:root {
    --primary-color: #256b9d;
    --secondary-color: #59df56;
    --accent-color: #f2c347;
    --text-color: var(--primary-color);
    --bg-light: #f4f4f4;
    --white: #fff;
}

body {
    font-family: 'DM Serif Display', serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    color: #FFFFFF;
    /* Changed to requested white */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 50%;
}

.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: 40px;
}

.nav-list a {
    color: #FFFFFF;
    /* Changed to requested white */
    text-decoration: none;
    font-weight: 500;
    font-size: 1.6rem;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--white);
    margin: 3px 0;
}

/* Carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 500px;
    /* Adjust as needed */
}

.carousel-slide {
    display: flex;
    width: 400%;
    /* 4 slides */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: 25%;
    height: 100%;
    object-fit: cover;
}

#home {
    position: relative;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 10%;
    /* Move to left */
    transform: translateY(-50%);
    /* Adjust transform */
    text-align: left;
    /* Align text left */
    color: #FFFFFF;
    /* Changed to requested white */
    /* background: rgba(0, 0, 0, 0.5); Removed background */
    /* padding: 20px; Removed padding */
    /* border-radius: 10px; Removed border-radius */
    max-width: 500px;
    font-size: 1.8rem;
    /* Increased size (~28px) */
    /* Limit width */
}

.hero-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    margin-top: 130px;
    border-radius: 50%;
    /* Increased spacing to move logo down further */
}

.hero-text p {
    margin: 5px 0;
    /* Reduced margin between lines */
    line-height: 1.2;
    /* Tighter line height */
}

.hero-right {
    position: absolute;
    top: 70%;
    right: 5%;
    transform: translateY(-50%);
    text-align: right;
}

.service-steps-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    white-space: pre-line;
}

.service-steps-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.cta-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #256b9d;
    color: #FFFFFF;
    border: none;
    padding: 15px 25px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50px;
    font-weight: bold;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background-color: #1b4e73;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Sections */
.section {
    padding: 60px 20px;
    text-align: center;
}

.section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    display: inline-block;
    padding: 5px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.section h2:hover {
    color: var(--accent-color) !important;
    border-color: var(--accent-color);
}

#about p,
#services p,
#associates p,
#legal p,
#why-us p {
    font-size: 1.8rem;
}

.bg-light {
    background-color: var(--bg-light);
}

.container {
    max-width: 1100px;
    margin: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--accent-color);
}

.service-card:hover {
    transform: translateY(-5px);
}

.mantenimiento-card,
.soporte-card,
.encargos-card,
.organizacion-card {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.service-card p {
    font-size: 0.65rem;
    line-height: 1.4;
}

.service-card i,
.service-img {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Contact Form */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: left;
    margin-top: 30px;
}

form {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    font-size: 1rem;
}

form button:hover {
    background-color: #1a4f75;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

/* Floating Buttons */
.whatsapp-float,
.phone-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float {
    right: 40px;
}

.phone-float {
    right: 110px;
    background-color: var(--primary-color);
}

.whatsapp-float:hover,
.phone-float:hover {
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Empresa Modal Specific */
.empresa-modal-content {
    max-width: 800px;
    padding: 30px;
}

.modal-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mission-vision-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    text-align: left;
}

.info-box {
    flex: 1;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box p {
    font-size: 0.95rem !important;
    line-height: 1.6;
    margin: 0;
}

/* Steps Page */
.steps-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.step-box {
    flex: 1;
    height: 300px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    box-sizing: border-box;
}

.step-icon {
    font-size: 3.5rem;
    opacity: 0.8;
}

.step-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.step-text {
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.2;
    text-align: center;
    padding: 10px;
    display: inline-block;
}

.step-text-light {
    color: #003366;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.2;
    text-align: center;
    padding: 10px;
    display: inline-block;
}

.box1 {
    background-color: #e0f7ff; /* Very light blue */
}

.box2 {
    background-color: #add8e6; /* Light blue */
}

.box3 {
    background-color: #4682b4; /* Steel blue */
}

.box4 {
    background-color: #000080; /* Navy */
}

.box5 {
    background-color: #000033; /* Dark navy */
}

/* Small steps for main page */
.steps-container-small {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.step-box-small {
    flex: 1;
    height: 50px;
    border-radius: 4px;
}

/* Mobile adjustments for steps */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        gap: 15px;
    }

    .step-box {
        height: 250px;
    }

    .step-image {
        width: 100px;
        height: 70px;
    }

    .steps-container-small {
        flex-direction: column;
        gap: 8px;
    }

    .step-box-small {
        height: 40px;
    }

    .step-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .step-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Services Modal Specific */
.services-modal-content {
    max-width: 900px;
    padding: 30px;
}

.services-details {
    text-align: left;
    margin-top: 20px;
    padding: 0 20px;
}

.main-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
}

.main-services-list > li {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.modal-service-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.main-services-list > li > strong {
    display: block;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

.main-services-list ul {
    list-style-type: disc;
    padding-left: 20px;
}

.main-services-list ul li {
    margin-bottom: 1px;
    font-size: 1.1rem;
}

/* Responsive */
/* Responsive */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
    }

    #about p,
    #services p,
    #associates p {
        font-size: 1.5rem;
    }

    .section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-color);
        position: absolute;
        top: 60px;
        left: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        margin: 0;
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-toggle {
        display: flex;
        cursor: pointer;
    }

    #home {
        height: auto;
    }

    .carousel-container {
        height: 350px;
    }

    .hero-text {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        padding: 40px 20px;
        max-width: 100%;
        text-align: center;
        background-color: var(--primary-color);
    }

    .hero-logo {
        margin-top: 0;
        max-width: 180px;
    }

    .hero-text p {
        font-size: 1.4rem;
    }

    .hero-right {
        top: 35%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .section {
        padding: 40px 15px;
    }

    #about p,
    #services p,
    #associates p {
        font-size: 1.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info,
    form {
        min-width: 100%;
        padding: 15px;
    }

    .whatsapp-float,
    .phone-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
    }

    .whatsapp-float {
        right: 20px;
    }

    .phone-float {
        right: 80px;
    }

    .cta-button {
        bottom: 20px;
        left: 20px;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section h2 {
        font-size: 1.8rem;
    }

    .carousel-container {
        height: 200px;
    }

    .hero-logo {
        max-width: 150px;
    }

    .modal-content {
        width: 90%;
        margin: 30% auto;
    }
}