body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f7;
    margin: 0;
    padding: 0;
}

#titleContainer,
#searchForm,
#dropdown {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

h1 {
    font-size: 2.3em;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 50px 0 30px 0;
    text-align: center;
}

#searchForm {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#query {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 1.07em;
    border: 1.7px solid #bcbcbc;
    border-radius: 9px;
    margin-bottom: 13px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    background: #fff;
    outline: none;
    transition: border-color 0.18s;
}

#query:focus {
    border-color: #207ee7;
}

#resultCounter {
    text-align: right;
    color: #444;
    margin-bottom: 5px;
    font-size: 1em;
    font-weight: 500;
}

#dropdown {
    background: transparent;
    border: none;
    box-shadow: none;
    max-height: 600px;
    overflow-y: auto;
    padding: 0;
}

.option {
    background: #fff;
    border: 1.2px solid #e3e3e3;
    border-radius: 13px;
    margin-bottom: 18px;
    box-shadow: 0 3px 18px rgba(0,0,0,0.08);
    padding: 20px 28px 15px 28px;
    font-size: 1.07em;
    position: relative;
    transition: box-shadow 0.16s, border 0.16s;
}

.option:hover {
    border: 1.7px solid #207ee7;
    box-shadow: 0 6px 30px rgba(60,120,250,0.07);
}

.option-title {
    font-size: 1.13em;
    font-weight: bold;
    color: #2b2b2b;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    white-space: normal;
}

.option-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.option-section div {
    font-size: 1em;
}

.option-section b {
    color: #262b36;
    font-weight: 600;
}

.phone-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 12px;
}

.phone-columns .option-extra {
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    word-break: break-word;
}

.option-extra a {
    color: #207ee7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.option-extra img.whatsapp-icon {
    width: 18px;
    height: 18px;
    transition: filter 0.2s ease;
}

.option-extra a:hover img.whatsapp-icon {
    filter: brightness(0) saturate(100%) invert(37%) sepia(97%) saturate(963%) hue-rotate(79deg) brightness(95%) contrast(101%);
}

.copy-icon {
    margin-left: 7px;
    cursor: pointer;
    color: #646464;
    font-size: 1em;
    user-select: none;
}

.copy-icon:hover {
    color: #21a852;
}

.copied-message {
    display: inline-block;
    color: #22a950;
    font-size: 0.97em;
    margin-left: 8px;
    font-weight: bold;
    opacity: 0.9;
}

.phone:hover, .copy-icon:hover {
    color: #207ee7 !important;
    text-decoration: underline;
}

.highlight {
    background: #ffe564;
    padding: 0 2px;
    border-radius: 3px;
}

.phone-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 3px;
    font-size: 1.04em;
}

.phone-number-big {
    font-size: 1.3em !important;
    font-weight: bold;
    line-height: 1.1;
}

.phone-icon {
    margin-right: 2px;
    flex-shrink: 0;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #128c7e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s;
}

.whatsapp-link:hover {
    color: #075e54;
    text-decoration: underline;
}

.separator-agencia-autoridad {
    border: none;
    border-top: 1.6px solid #e3e3e3;
    margin: 12px 0 10px 0;
    width: 100%;
}

/* Separación extra entre teléfonos */
.persona-entry .phone-row + .phone-row {
    margin-top: 10px;
    margin-bottom: 0;
}

/* Responsive para móviles, tablets y pantallas pequeñas */
@media (max-width: 900px) {
    html, body {
        font-size: 20px !important;
        background: #fff;
    }
    #titleContainer, #searchForm, #dropdown {
        max-width: 100vw !important;
        padding: 0 4vw !important;
    }
    .option {
        padding: 22px 7px 17px 7px !important;
        font-size: 1.25em !important;
        border-radius: 15px !important;
        margin-bottom: 24px !important;
    }
    .option-title {
        font-size: 1.45em !important;
        margin-bottom: 13px !important;
    }
    .option-section div,
    .persona-entry {
        font-size: 1.21em !important;
    }
    #query {
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box;
        margin-left: -4vw !important;
        margin-right: -4vw !important;
        padding: 18px 8px !important;
        font-size: 1.2em !important;
        border-radius: 13px !important;
        margin-bottom: 16px !important;
    }
    h1 {
        font-size: 2em !important;
        margin: 20px 0 15px !important;
    }
    #resultCounter {
        font-size: 1.13em !important;
    }
    .phone-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 7px !important;
        font-size: 1.15em !important;
        margin-top: 14px !important;
        margin-bottom: 12px !important;
    }
    .whatsapp-link, .phone-icon {
        width: 25px !important;
        height: 25px !important;
        font-size: 1.19em !important;
    }
    .separator-agencia-autoridad {
        margin: 13px 0 12px 0 !important;
    }
    /* Espaciado extra entre varios teléfonos en mobile */
    .persona-entry .phone-row + .phone-row {
        margin-top: 18px !important;
        margin-bottom: 0 !important;
    }
}
