
:root {
    --blue-dark: #032b52;
    --blue-dark-2: #00264a;

    --blue: #00a5df;
    --blue-light: #20b8ec;

    --cyan: #00c6ff;

    --white: #ffffff;
    --background: #f5f8fb;

    --text: #17324d;
    --text-light: #4e5b68;

    --border: #dce5ec;

    --shadow:
        0 10px 30px rgba(0, 40, 80, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Overpass', sans-serif;
    background: var(--background);
    color: var(--text);
    font-weight: normal;
    font-size: 100%;
    padding-bottom: 55px;
}

header {
    background-color: black;
    height: 65px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.menuNavegacion {
    background-color: black;
    height: 60px;
    padding: 5px 5px;
}

.logoPrincipal {
    position: absolute;
    left: 10px;
}

.checkbox {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    opacity: 0;
}

.cerrar {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    pointer-events: none;
}

.menu {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    pointer-events: none;
}

.cerrar {
    display: none;
}

.checkbox:checked ~ .menu {
    display: none;
}

.checkbox:checked ~ .cerrar {
    display: block;
}

.checkbox:checked ~ .menuItems {
    top: 60px;
}

.menuItems {
    width: 180px;
    position: absolute;
    top: -360px;
    z-index: -1;
    right: 0;
    transition: 250ms;
}

.menuItems li {
    list-style: none;
}

.menuItems li a {
    text-decoration: none;
    background-color: black;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: white;
    font-weight: bold;
    gap: 10px;
}

.menuItems li a img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
}

.menuItems li a:hover {
    background-color: #69b0ee;
    color: black;
}


.inicio-section {
    width: 100%;
    max-width: 1250px;
    margin: auto;
    margin-top: 50px;
    padding: 40px 25px 70px;
}

.inicio-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 35px;
}

.header-line {
    display: block;
    width: 300px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue));
    margin: 0 auto 15px;
    border-radius: 10px;
}

.inicio-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    letter-spacing: -1px;
    color: var(--blue-dark);
}

.inicio-header p {
    margin-top: 15px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 16px;
}

.inicio-banner {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 40, 80, 0.15);
}

.inicio-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 35, 70, 0.30), rgba(0, 170, 230, 0.05));
    pointer-events: none;
}

.inicio-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.servicios-intro {
    text-align: center;
    margin: 50px auto 35px;
}

.intro-line {
    width: 300px;
    height: 3px;
    margin: 0 auto 15px;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue));
}

.servicios-intro h2 {
    color: var(--blue-dark);
    font-size: 27px;
    margin-bottom: 8px;
}

.servicios-intro p {
    color: var(--text-light);
    font-size: 15px;
}


.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px 35px;
}

.servicio-card {
    position: relative;
    background: white;
    min-height: 310px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: visible;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 40, 80, 0.07);
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 40, 80, 0.16);
}

.card-top {
    width: 100%;
    height: 70px;
    border-radius: 9px 9px 0 0;
}

.software {
    background: linear-gradient(135deg, #01022c, #02047a);
}

.soporte {
    background: linear-gradient(135deg, #0072a8, #00a5df);
}

.helpdesk {
    background: linear-gradient(135deg, #b90f0f, #e04444);
}

.ia {
    background: linear-gradient(135deg, #452080, #8c46d8);
}

.marketing {
    background: linear-gradient(135deg, #db920a, #e4ce09);
}

.audiovisual {
    background: linear-gradient(135deg, #111111, #555555);
}

.servicio-icon {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(0, 40, 80, 0.25);
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.servicio-icon:hover {
    transform: translateX(-50%) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 150, 220, 0.40);
}

.servicio-icon:active {
    transform: translateX(-50%) scale(0.96);
}

.servicio-icon img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.card-content {
    padding: 75px 30px 25px;
}

.card-content h3 {
    color: var(--blue-dark);
    font-size: 21px;
    margin-bottom: 12px;
}

.card-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.65;
    min-height: 70px;
    max-width: 480px;
    margin: 0 auto;
}

.card-action {
    border: none;
    background: transparent;
    color: var(--blue);
    font-weight: 700;
    margin-top: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: color 200ms ease;
}

.card-action:hover {
    color: var(--blue-dark);
}

.soporte-btn {
    color: #0084b8;
}

.helpdesk-btn {
    color: #d51d1d;
}

.ia-btn {
    color: #7138b8;
}

.marketing-btn {
    color: #c79700;
}

.audiovisual-btn {
    color: #444444;
}

.inicio-footer {
    text-align: center;
    margin-top: 60px;
}

.footer-line {
    width: 300px;
    height: 2px;
    background: var(--blue);
    margin: 0 auto 20px;
}

.inicio-footer p {
    color: var(--text-light);
    line-height: 1.8;
}

.inicio-footer strong {
    color: var(--blue-dark);
    font-size: 18px;
}


.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 24, 45, 0.72);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
    z-index: 9999;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 20, 50, 0.35);
    transform: translateY(20px) scale(0.95);
    transition: transform 250ms ease;
}

.modal.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    font-size: 30px;
    color: #789;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--blue-dark);
}

.modal-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 80, 130, 0.18);
}

.modal-icon img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.modal-box h2 {
    color: var(--blue-dark);
    margin-bottom: 12px;
}

.modal-box p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-box h3 {
    color: var(--blue-dark);
    font-size: 16px;
    margin: 15px 0 10px;
}

.modal-list {
    text-align: left;
    margin: 0 auto 25px;
    padding-left: 25px;
    max-width: 400px;
}

.modal-list li {
    color: var(--text-light);
    margin-bottom: 7px;
    line-height: 1.5;
}

.modal-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: white;
    text-decoration: none;
    padding: 13px 25px;
    border-radius: 7px;
    font-weight: 700;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 140, 210, 0.30);
}


.copyright {
    font-weight: bold;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

footer {
    left: -1px;
    background-color: black;
    position: fixed;
    bottom: 0;
    width: 100%;
    color: white;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.redes-sociales {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

.redes-sociales a {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.social-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 50%;
}

.Facebook:hover {
    color: #1877f2;
}

.Instagram:hover {
    color: #e1306c;
}

.Youtube:hover {
    color: #ff0000;
}

.Tiktok:hover {
    color: lightgray;
}


/* ==== DESKTOP ==== */
@media (min-width: 1190px) {
    .checkbox,
    .menu,
    .cerrar {
        display: none;
    }

    .menuItems {
        top: 0;
        z-index: 1;
        width: unset;
        display: flex;
    }

    .menuItems li a {
        height: 60px;
        padding: 10px;
        margin-top: 0;
    }
}

/* ==== TABLET ==== */
@media (max-width: 850px) {
    .redes-sociales {
        display: none;
    }
}

@media (max-width: 800px) {
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
}


/* ==== MÓVIL ==== */
@media (max-width: 600px) {
    body {
        padding-bottom: 50px;
    }

    .inicio-section {
        padding: 30px 15px 50px;
    }

    .inicio-banner {
        height: 160px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .servicio-card {
        min-height: 300px;
    }

    .card-content {
        padding: 75px 20px 25px;
    }

    .card-content h3 {
        font-size: 19px;
    }

    .card-content p {
        font-size: 14px;
    }

    .modal-box {
        padding: 30px 20px;
        max-height: 88vh;
    }

    .modal-list {
        padding-left: 20px;
    }
}

/* ==== PANTALLAS MUY PEQUEÑAS ==== */
@media (max-width: 400px) {
    .inicio-header h1 {
        font-size: 29px;
    }

    .header-line,
    .intro-line,
    .footer-line {
        width: 220px;
    }

    .servicio-icon {
        width: 90px;
        height: 90px;
    }

    .servicio-icon img {
        width: 60px;
        height: 60px;
    }
}