.chatgpt-search-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 2rem;
  column-gap: 30px;
  align-items: start;
}

.chatgpt-search-wrap > *{
  width: 100%;
}

.chatgpt-search-wrap h3 {
    margin-bottom: 30px;
}

.chatgpt-answer {
  /*grid-column: 1 / -1;*/
  background: #f4f8ff;
  padding: 1.5rem;
  border-left: 4px solid #0073aa;
  border-radius: 6px;
}

.chatgpt-answer h3 {
  margin-top: 0;
}

.chatgpt-text-cta {
    font-size: 26px;
	margin-bottom: 20px;
}

.chatgpt-text-cta a {
    color: #333;
    border-bottom: 1px solid #333;
    padding-bottom: 5px !important;
}

.chatgpt-articulos,
.chatgpt-especialistas {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
}

.chatgpt-answer{
  width: calc(100% - 430px);
}

.chatgpt-articulos{
  width: 400px;
}

.chatgpt-search-wrap h4 {
    margin-bottom: 30px;
}

.chatgpt-articulos h4,
.chatgpt-especialistas h4 {
  margin-top: 0;
}

.chatgpt-articulos ul,
.chatgpt-especialistas ul {
  list-style: none;
  padding-left: 0;
}

.chatgpt-articulos li,
.chatgpt-especialistas li {
  margin-bottom: 1rem;
}

.chatgpt-articulos a,
.chatgpt-especialistas a {
  font-weight: bold;
  color: #0073aa;
  text-decoration: none;
}

.chatgpt-especialistas {
  display: block;
  width: 100%;
}

.chatgpt-especialistas .section-results-abogas{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 30px;
  row-gap: 30px;
}

.chatgpt-especialistas .section-results-abogas > .box-abogado{
  width: calc(50% - 15px);
  justify-content: start;
}

.chatgpt-especialistas .section-results-abogas > .especialidad-top-link{
  width: 100%;
  text-align: center;
  margin-top: -25px;
  margin-bottom: 15px;
}

.chatgpt-form {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
}

.chatgpt-form input[type="text"] {
    padding: 10px;
    height: 53px;
    border-color: #333;
    flex: 1;
}

.chatgpt-form button[type="submit"] {
    cursor: pointer;
}

.ia-icon {
  width: 32px;
  height: 32px;
  margin-right: 8px;
  vertical-align: middle;
}
.chatgpt-answer h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chatgpt-relacionadas {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.chatgpt-especialistas .main-results-abogados {
    margin-bottom: 30px;
}

.newsearchform {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
}

.newsearchform input[type=text] {
  width: 100%;
  border-radius: 25px;
  padding-right: 80px;
  padding-left: 14px;
  line-height: 2;
}

.newsearchform .buttoni,
.newsearchform input[type=submit] {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
  border: 0;
}

.newsearchform .buttoni {
  position: absolute;
  top: 50%;
  right: 3px;
  transform: translateY(-50%);
  width: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
}

.newsearchform input[type=submit],
.newsearchform input[type=submit]:hover {
  padding: 0;
  background-image: url(ico-search.svg);
  background-repeat: no-repeat;
  background-size: 15px 15px;
  background-position: center;
  cursor: pointer;
  background-color: #000;
}

.poweredchatgpt {
  display: block;
  text-align: right;
  font-size: 11px;
  padding: 5px 0;
  letter-spacing: 1px;
}

.poweredchatgpt.mob {
  text-align: left;
  padding-bottom: 0;
  padding-left: 14px;
}

/* Estilos para preguntas relacionadas */
.preguntas-relacionadas {
    margin-left: 0px !important;
    margin-bottom: 0;
}

.pregunta-item {
  margin-bottom: 15px;
  list-style-type: none !important;
}
.pregunta-header {
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.toggle-icon {
  font-size: 14px;
  width: 16px;
  display: inline-block;
}
.pregunta-item a.toggle-resumen.toggle-icon {
    border-bottom: none;
}
.resumen-content {
  margin-left: 20px;
  margin-top: 5px;
  color: #444;
}
.preguntas-relacionadas hr {
  border: none;
  border-top: 1px solid #ddd;
  margin-top: 10px;
}

.chatgpt-relacionadas,
.map-website{
  width: calc(50% - 15px);
}

.map-website{
  text-align: center;
}

.search-widget {
    background-color: #efefef;
    padding: 20px 30px;
    margin: 0 20px 30px 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 4px 4px rgba(0,0,0,0.7);
    -webkit-box-shadow: 2px 2px 4px 4px rgba(0,0,0,0.7);
    -moz-box-shadow: 5px 5px 5px -1px rgba(0,0,0,0.75);
}

.search-widget h3 {
    font-size: 22px;
}

.search-widget .chatgpt-form {
    display: inline;
}

.search-widget .label-search {
    display: inline-block;
    font-weight: 600;
    margin: 0 0 15px 5px;
}

.search-widget .label-search::before {
	content: url('search-assist-sm.png');
}

.search-widget .chatgpt-form .buttoni {
    display: block !important;
	height: 40px;
    margin-top: 10px;
    position: relative;
    right: auto;
    transform: none;
    top: auto;
}

.search-widget .chatgpt-answer {
    font-size: 90%;
}

.search-widget .chatgpt-answer, 
.search-widget .chatgpt-articulos, 
.search-widget .chatgpt-especialistas, 
.search-widget .chatgpt-relacionadas {
    width: 100% !important;
}

.search-widget .chatgpt-especialistas .section-results-abogas .box-abogado {
    width: calc(100% - 5px);
    justify-content: center !important;
}

.search-widget .chatgpt-form input#chatgpt_q {
    padding-right: 14px;
}

.search-widget .chatgpt-results-inline {
    margin-top: 20px;
}

.chatgpt-form.newsearchform input#searchsubmit {
    border-radius: 20px;
    background-image: url('ico-search.svg');
    background-size: 18px 18px;
    background-position: 12px center;
    background-repeat: no-repeat;
    border: 0;
    cursor: pointer;
	height: 36px;
    padding: .6rem 1rem 1rem 2.2rem;
    text-transform: none;
    width: 220px;
}

.tooltip-hm {
    display: inline-block;
    position: relative;
    margin-left: 5px;
    z-index: 900;
    cursor: pointer;
    text-align: left;
}

.tooltip-hm:hover {
    z-index: 995;
}

.tooltip-hm .tooltip-content {
    position: absolute;
    display: none;
    width: 300px;
    top: 26px;
    padding: 1rem;
    background-color: #020202;
    color: #fff;
    border-radius: 10px;
    transform: inherit;
    font-size: 12px;
	line-height: 18px;
}

.tooltip-msg {
    margin-left: 10px;
    font-weight: 500;
    cursor: pointer;
}

.tooltip-hm:hover .tooltip-content {
    display: block;
}

@media screen and (max-width: 959px) {

  .newsearchform input[type="submit"]{
    display: none;
  }

  .newsearchform input[type=text]{
    padding-right: 40px;
  }

  .chatgptsearch>.overview,
  .chatgptsearch>.chatgptresults {
    width: 100%;
  }
}

@media (max-width: 767px) {
	.search-widget {
		margin: 0 0 30px;
		padding: 10px;
	}

	.chatgpt-form.newsearchform {
		display: inline-block;
	}
	
	.chatgpt-form.newsearchform input[type=text] {
		padding: 10px;
		font-size: 14px !important;
	}
	
	.chatgpt-form.newsearchform .buttoni {
		transform: none;
		top: auto;
		right: auto;
		margin-top: 0;
	}
	
	.chatgpt-form.newsearchform .buttoni input#searchsubmit {
		display: inline-block;
		margin-top: 10px;
		text-transform: none;
		font-size: 14px;
		width: 200px;
		padding-bottom: 0.5rem !important;
	}
	
	.tooltip-hm .tooltip-content {
		right: 0;
		top: 15px;
	}
}


@media screen and (max-width: 1279px) {
  .chatgpt-answer,
  .chatgpt-articulos,
  .chatgpt-especialistas .section-results-abogas > .box-abogado,
  .chatgpt-relacionadas,
  .map-website{
    width: 100%;
  }
}