/*
 Theme Name:     classic-child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Tema hijo para https://xn--corosdeespaa-khb.com/
 Author:         Classicvet
 Author URI:     https://classicvet.com/
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

.caf-post-layout3 .caf-featured-img-box {
  height: 250px;
  }

  .author.caf-pl-0, .date.caf-pl-0{
  display:none;
  }

 .caf-post-title h2{
     line-height: 16px!important;

 }

.caf-post-layout3 #manage-post-area {
  background-image: linear-gradient(to right,#000000cf ,#000000cf);
}

.caf-filter-layout1 a {
  padding: 7px 10px;
  margin: 0px 2px;
}

.caf-mb-4 {
  margin-bottom: 14px !important;
}
#main-content .container:before {background: none;}
.et_pb_contact_field_4_tb_footer.et_pb_contact_field .input, .et_pb_contact_field_4_tb_footer.et_pb_contact_field .input[type="checkbox"] + label i, .et_pb_contact_field_4_tb_footer.et_pb_contact_field .input[type="radio"] + label i {
  background-color: #b46a5a!important;
}
.et-pb-contact-message {
  position: relative;
  Color: #fff;
  font-size: 36px;
  line-height: 1em;
}


#formulario .wpcf7 input::placeholder,
#formulario .wpcf7 textarea::placeholder{
  color: #ffffff;
  opacity: 1!important;
  font-size:12px!important;
}
#formulario .wpcf7 textarea{
      border: 0px solid;
  background-color: #b97566;
  width: 100%;
  max-height: 140px;
      padding-left: 12px;
      padding-top: 15px;
      font-size: 13px;
    color:#ffffff;
}

#formulario .wpcf7 input.prim{
    border: 0px solid;
  background-color: #b97566;
  height: 60px;
      margin-bottom: 0.9em;
      padding-left: 12px;
      font-size: 13px;
    margin-right: 4.9%;
    width: 47.5%;
    color:#ffffff;
}
#formulario .wpcf7 input.seg{
    border: 0px solid;
  background-color: #b97566;
  height: 60px;
      margin-bottom: 0.9em;
      padding-left: 12px;
      font-size: 13px;
    width: 47.5%;
    color:#ffffff;
}
#formulario .wpcf7 input.full{
    border: 0px solid;
  background-color: #b97566;
  height: 30px;
      margin-bottom: 0.9em;
      padding-left: 12px;
      font-size: 13px;
    width: 100%;
    color:#ffffff;
}
#formulario .wpcf7 input[type="submit"]{
    background-color: #b97566;
    color: #ffffff;
    float: right;
    border: inherit;
    padding: 12px;
       font-size: 13px;
}
#formulario .wpcf7 input[type="submit"]:hover {
    opacity: 0.85;
}
#formulario .wpcf7 .acceptance-672 input[type="checkbox"]{
  height: auto;
}
#formulario .wpcf7 .acceptance-672 .wpcf7-list-item{
  margin:0px;
}
#formulario .wpcf7 label{
    color: #666666;
    font-size: 16px;
  font-weight: 400;
  padding-left: 5px;
}
#formulario .wpcf7 label a{
  color: #666666;
  text-decoration: underline;
}






.et_pb_menu__search-container{
        right: 0px!important;
    width: 50%!important;
    padding-left: 30px!important;
    left: auto!important;
    background-color: beige;
}

.et_pb_menu__search-input{
    color: #5e372f!important;
}





/*Optimización DIVI 5*/

/*----------------PLANTILLA CORO-----------------*/
/* Contenedor de cada fila de contacto */
/* Contenedor fila contacto */
.contacto_row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* Iconos SVG */
.contacto_icono {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contacto_icono img {
    width: 100%;
    height: auto;
    display: block;
}

/* Texto del contacto */
.contacto_texto a {
    text-decoration: none;
    color: inherit;
}

/* Ajustes específicos según tipo (opcional) */
.contacto_telefono .contacto_texto a {
    font-weight: bold;
    color: #1a73e8; /* ejemplo color azul para teléfonos */
}

.contacto_email .contacto_texto a {
    color: #d14836; /* ejemplo color rojo para emails */
}

.contacto_direccion .contacto_texto {
    color: #333;
}


/* ================= REDES SOCIALES ================= */

.contacto_redes {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap; /* por si en móvil no caben */
}

.contacto_redes .red_social {
    display: inline-flex;
    width: 28px;
    height: 28px;
}

.contacto_redes .red_social img {
    width: 100%;
    height: auto;
    display: block;
}

/* Opcional: hover */
.contacto_redes .red_social:hover {
    opacity: 0.8;
}

/*==============================================
  FILTROS Y GRID DE COROS
==============================================*/

/* Foco visible unificado */
a:focus,
button:focus,
.filtro-select:focus,
.btn-limpiar:focus,
.page-numbers:focus,
.badge:focus {
  outline: 2px solid #1565c0;
  outline-offset: 2px;
}

/* FILTROS */
.filtros-coros-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  align-items: flex-end;
}

.filtros-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
}

.filtro-select {
  border: 1px solid #ddd;
  padding: 6px 4px;
  border-radius: 5px;
  min-width: 0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filtro-select:hover {
  border-color: #222;
}

.filtro-select:focus {
  border-color: #222; /* outline ya está en regla general */
}

.filtros-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-filtrar {
  background: #222;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-filtrar:hover {
  background: #000;
}

.btn-limpiar {
  font-size: 0.9em;
  color: #4a4a4a; /* Mejor contraste AAA */
  text-decoration: none;
  white-space: nowrap;
}

.btn-limpiar:hover {
  text-decoration: underline;
  color: #222;
}

/* CONTADOR */
.coros-resultados-info {
  margin-bottom: 20px;
  color: #666;
  font-size: 0.95rem;
}

/* GRID */
.grid-coros {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

@media (min-width: 1200px) {
  .grid-coros {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .grid-coros {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .grid-coros {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 599px) {
  .grid-coros {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* CARD */
.card-coro {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.card-coro:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* IMAGEN */
.card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 2/1;
  background: #f5f5f5;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.card-coro:hover .card-img img {
  transform: scale(1.05);
}

/* CONTENIDO */
.card-content {
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
    margin: 0 0 6px;
    font-size: .9rem;
    line-height: 1.2;
}

.card-content h3 a {
  text-decoration: none;
  color: inherit;
}

.card-content h3 a:hover {
  color: #222;
}

.card-content p {
  color: #666;
  line-height: 1.5;
  margin: 0 0 12px;
  font-size: 0.9rem;
}

@media (max-width: 599px) {
  .card-content h3 {
    font-size: 1rem;
  }
}

/* BADGES */
.card-taxonomias {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 0.7rem;
  border-radius: 12px;
  font-weight: 500;
  line-height: 1.4;
  transition: transform 0.2s;
}

.badge:hover {
  transform: translateY(-1px);
}

.badge:focus {
  transform: translateY(-1px); /* Mismo feedback que hover */
}

.badge-comunidad-autonoma {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
}

.badge-comunidad-autonoma:hover,
.badge-comunidad-autonoma:focus {
  background: #bbdefb;
  color: #0d47a1;
}

.badge-provincia {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.badge-provincia:hover,
.badge-provincia:focus {
  background: #c8e6c9;
  color: #1b5e20;
}

.badge-repertorio {
  background: #f3e5f5;
  color: #6a1b9a;
  border: 1px solid #e1bee7;
}

.badge-repertorio:hover,
.badge-repertorio:focus {
  background: #e1bee7;
  color: #4a148c;
}

.badge-tipo-coro {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffe0b2;
}

.badge-tipo-coro:hover,
.badge-tipo-coro:focus {
  background: #ffe0b2;
  color: #bf360c;
}

/* PAGINACIÓN */
.pagination-coros {
  margin-top: 40px;
  text-align: center;
}

.pagination-coros .page-numbers {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #ddd;
  margin: 0 4px;
  border-radius: 3px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}

.pagination-coros .page-numbers:hover {
  border-color: #222;
  background: #f5f5f5;
}

.pagination-coros .current {
  background: #222;
  color: #fff;
  border-color: #222;
}

.pagination-coros .dots {
  border: none;
}

/* SIN RESULTADOS */
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 1.1em;
}

.no-results p {
  margin-bottom: 20px;
}

.no-results .btn-limpiar {
  display: inline-block;
  padding: 10px 20px;
  background: #f5f5f5;
  border-radius: 5px;
  font-size: 1rem;
}

.no-results .btn-limpiar:hover {
  background: #e0e0e0;
}

/* RESPONSIVE GENERAL */
@media (max-width: 768px) {
  .filtros-coros-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filtros-group {
    width: 100%;
  }
  
  .filtro-select {
    width: 100%;
  }
  
  .filtros-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .btn-filtrar {
    flex: 1;
  }
}











/*==============================================
  SIDEBAR - NUBE DE TAXONOMÍAS
==============================================*/

.coros-sidebar-nav {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.nav-titulo {
    margin: 0 0 15px;
    font-size: 1.15rem;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.nav-nube {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0px 3px 0px 6px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nav-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.badge-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 0px 0px;
    border-radius: 50%;
    font-size: 10px;
    line-height: 18px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

/* Colores por taxonomía */
.nav-badge-repertorio {
    background: #f3e5f5;
    color: #6a1b9a;
    border-color: #e1bee7;
}
.nav-badge-repertorio:hover,
.nav-badge-repertorio.current {
    background: #6a1b9a;
    color: white;
}
.nav-badge-repertorio.current .badge-count {
    background: rgba(255,255,255,0.2);
}

.nav-badge-provincia {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}
.nav-badge-provincia:hover,
.nav-badge-provincia.current {
    background: #2e7d32;
    color: white;
}

.nav-badge-tipo-coro {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffe0b2;
}
.nav-badge-tipo-coro:hover,
.nav-badge-tipo-coro.current {
    background: #e65100;
    color: white;
}

.nav-badge-comunidad-autonoma {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}
.nav-badge-comunidad-autonoma:hover,
.nav-badge-comunidad-autonoma.current {
    background: #1565c0;
    color: white;
}

/*==============================================
  SIDEBAR - ESTADÍSTICAS
==============================================*/

.coros-sidebar-stats {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    color: white;
    text-align: center;
}

.stat-total .stat-numero {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-total .stat-label {
    font-size: 0.95rem;
    opacity: 0.95;
}

/*==============================================
  SIDEBAR - CALL TO ACTION
==============================================*/

.coros-sidebar-cta {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.cta-anadir {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.cta-icono {
    font-size: 2.3rem;
    margin-bottom: 8px;
}

.cta-titulo {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.cta-texto {
    margin: 0 0 18px;
    font-size: 0.9rem;
    opacity: 0.95;
}

.cta-boton {
    display: inline-block;
    background: white;
    color: #1a1a1a;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.cta-boton:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.cta-anadir .cta-boton {
    color: #f5576c;
}

/*==============================================
  RESPONSIVE
==============================================*/

@media (max-width: 768px) {
    .nav-nube { gap: 6px; }
    .nav-badge { padding: 5px 10px; font-size: 0.8rem; }
    .stat-total .stat-numero { font-size: 2.5rem; }
}






/*==============================================
  HERO DE TAXONOMÍA
==============================================*/

.coros-hero {
    background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
    color: white;
    padding: 20px 20px;
    margin-bottom: 40px;
    text-align: center;
}

/* Variantes por taxonomía */
.coros-hero[data-taxonomy="repertorio"] { background: linear-gradient(135deg, #6a1b9a, #ab47bc); }
.coros-hero[data-taxonomy="provincia"]  { background: linear-gradient(135deg, #2e7d32, #66bb6a); }
.coros-hero[data-taxonomy="tipo-coro"]  { background: linear-gradient(135deg, #e65100, #ff9800); }
.coros-hero[data-taxonomy="comunidad-autonoma"] { background: linear-gradient(135deg, #1565c0, #42a5f5); }

.coros-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.coros-hero-icono {
    font-size: 3.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.coros-hero-breadcrumb {
    margin-bottom: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.coros-hero-breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.coros-hero-breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.separator {
    margin: 0 8px;
    opacity: 0.6;
}

.coros-hero-titulo {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.coros-hero-stats {
    margin: 25px 0;
}

.hero-stat {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 30px;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
}

.hero-stat strong {
    font-size: 1.4rem;
    margin-right: 5px;
}

.hero-btn {
    display: inline-block;
    background: white;
    color: #1565c0;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Colores de botón por taxonomía */
.coros-hero[data-taxonomy="repertorio"] .hero-btn { color: #6a1b9a; }
.coros-hero[data-taxonomy="provincia"] .hero-btn  { color: #2e7d32; }
.coros-hero[data-taxonomy="tipo-coro"] .hero-btn  { color: #e65100; }
.coros-hero[data-taxonomy="comunidad-autonoma"] .hero-btn { color: #1565c0; }

/* Responsive */
@media (max-width: 768px) {
    .coros-hero { padding: 40px 20px; }
    .coros-hero-titulo { font-size: 2rem; }
    .coros-hero-icono { font-size: 2.8rem; }
}

@media (max-width: 480px) {
    .coros-hero-titulo { font-size: 1.6rem; }
    .hero-btn { padding: 10px 25px; }
}