: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%;
}

header{
    background-color: black;
    height: 65px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.menuNavegacion{
    background-color: black;
    height: 60;
    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: 0px;
    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;
}

.contact-section {
    width: 100%;
    max-width: 1250px;
    margin: auto;
    margin-top: 50px;
    padding: 40px 25px 70px;
}

.contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 35px;
}

.contact-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    letter-spacing: -1px;
    color: var(--blue-dark);
}

.header-line {
    display: block;
    width: 300px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue));
    margin: 0 auto 15px;
    border-radius: 10px;
}

.contact-header p {
    margin-top: 15px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 16px;
}

.contact-banner {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 40, 80, 0.15);
}

.contact-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;
}

.contact-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.contact-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));
}

.contact-intro h2 {
    color: var(--blue-dark);
    font-size: 27px;
    margin-bottom: 8px;
}

.contact-intro p {
    color: var(--text-light);
    font-size: 15px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.contact-card {
    position: relative;
    background: white;
    min-height: 300px;
    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;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 40, 80, 0.16);
}

.card-top {
    width: 100%;
    height: 65px;
    border-radius: 9px 9px 0 0;
}

.blue {
    background: linear-gradient(135deg, #01022c, #02047a);
}

.yellow {
    background: linear-gradient(135deg, #db920a, #e4ce09);
}

.red {
    background: linear-gradient(135deg, #b90f0f, #c73636);
}

.whatsapp {
    background: linear-gradient(135deg, #0da96b, #20d489);
}

.contact-icon {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    background-color: white;
    /*background: linear-gradient(145deg, #ffffff, #dceeff);*/
    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;
}

.contact-icon:hover {
    transform: translateX(-50%) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 150, 220, 0.40);
}

.contact-icon:active {
    transform: translateX(-50%) scale(0.96);
}

.contact-icon img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.card-content {
    padding: 75px 15px 20px;
}

.card-content h3 {
    color: var(--blue-dark);
    font-size: 18px;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    min-height: 45px;
}

.card-action {
    border: none;
    background: transparent;
    color: var(--blue);
    font-weight: 700;
    margin-top: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: color 200ms ease;
}

.card-action:hover {
    color: var(--blue-dark);
}

.correo-btn {
    color: #e4bb07;
}

.telefono-btn {
    color: #e72626;
}

.telefono-btn:hover {
    color: #7c0808;
}

.whatsapp-btn {
    color: #0ca96b;
}

.whatsapp-btn:hover {
    color: #087c4f;
}

.contact-footer {
    text-align: center;
    margin-top: 55px;
}

.footer-line {
    width: 300px;
    height: 2px;
    background: var(--blue);
    margin: 0 auto 20px;
}

.contact-footer p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-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: 450px;
    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: 10px;
}

.modal-box p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

.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);
}

.email-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.email-option {
    text-decoration: none;
    color: var(--blue-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px 10px;
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.email-option:hover {
    background: #eef9fe;
    border-color: var(--blue);
    transform: translateY(-2px);
}

.email-option strong {
    display: block;
    font-size: 16px;
}

.email-option span {
    display: block;
    color: var(--text-light);
    font-size: 12px;
    margin-top: 4px;
}

.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%;
    object-fit: cover;
}

.Facebook:hover {
    color: #1877f2;
}

.Instagram:hover {
    color: #e1306c;
}

.Youtube:hover {
    color: #ff0000;
}

.Tiktok:hover {
    color: lightgray;
}


/* === RESPONSIVE === */

@media (max-width:850px) {
    .redes-sociales {
        display: none;
    }
}

@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: 40px,10px,10px,10px;
        margin-top: 0px;        
    }
}


@media (max-width: 1000px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contact-section {
        padding: 30px 15px 50px;
    }

    .contact-banner {
        height: 160px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-card {
        min-height: 290px;
    }

    .email-options {
        grid-template-columns: 1fr;
    }

    .modal-box {
        padding: 30px 20px;
    }
}
