 :root {
     --colorBrand: #00a059;
     --colorBrandAlt: #ffcc01;
 }

 body {
     font-family: 'Poppins', sans-serif;
     background-color: #f4f7f6;
     margin: 0;
     padding: 0;
     color: #333;
 }

 .section {
     max-width: 900px;
     margin: 40px auto;
     background: #fff;
     padding: 0;
     border-radius: 12px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
     overflow: hidden;
 }

 .container-header {
     text-align: center;
     /*! padding: 30px 20px; */
 }

 .container-header img {
     /*! max-width: 220px; */
     margin-bottom: 20px;
     width: 100%;
 }

 legend {
     font-size: 1.1em;
     font-weight: 500;
     line-height: 1.3;
     color: #444;
     margin: 0;
     padding-bottom: 20px;
 }

 .container-form {
     padding: 0 40px 30px;
 }

 form {
     display: flex;
     flex-direction: column;
     gap: 15px;
 }

 input[type="text"],
 input[type="email"],
 input[type="tel"],
 input[type="number"],
 select {
     width: 100%;
     padding: 12px 15px;
     border: 1px solid #ddd;
     border-radius: 6px;
     font-family: 'Poppins', sans-serif;
     font-size: 14px;
     box-sizing: border-box;
     transition: border-color 0.3s;
 }

 input:focus,
 select:focus {
     outline: none;
     border-color: var(--colorBrand);
 }

 .chk-container {
     display: flex;
     align-items: flex-start;
     gap: 10px;
     margin-top: 10px;
     cursor: pointer;
 }

 .chk {
     margin-top: 5px;
     transform: scale(1.2);
     accent-color: var(--colorBrand);
 }

 .chk-legal {
     font-size: 12px;
     line-height: 1.5;
     color: #666;
     margin: 0;
 }

 .container-btn {
     text-align: center;
     margin-top: 20px;
 }

 .btn {
     background-color: var(--colorBrand);
     color: white;
     border: none;
     padding: 12px 50px;
     font-size: 16px;
     font-weight: 600;
     border-radius: 30px;
     cursor: pointer;
     transition: background 0.3s;
     text-transform: uppercase;
     letter-spacing: 1px;
 }

 .btn:hover {
     background-color: #00854a;
 }

 /* submit button */

 #subm {
     background-color: var(--colorBrand);
     font-size: 1.2em;
     padding: 8px 15px;
     margin: 1vh 5px 3vh;
     display: flex;
     justify-content: space-between;
     align-items: center;
     cursor: pointer;
     color: #fff;
     text-shadow: 0px 0px 2px #222;
     max-width: 135px;
     border-radius: 30px;
     border: solid 1px var(--colorBrand);
 }

 #subm:hover {
     box-shadow: 0 0 0 0.0625em var(--colorBrand),
         0 0.125em 0.125em 0.0625em hsla(var(--hue), 90%, 10%, 0.3);
     transition: 100ms;
     color: var(--colorBrand);
     background-color: #fff;
     text-shadow: 0px 0px 0px transparent;
 }

 #subm>div:nth-child(1) {
     padding: 0px 8px;
 }

 .circle {
     background-color: #fff;
     border-radius: 100%;
     height: 28px;
     width: 28px;
 }

 #subm:hover .circle {
     background-color: var(--colorBrand);
     box-shadow: 0 0 0 0.0625em hsl(var(--hue), 90%, 80%);
 }

 .container-legal {
     background-color: #f9f9f9;
     padding: 20px 40px;
     border-top: 1px solid #eee;
     font-size: 11px;
     color: #777;
     line-height: 1.3;
 }

 .container-legal p {
     margin: 0;
 }

 @media (max-width: 600px) {
     .section {
         margin: 0;
         border-radius: 0;
     }

     .container-form,
     .container-legal {
         padding: 20px;
     }
 }

/* ── Buscador especialidad ─────────────────────────────────────────────── */

.especialidad-wrapper {
    position: relative;
    width: 100%;
}

#especialidad-input {
    width: 100%;
    padding: 12px 38px 12px 15px; /* espacio para la flecha */
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    color: #999;
    background: #fff;
}

#especialidad-input.has-value {
    color: #333;
}

#especialidad-input:focus {
    outline: none;
    border-color: var(--colorBrand);
}

.especialidad-arrow {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #888;
    cursor: pointer;
    pointer-events: all;
    user-select: none;
}

.especialidad-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    max-height: 220px;
    overflow-y: auto;
    z-index: 999;
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.especialidad-list li {
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.especialidad-list li:hover,
.especialidad-list li.active {
    background-color: #f0faf5;
    color: var(--colorBrand);
}

.especialidad-list mark {
    background: none;
    color: var(--colorBrand);
    font-weight: 600;
}

/* Scrollbar sutil en la lista */
.especialidad-list::-webkit-scrollbar { width: 5px; }
.especialidad-list::-webkit-scrollbar-track { background: transparent; }
.especialidad-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

/* RESULTS */
.container-banner{
		width:90%;
	margin:auto;
}

.banner{
	width:100%;
	margin:auto;
}

.results .container-form{
	padding:0px 20px;
}

.results .container-form h3 {
    font-size: 2.5rem;
    color: #00a059;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    padding: 20px;
    margin: 0px;
}

.results .container-form p {
    font-size: 1.3rem;
    color: #ababab;
    text-align: center;
	line-height:1.3;
	max-width:80%;
	margin:auto;
}
