/* ===== Contacto Profesional Mejorado ===== */
.contacto {
    padding: 90px 0 70px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    min-height: 100vh;
    position: relative;
    color: #fff;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto .contenido {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 44px;
    border-radius: 22px;


}

.contacto h2 {
    font-size: 2.8rem;
    color: #232326;
    margin-bottom: 18px;
    letter-spacing: 2px;
    font-weight: 800;
    text-align: center;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.section-divider {
    margin: 0 auto 32px;
    border: none;
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, #4fd1c5 0%, #3498db 60%, #314e91 100%);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(14, 32, 50, 0.13);
}

.contacto p {
    font-size: 1.25rem;
    color: #232326;
    line-height: 2;
    max-width: 700px;
    margin: 0 auto 38px;
    text-align: center;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.contacto form {
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 44px 36px;
    border-radius: 16px;
    color: #222;
    transition: box-shadow 0.2s;
}

.contacto input,
.contacto textarea {
    width: 100%;
    padding: 16px;
    font-size: 1.08rem;
    border: 1.5px solid #bfc9d1;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 0;
    font-family: inherit;
    background: #f8fafcb6;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.contacto input:focus,
.contacto textarea:focus {
    border-color: #604fd1;
    box-shadow: 0 0 12px rgba(79, 209, 197, 0.18);
    background: #f0f9ff;
    outline: none;
}

.contacto textarea {
    min-height: 140px;
    resize: vertical;
}

.contacto button {
    background: linear-gradient(90deg, #314e91 0%, #4fd1c5 100%);
    color: #fff;
    padding: 16px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.18rem;
    font-weight: 800;
    margin: 0 auto;
    width: 100%;
    transition: transform 0.18s, box-shadow 0.18s, background-color 0.18s;
    box-shadow: 0 4px 16px rgba(44,62,80,0.15);
    letter-spacing: 0.7px;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.contacto button:hover {
    box-shadow: 0 12px 20px rgba(44,62,80,0.22);
    transform: translateY(-2px) scale(1.055);
    background: linear-gradient(90deg, #4fd1c5 0%, #314e91 100%);
}

@media (max-width: 700px) {
    .contacto {
        padding: 40px 0 30px 0;
        min-height: unset;
        align-items: flex-start;
        background-position: 90% center;
    }
    .contacto .contenido {
        padding: 14px 4px;
    }
    .contacto form {
        padding: 20px 4px;
    }
    .contacto h2 {
        font-size: 1.4rem;
    }

    #Contacto .contact-customer {
        margin-top: 40px;
    }
}



.img-contact img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

/* Contact directory layout */
#Contacto.contacto {
    min-height: 0;
    padding: 64px 90px 76px;
    background: #f8f9ff;
    background-image: none;
    color: #0b1c30;
    box-shadow: none;
    align-items: flex-start;
}

#Contacto .contenido {
    width: 100%;
    max-width: 1240px;
    padding: 0;
}





#Contacto .section-divider {
    width: 64px;
    height: 4px;
    margin: 0 auto 40px;
}



#Contacto .contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 48px;
    color: #0b1c30;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    margin-top: 55px;
}

#Contacto .contact-customer,
#Contacto .contact-emergency {
    min-width: 0;
}

#Contacto .contact-emergency {
    padding-left: 32px;
    border-left: 1px solid #dce4f2;
}

#Contacto .contact-tollfree {
    margin-bottom: 22px;
}

#Contacto .contact-tollfree-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 480px;
    margin-bottom: 22px;
}

#Contacto .contact-tollfree-actions .contact-call-action,
#Contacto .contact-tollfree-actions .contact-copy-button {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 6px;
}

#Contacto .contact-tollfree-actions .contact-copy-button {
    padding: 8px 11px;
}

#Contacto .contact-emergency-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

#Contacto .contact-emergency-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#Contacto .contact-emergency-heading img {
    display: none;
    width: 85px;
    height: 85px;
    flex: 0 0 40px;
    margin-left: 10px;
    object-fit: contain;
}

#Contacto .contact-emergency-badge {
    display: none;
}


#Contacto .contact-tollfree p {
    margin: 0 0 8px;
    color: #153678;
    font-size: 1.1rem;
    font-weight: 700;
}

#Contacto .contact-tollfree-cta {
    display: inline-flex;
    width: min(525px, 100%);
    min-height: 78px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 10px 22px;
    border-radius: 60px;
    background: linear-gradient(135deg, #193a8b 0%, #3764d4 100%);
    box-shadow: -1px 0 15px 8px rgb(19 41 99 / 20%);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#Contacto .contact-tollfree-cta:hover,
#Contacto .contact-tollfree-cta:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    filter: brightness(1.05);
}

#Contacto .contact-tollfree-cta .call-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 50%;
    background: rgb(255 255 255 / 15%);
}

#Contacto .contact-tollfree-cta .call-icon svg {
    display: block;
    width: 34px;
    height: 34px;
}

#Contacto .contact-tollfree-cta .call-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
    text-align: center;
}

#Contacto .contact-tollfree-cta .call-label strong {
    color: #fff;
    font-size: 1.65rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

#Contacto .contact-tollfree-cta .call-label .subtitle {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    opacity: 0.82;
}

#Contacto .contact-tollfree img {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
    object-position: left center;
    margin: 20px 0px 20px;
}


#Contacto .contact-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: #425f8f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#Contacto .contact-eyebrow > span {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #425f8f;
}

#Contacto .contact-eyebrow-emergency {
    color: #ba1a1a;
}

#Contacto .contact-eyebrow-emergency > span {
    background: #ba1a1a;
    animation: contact-pulse 1.8s ease-in-out infinite;
}

@keyframes contact-pulse {
    50% { box-shadow: 0 0 0 5px rgba(186, 26, 26, 0.12); }
}

@keyframes contact-tollfree-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes contact-tollfree-glow {
    0%, 100% { box-shadow: 0 3px 10px rgb(49 78 145 / 20%); }
    50% { box-shadow: 0 10px 30px rgb(49 78 145 / 58%), 0 0 0 4px rgb(49 78 145 / 14%); }
}

@keyframes contact-emergency-icon-glow {
    0%, 100% { box-shadow: 0 0 5px 1px #3faed266; }
    50% { box-shadow: 0 0 13px 4px #3faed266; }
    
}


#Contacto .contact-details h3 {
    margin: 0;
    color: #153678;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
}

#Contacto .contact-details .contact-emergency-word {
    color: #3faed2;
    font-size: 1.8rem;
}

#Contacto .contact-details p {
    max-width: none;
    margin: 0;
    color: #444;
    font-family: inherit;
    font-size: 1.12rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.55;
    text-align: left;
}

#Contacto .contact-details .contact-hours {
    margin-top: 4px;
    color: #425f8f;
    font-size: 1rem;
    font-style: italic;
}

#Contacto .contact-details .contact-emergency-title  {
    margin-top: 0;
    color: #3faed2;
    font-weight: 600;
    font-style: normal;
}

#Contacto .contact-details .contact-description {
    max-width: 480px;
    margin-top: 12px;
}

#Contacto .contact-description strong {
    color: #153678;
    font-weight: 700;
}

#Contacto .contact-whatsapp-row {
    margin: 20px 0 16px;
}

#Contacto .contact-whatsapp-card {
    width: 100%;
    padding: 20px;
    border: 1px solid #a9f2d4;
    border-radius: 22px;
    background: #f4fbf7;
    box-shadow: 0 2px 8px rgba(13, 148, 100, 0.08);
}

#Contacto .contact-whatsapp-head,
#Contacto .contact-whatsapp-brand,
#Contacto .contact-whatsapp-actions {
    display: flex;
    align-items: center;
}

#Contacto .contact-whatsapp-head {
    justify-content: space-between;
    gap: 12px;
}

#Contacto .contact-whatsapp-brand {
    min-width: 0;
    gap: 12px;
}

#Contacto .contact-whatsapp-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border-radius: 16px;
    background: #25d366;
    color: #fff;
}

#Contacto .contact-whatsapp-icon i {
    font-size: 2.25rem;
}

#Contacto .contact-whatsapp-copy {
    display: grid;
    gap: 3px;
    text-align: left;
}

#Contacto .contact-whatsapp-copy strong {
    color: #087553;
    font-size: 0.9rem;
}

#Contacto .contact-whatsapp-copy span {
    color: #71849c;
    font-size: 2rem;
}

#Contacto .contact-whatsapp-status {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #def9ed;
    color: #087d5b;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

#Contacto .contact-whatsapp-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
}

#Contacto .contact-whatsapp-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    margin-top: 16px;
}

#Contacto .contact-details a.contact-whatsapp-number {
    color: #314e91;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

#Contacto .contact-details a.contact-whatsapp-start {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 14px;
    background: #079b70;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 160ms ease, transform 160ms ease;
}

#Contacto .contact-details a.contact-whatsapp-start:hover,
#Contacto .contact-details a.contact-whatsapp-start:focus-visible {
    background: #087d5b;
    text-decoration: none;
    transform: translateY(-1px);
}

#Contacto .contact-copy-button-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid #dce5f0;
    border-radius: 14px;
    background: #fff;
    color: #526278;
    cursor: pointer;
    font-size: 1.1rem;
}

#Contacto .contact-phone-list,
#Contacto .contact-emergency-list {
    margin-top: 14px;
}

#Contacto .contact-phone-line {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    border-bottom: 1px solid #e4e9f2;
}

#Contacto .contact-phone-line:last-child {
    border-bottom: 0;
}

#Contacto .contact-phone-line > i {
    color: #425f8f;
    font-size: 1.15rem;
}

#Contacto .contact-emergency-list .contact-phone-line > i {
    color: #153678;
}

#Contacto .contact-details .contact-phone-line > a:not(.contact-call-action) {
    color: #314e91;
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
}

#Contacto .contact-details a {
    text-decoration: none;
}

#Contacto .contact-details a:hover,
#Contacto .contact-details a:focus-visible {
    text-decoration: none;
}

#Contacto .contact-emergency-list .contact-phone-line > a:not(.contact-call-action) {
    font-size: 1.5rem;
}

#Contacto .contact-details .contact-call-action {
    padding: 8px 11px;
    border-radius: 6px;
    background: #153678;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

#Contacto .contact-details .contact-call-action:hover,
#Contacto .contact-details .contact-call-action:focus-visible {
    background: #425f8f;
    color: #fff;
    text-decoration: none;
}

#Contacto .contact-copy-button {
    padding: 7px 4px;
    border: 0;
    background: #fff;
    border: 1px solid #314e91;
    color: #425f8f;
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
}

#Contacto .contact-copy-button:hover,
#Contacto .contact-copy-button:focus-visible {
    color: #153678;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    #Contacto.contacto {
        padding: 52px 55px 60px;
    }

    #Contacto .contact-details {
        grid-template-columns: 1fr;
        gap: 38px;
        max-width: 680px;
        margin: 0 auto;
    }

    #Contacto .contact-emergency {
        padding: 0;
        border: 0;
    }
}

@media (max-width: 520px) {
    #Contacto.contacto {
        padding: 40px 16px 48px;
    }

    #Contacto .contact-details {
        row-gap: 20px;
    }

    #Contacto .contact-emergency {
        display: contents;
    }

    #Contacto .contact-tollfree {
        order: -1;
        box-sizing: border-box;
        margin-bottom: 0;
        padding: 14px;
        border: 1px solid rgb(49 78 145 / 24%);
        border-radius: 18px;
        background: linear-gradient(120deg, #edf2ff, #fff 35%, #dce7ff 65%, #edf2ff);
        background-size: 250% 250%;
        animation: contact-tollfree-shift 7s ease-in-out infinite, contact-tollfree-glow 3s ease-in-out infinite;
    }

    #Contacto .contact-tollfree-actions {
        margin-bottom: 0;
    }

    #Contacto .contact-tollfree img {
        margin: 14px 0;
    }



    #Contacto .section-divider {
        margin-bottom: 30px;
    }

    #Contacto .contact-details h3 {
        font-size: 1.5rem;
    }

    #Contacto .contact-emergency-heading img {
        display: block;
    }

    #Contacto .contact-emergency-card {
        padding: 0 0 0 14px;
        border: 0;
        border-left: 3px solid #b44141;
        background: transparent;
    }

    #Contacto .contact-emergency-heading {
        align-items: flex-start;
        gap: 12px;
    }

    #Contacto .contact-emergency-heading img {
        width: 80px;
        height: 80px;
        flex-basis: 48px;
        margin: 0;
        border-radius: 50%;
        animation: contact-emergency-icon-glow 3s ease-in-out infinite;
    }

    #Contacto .contact-emergency-title {
        display: grid;
        gap: 6px;
    }

    #Contacto .contact-emergency-badge {
        display: inline-flex;
        align-items: center;
        width: max-content;
        padding: 4px 8px;
        border-radius: 999px;
        background: #f8e6e3;
        color: #963838;
        font-size: 0.68rem;
        font-weight: 700;
    }

    #Contacto .contact-emergency-card .contact-hours {
        margin-top: 8px;
    }

    #Contacto .contact-emergency-card .contact-emergency-list {
        margin-top: 8px;
    }

    #Contacto .contact-emergency-card .contact-phone-line {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        min-height: 0;
        padding: 12px 0;
    }

    #Contacto .contact-emergency-card .contact-phone-line > i {
        display: none;
    }

    #Contacto .contact-emergency-card .contact-phone-line > a:not(.contact-call-action) {
        grid-column: 1 / -1;
        font-size: 1.25rem;
    }

    #Contacto .contact-emergency-card .contact-phone-line > .contact-call-action,
    #Contacto .contact-emergency-card .contact-phone-line > .contact-copy-button {
        display: flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 8px;
        border-radius: 6px;
        font-size: 0.75rem;
    }

    #Contacto .contact-emergency-card .contact-phone-line > .contact-call-action {
        grid-column: 1;
        grid-row: 2;
    }

    #Contacto .contact-emergency-card .contact-phone-line > .contact-copy-button {
        grid-column: 2;
        grid-row: 2;
        justify-self: stretch;
        border: 1px solid #314e91;
    }

    #Contacto .contact-tollfree-actions {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #Contacto .contact-tollfree-actions .contact-call-action,
    #Contacto .contact-tollfree-actions .contact-copy-button {
        min-width: 0;
        padding: 8px 6px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    #Contacto .contact-tollfree-cta {
        min-height: 64px;
        gap: 12px;
        padding: 8px 16px;
    }

    #Contacto .contact-tollfree-cta .call-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    #Contacto .contact-tollfree-cta .call-icon svg {
        width: 28px;
        height: 28px;
    }

    #Contacto .contact-tollfree-cta .call-label strong {
        font-size: 1.15rem;
        letter-spacing: 0.04em;
    }

    #Contacto .contact-tollfree-cta .call-label .subtitle {
        font-size: 0.68rem;
        letter-spacing: 0.25em;
    }

    #Contacto .contact-whatsapp-card {
        padding: 14px;
        border-radius: 18px;
    }

    #Contacto .contact-whatsapp-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    #Contacto .contact-whatsapp-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    #Contacto .contact-whatsapp-icon i {
        font-size: 1.9rem;
    }

    #Contacto .contact-whatsapp-status {
        margin-left: 56px;
    }

    #Contacto .contact-whatsapp-actions {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 10px;
    }

    #Contacto .contact-details a.contact-whatsapp-number {
        grid-column: 1 / -1;
        font-size: clamp(2.1rem, 6vw, 1.7rem);
    }

    #Contacto .contact-details a.contact-whatsapp-start {
        min-height: 44px;
    }

    #Contacto .contact-copy-button-icon {
        width: 44px;
        height: 44px;
    }

    #Contacto .contact-phone-line {
        grid-template-columns: 20px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 8px 0;
    }

    #Contacto .contact-details .contact-phone-line > a:not(.contact-call-action) {
        font-size: 1.4rem;
    }

    #Contacto .contact-emergency-list .contact-phone-line > a:not(.contact-call-action) {
        font-size: 1.4rem;
    }

    #Contacto .contact-phone-line .contact-copy-button {
        grid-column: 3;
        grid-row: 2;
        justify-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    #Contacto .contact-tollfree {
        animation: none;
    }

    #Contacto .contact-emergency-heading img {
        animation: none;
    }
}