@import url("./base.css");

/* =========================
   HERO CONTACTAME SIMPLE
========================= */

.contact-simple-hero {
    position: relative;
    width: 100%;
    height: clamp(630px, 72vw, 930px);
    overflow: hidden;
    background: var(--isatec-light);
}

.contact-simple-picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.contact-simple-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

/* =========================
   FORMULARIO DE CONTACTO
========================= */

.contact-form-section {
    position: relative;
    width: 100%;
    padding: 5.5rem 0;
    background:
        radial-gradient(circle at top right, rgba(33, 212, 248, 0.13), transparent 30%),
        radial-gradient(circle at bottom left, rgba(30, 34, 255, 0.08), transparent 34%),
        linear-gradient(180deg, var(--isatec-white), var(--isatec-light));
    overflow: hidden;
}

.contact-form-section::before {
    content: "";
    position: absolute;
    top: -150px;
    left: -150px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
}

.contact-form-section::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -180px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
}

.contact-form-section .container-fluid {
    position: relative;
    z-index: 2;
}

/* Encabezado */

.contact-form-heading {
    width: min(880px, 100%);
    margin: 0 auto 3.2rem;
}

.contact-form-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: var(--isatec-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-form-label::before,
.contact-form-label::after {
    content: "";
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--isatec-primary), var(--isatec-secondary));
}

.contact-form-heading h2 {
    margin: 0;
    color: var(--isatec-dark);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.contact-form-heading p {
    max-width: 780px;
    margin: 1rem auto 0;
    color: rgba(31, 41, 55, 0.72);
    font-size: 1rem;
    line-height: 1.75;
}

/* Wrapper */

.contact-form-wrapper {
    position: relative;
}

/* Card lateral */

.contact-info-card {
    position: relative;
    height: 100%;
    min-height: 100%;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 34px;
    background:
        radial-gradient(circle at 88% 12%, rgba(33, 212, 248, 0.24), transparent 30%),
        linear-gradient(135deg, var(--isatec-dark), #061243 72%);
    box-shadow: 0 28px 70px rgba(10, 27, 94, 0.2);
    overflow: hidden;
}

.contact-info-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.contact-info-label,
.contact-info-card h3,
.contact-info-card p,
.contact-info-list,
.contact-info-note {
    position: relative;
    z-index: 2;
}

.contact-info-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: var(--isatec-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-info-label::before {
    content: "";
    width: 32px;
    height: 2px;
    border-radius: 999px;
    background: var(--isatec-secondary);
}

.contact-info-card h3 {
    margin: 0;
    color: var(--isatec-white);
    font-size: clamp(1.55rem, 2.7vw, 2.35rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.contact-info-card p {
    margin: 1rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-info-list {
    display: grid;
    gap: 1rem;
}

.contact-info-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    padding-right: 3rem;
    border-radius: 22px;
    color: inherit;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.contact-info-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(33, 212, 248, 0.34);
}

.contact-info-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--isatec-secondary);
    font-size: 0.95rem;
    opacity: 0.75;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.contact-info-item:hover .contact-info-arrow {
    opacity: 1;
    transform: translate(3px, -3px);
}

.contact-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: var(--isatec-dark);
    background: var(--isatec-secondary);
    font-size: 1.2rem;
}

.contact-info-item strong {
    display: block;
    color: var(--isatec-white);
    font-size: 0.94rem;
    font-weight: 800;
}

.contact-info-item span {
    display: block;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
    line-height: 1.45;
    font-weight: 600;
}

.contact-info-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 22px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.84rem;
    line-height: 1.55;
    font-weight: 600;
}

.contact-info-note i {
    color: var(--isatec-secondary);
    margin-top: 0.15rem;
}

/* Card formulario */

.contact-form-card {
    position: relative;
    height: 100%;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 34px;
    background: var(--isatec-white);
    border: 1px solid rgba(10, 27, 94, 0.06);
    box-shadow: 0 24px 65px rgba(10, 27, 94, 0.12);
    overflow: hidden;
}

.contact-form-card::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(33, 212, 248, 0.13);
    pointer-events: none;
}

.contact-form {
    position: relative;
    z-index: 2;
}

/* Inputs */

.contact-form .form-label {
    margin-bottom: 0.45rem;
    color: var(--isatec-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

.contact-form .form-control,
.contact-form .form-select {
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(10, 27, 94, 0.12);
    color: var(--isatec-text);
    background-color: var(--isatec-light);
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: none;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.contact-form .form-control::placeholder {
    color: rgba(31, 41, 55, 0.42);
    font-weight: 500;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: rgba(30, 34, 255, 0.42);
    background-color: var(--isatec-white);
    box-shadow: 0 0 0 0.25rem rgba(30, 34, 255, 0.1);
}

/* Check */

.contact-form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    padding-left: 1rem;
    margin: 0;
    border-radius: 18px;
    background: var(--isatec-light);
    border: 1px solid rgba(10, 27, 94, 0.06);
}

.contact-form-check .form-check-input {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    margin-top: 0.22rem;
    margin-left: 0 !important;
    border-color: rgba(30, 34, 255, 0.35);
    box-shadow: none;
}

.contact-form-check .form-check-input:checked {
    background-color: var(--isatec-primary);
    border-color: var(--isatec-primary);
}

.contact-form-check .form-check-label {
    margin: 0;
    color: rgba(31, 41, 55, 0.72);
    font-size: 0.88rem;
    line-height: 1.55;
    font-weight: 600;
}

/* Botón */

.contact-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 0;
    border-radius: 999px;
    color: var(--isatec-white);
    background: var(--isatec-primary);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 16px 34px rgba(30, 34, 255, 0.22);
    transition: all 0.25s ease;
}

.contact-form-btn:hover {
    color: var(--isatec-dark);
    background: var(--isatec-secondary);
    transform: translateY(-2px);
}

/* =========================
   MAPA CONTACTO
========================= */

.contact-map-section {
    position: relative;
    width: 100%;
    padding: 5.5rem 0;
    background:
        radial-gradient(circle at top left, rgba(33, 212, 248, 0.12), transparent 30%),
        linear-gradient(180deg, var(--isatec-light), var(--isatec-white));
    overflow: hidden;
}

.contact-map-section::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(30, 34, 255, 0.07);
}

.contact-map-section::after {
    content: "";
    position: absolute;
    left: -180px;
    bottom: -180px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: rgba(33, 212, 248, 0.12);
}

.contact-map-section .container-fluid {
    position: relative;
    z-index: 2;
}

/* Encabezado */

.contact-map-heading {
    width: min(860px, 100%);
    margin: 0 auto 3.2rem;
}

.contact-map-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: var(--isatec-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-map-label::before,
.contact-map-label::after {
    content: "";
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--isatec-primary), var(--isatec-secondary));
}

.contact-map-heading h2 {
    margin: 0;
    color: var(--isatec-dark);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.contact-map-heading p {
    max-width: 760px;
    margin: 1rem auto 0;
    color: rgba(31, 41, 55, 0.72);
    font-size: 1rem;
    line-height: 1.75;
}

/* Wrapper */

.contact-map-wrapper {
    position: relative;
}

/* Card info */

.contact-map-info-card {
    position: relative;
    height: 100%;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 34px;
    background:
        radial-gradient(circle at 88% 12%, rgba(33, 212, 248, 0.24), transparent 30%),
        linear-gradient(135deg, var(--isatec-dark), #061243 72%);
    box-shadow: 0 28px 70px rgba(10, 27, 94, 0.2);
    overflow: hidden;
}

.contact-map-info-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.contact-map-info-card > * {
    position: relative;
    z-index: 2;
}

.contact-map-info-card > span {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: var(--isatec-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-map-info-card > span::before {
    content: "";
    width: 32px;
    height: 2px;
    border-radius: 999px;
    background: var(--isatec-secondary);
}

.contact-map-info-card h3 {
    margin: 0;
    color: var(--isatec-white);
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.contact-map-info-card p {
    margin: 1rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Detalles */

.contact-map-details {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-map-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.contact-map-detail i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: var(--isatec-dark);
    background: var(--isatec-secondary);
    font-size: 1.15rem;
}

.contact-map-detail strong {
    display: block;
    color: var(--isatec-white);
    font-size: 0.94rem;
    font-weight: 800;
}

.contact-map-detail small {
    display: block;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 600;
}

/* Botón */

.contact-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    width: 100%;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    color: var(--isatec-dark);
    background: var(--isatec-secondary);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s ease;
}

.contact-map-btn:hover {
    color: var(--isatec-white);
    background: var(--isatec-primary);
    transform: translateY(-2px);
}

/* Mapa */

.contact-map-frame {
    position: relative;
    height: 100%;
    min-height: 520px;
    overflow: hidden;
    border-radius: 34px;
    background: var(--isatec-light);
    border: 1px solid rgba(10, 27, 94, 0.06);
    box-shadow: 0 24px 65px rgba(10, 27, 94, 0.12);
}

.contact-map-frame::before {
    content: "";
    position: absolute;
    inset: 16px;
    z-index: 2;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    filter: saturate(1.05) contrast(1.02);
}

@media (max-width: 991.98px) {
    .contact-simple-hero {
        height: 810px;
    }

    .contact-form-section {
        padding: 4.5rem 0;
    }

    .contact-form-heading {
        margin-bottom: 2.5rem;
    }

    .contact-info-card,
    .contact-form-card {
        border-radius: 30px;
    }

    .contact-map-section {
        padding: 4.5rem 0;
    }

    .contact-map-heading {
        margin-bottom: 2.5rem;
    }

    .contact-map-info-card,
    .contact-map-frame {
        border-radius: 30px;
    }

    .contact-map-frame,
    .contact-map-frame iframe {
        min-height: 430px;
    }
}

@media (max-width: 767.98px) {
    .contact-simple-hero {
        height: 320px;
    }

    .contact-simple-picture {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .contact-simple-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 575.98px) {
    .contact-simple-hero {
        height: 280px;
    }

    .contact-form-section {
        padding: 3.25rem 0;
    }

    .contact-form-label {
        font-size: 0.7rem;
    }

    .contact-form-label::before,
    .contact-form-label::after {
        width: 22px;
    }

    .contact-form-heading h2 {
        font-size: 1.85rem;
        line-height: 1.12;
    }

    .contact-form-heading p {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.2rem;
        border-radius: 24px;
    }

    .contact-info-card h3 {
        font-size: 1.55rem;
    }

    .contact-info-card p {
        font-size: 0.9rem;
    }

    .contact-info-item {
        padding: 0.9rem;
        border-radius: 18px;
    }

    .contact-info-icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 1.05rem;
    }

    .contact-form .form-label {
        font-size: 0.82rem;
    }

    .contact-form .form-control,
    .contact-form .form-select {
        min-height: 48px;
        border-radius: 14px;
        font-size: 0.88rem;
    }

    .contact-form textarea.form-control {
        min-height: 130px;
    }

    .contact-form-check {
        gap: 0.65rem;
        padding: 0.9rem;
        margin: 0;
        border-radius: 16px;
    }

    .contact-form-check .form-check-label {
        font-size: 0.82rem;
    }

    .contact-form-btn {
        min-height: 50px;
        font-size: 0.9rem;
    }

    .contact-map-section {
        padding: 3.25rem 0;
    }

    .contact-map-label {
        font-size: 0.7rem;
    }

    .contact-map-label::before,
    .contact-map-label::after {
        width: 22px;
    }

    .contact-map-heading h2 {
        font-size: 1.85rem;
        line-height: 1.12;
    }

    .contact-map-heading p {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .contact-map-info-card {
        padding: 1.2rem;
        border-radius: 24px;
    }

    .contact-map-info-card h3 {
        font-size: 1.55rem;
    }

    .contact-map-info-card p {
        font-size: 0.9rem;
    }

    .contact-map-detail {
        padding: 0.9rem;
        border-radius: 18px;
    }

    .contact-map-detail i {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 1.05rem;
    }

    .contact-map-frame {
        min-height: 340px;
        border-radius: 24px;
    }

    .contact-map-frame::before {
        inset: 10px;
        border-radius: 18px;
    }

    .contact-map-frame iframe {
        min-height: 340px;
    }
}