/* 
Theme Name: Auditorio Cartuja
Description: Child theme of Hello Elementor
Template: hello-elementor
Version: 1.0.0
Text Domain: auditorio
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* =========================
   Newsletter / CF7
   ========================= */

.newsletter-ac .wpcf7-form .label-ac,
.wpcf7-acceptance label,
.wpcf7-acceptance label a {
  color: #979797;
  font-size: 13px;
}

.wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
}

.wpcf7-acceptance label a {
  text-decoration: underline;
}

.newsletter-ac .wpcf7-acceptance label input {
  margin-right: 10px;
  margin-top: 3px;
}

.wpcf7-form p {
  margin-bottom: 0 !important;
}

.wpcf7-list-item {
  padding-left: 0;
  margin-left: 0;
}

.wpcf7-submit {
  font-weight: 700;
}

/* Ocultar label visualmente, pero mantenerlo accesible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contenedor general */
.newsletter-ac {
  width: 100%;
}

/* Campo con botón encima del input */
.newsletter-ac__field {
  position: relative;
  width: 100%;
  min-height: 48px;
}

/* Evita que los <p> automáticos de CF7 rompan la altura */
.newsletter-ac__field p {
  margin: 0 !important;
  padding: 0;
  line-height: 0;
}

/* Wrapper del campo generado por CF7 */
.newsletter-ac__field .wpcf7-form-control-wrap {
  display: block;
  position: relative;
}

/* Input */
.newsletter-ac__input {
  width: 100%;
  height: 48px;
  padding: 0 56px 0 16px;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  font-size: 15px;
  line-height: 48px;
  box-sizing: border-box;
}

/* Botón integrado */
.newsletter-ac__submit {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #000;
  cursor: pointer;

  text-indent: -9999px;
  overflow: hidden;

  background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 2L11 13' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M22 2L15 22L11 13L2 9L22 2Z' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 19px 19px;

  transition: opacity 0.2s ease, background-color 0.2s ease;
  transform: none;
}

.newsletter-ac__submit:hover,
.newsletter-ac__submit:focus {
  opacity: 0.85;
  transform: none;
}

/* Ocultar spinner nativo de CF7 */
.newsletter-ac .wpcf7-spinner {
  display: none !important;
}

/* Estado enviando: usamos el avión como indicador visual */
.wpcf7-form.submitting .newsletter-ac__submit {
  pointer-events: none;
  opacity: 0.65;
  animation: newsletter-plane-loading 0.8s ease-in-out infinite alternate;
}

/* Importante: sin translateY */
@keyframes newsletter-plane-loading {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(4px);
  }
}

/* Texto legal / aceptación */
.newsletter-ac__acceptance {
  margin-top: 15px;
  font-size: 13px;
  line-height: 1.4;
}

.newsletter-ac__acceptance a {
  text-decoration: underline;
}

/* Mensaje de error de validación */
.newsletter-ac .wpcf7-not-valid-tip {
  font-size: 12px;
  display: block;
  margin-top: 5px;
  line-height: 1.2;
}

/* Mensaje general de CF7: enviado correctamente / error general */
.newsletter-ac .wpcf7-response-output {
  margin: 12px 0 0 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 6px;
}

#form-newsletter .wpcf7-response-output {
    margin: 15px 0 0 0;
    padding:10px;
    color: #dcdcdc;
    font-size: 13px;
}

.paragraph-mb0 p {
    margin-bottom: 0;
}

/* Encabezados del contenido */
#post-content h2,
#post-content h3,
#post-content h4 {
  font-weight: bold;
}

#post-content h2 {
    font-size: 30px;
    line-height: 1.2;
    margin-top: 45px;
}

#post-content h3 {
    font-size: 24px;
    line-height: 1.3;
    margin-top: 35px;
}

#post-content h4 {
    font-size: 20px;
    line-height: 1.4;
    margin-top: 30px;
}

#post-content table {
    margin: 30px 0;
}
#post-content ul {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

#post-content ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
}

#post-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #AD4500; 
    transform: translateY(-50%);
}
#post-content img,
#post-content figure {
    margin: 20px 0;
}

#post-content a {
    text-decoration: underline;
    color: #AD4500;
}

#post-content .wp-block-button__link.wp-element-button {
    background-color: #f5b000;
    border-radius: 0px 0px 0px 0px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
}
.logo-bg {
    overflow: hidden;
}
.logo-bg::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px;
    height: 1000px;
    background: url("/wp-content/themes/auditorio-cartuja/assets/img/logo-bg.webp") no-repeat center;
    opacity: 0.08;
    background-size: contain;
    transform: translate(-60%, -50%);
    pointer-events: none;
    z-index: 1;
}

.rank-math-breadcrumb a {
  color: #000;
  text-decoration: underline;
}
.rank-math-breadcrumb {
  margin-bottom: -10px;
}
.rank-math-breadcrumb p {
  margin-bottom: 0;
}
.single-event .page_content_wrap {
    margin: 100px 0;
}

/* =========================
   Events Manager
   ========================= */

.em.em-list.em-grid>div.em-item {
  box-shadow: none;
}

.em.em-list.em-grid .em-item-image-wrapper {
  position: relative !important;
  height: auto!important;
  padding: 10px;
}

.em.em-list.em-grid>div.em-item .em-item-image {
  height: auto!important;
}
.em.em-list.em-grid .em-item-image-wrapper img {
    position: relative!important;
    height: auto!important;
    width: 100%!important;
}

.button-primary {
    background-color: #f5b000!important;
    color: #000!important;
    font-weight: 700;
    border-color: #f5b000!important;
    font-size: 15px;
}

.fecha-loop {
  font-size: 11px !important;
  text-transform: capitalize;
  font-weight: 600;
  color: #282828;
  width: 100%;
  min-width: 100% !important;
  max-width: 100%;
  display: block !important;
}

.fecha-loop,
.fecha-loop div {
  width: 100% !important;
  min-width: 100%;
  max-width: 100%;
}

.fecha-loop div {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  position: relative;
  align-items: center;
}

.linea-fecha {
  border: 1px solid #f3f3f3;
  border-bottom: 0 !important;
  display: block;
  margin-bottom: 20px !important;
}

.fecha-loop .elementor-shortcode {
  display: flex;
  align-items: center;
}
.em.em-list.em-grid>div.em-item .em-item-info .em-item-title {
    font-size: 16px;
  line-height: 1 !important;
}
.em.em-list.em-grid>div.em-item .em-item-info .em-item-title a {
    font-weight: 700;
  color: #000 !important;
    background-color: transparent !important;
    font-size: 16px;
  line-height: 0.9 !important;
}

.em .em-pagination .page-numbers {
  height: 40px !important;
  color: #282828 !important;
}

.em .em-pagination .page-numbers.current {
  text-decoration: none !important;
    text-underline-offset: 5px;
}

.em-event.em-item {
  border: 1px solid #c8c8c8 !important;
    border-radius: 0;
}

.em.em-list.em-grid .em-item .em-item-info, .em.em-list.size-small .em-item .em-item-info {
  border-top: none !important;
}


.em-item-info .em-item-meta-line{
  color: #000;
}

.em-event-meta div:last-child {
  margin-bottom: 0 !important;
}

.em-category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.em-category-buttons .em-category-button {
  padding: 5px 25px;
  border-radius: 50px;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 13px;
}
.em-category-buttons .em-category-button:hover {
  color: #fff;
}

.calendar-icon {
  background-image: url("/wp-content/themes/auditorio-cartuja/assets/img/calendar.svg");
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  display: block;
  position: relative;
  background-size: 100%;
  margin-right: 10px;
}

.em-category-button-programacion {
  background-color: #f5b000;
  color: #000;
  display: flex;
  align-items: center;
}

.em-category-button-programacion:hover {
 color: #000 !important;
 text-decoration: underline;
}

.em-category-button-programacion svg {
  margin-left: 5px;
  width: 10px;
}

.em-date-input:focus-visible,
.em-search-text:focus-visible {
  outline: 2px solid #cb9100;
  outline-offset: 2px;
  border-radius: 0!important;
}

.em.em-list.em-grid{
    /* grid-template-columns: repeat(5, 1fr) !important; */
    grid-gap: 15px;
}

.comprar-entradas-cat-button {
  padding: 0 25px !important;
  background-color: transparent !important;
  color: #000 !important;
  font-family: "Raleway", Sans-serif;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  display: block;
  height: auto;
}

.em-event-meta.em-item-meta {
  margin-bottom: 0 !important;
}

.comprar-entradas {
  font-weight: 700;
  color: #000 !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.em.em-list.em-grid>div.em-item {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.comprar-entradas:hover,
.em.em-list.em-grid>div.em-item:hover {
  /* Sombra compartida para tarjetas y botón de compra */
  box-shadow: rgba(50, 50, 93, 0.1) 0 13px 27px -5px,
              rgba(0, 0, 0, 0.1) 0 8px 16px -8px;
  transform: translateY(-2px);
}

.comprar-entradas .elementor-button-content-wrapper {
  display: flex;
  align-items: center;
}

/* =========================
   Contacto / CF7
   ========================= */


.cf7-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}
.cf7-col {
  width: 50%;
}
.cf7-col-full p,
.cf7-col p {
    margin: 0;
    padding: 0;
}
.wpcf7-not-valid-tip {
    font-size: 13px;
    margin-left: 10px;
}
.cf7-col-full {
  width: 100%;
}
.wpcf7 .wpcf7-submit:disabled {
    cursor: not-allowed!important;
}
#wpcf7-f1382-o2 input[type="submit"][disabled],
#wpcf7-f734-p872-o1 input[type="submit"][disabled] {
    color: #000;
    opacity: 0.6;
    border-color: #f5b000!important;
    background: #f5b000!important;
}
.wpcf7-form textarea {
    height: 150px;
}

#wpcf7-f1382-o2 textarea {
  height: 70px;
}
.wpcf7-response-output {
    font-size: 14px;
    border-radius: 5px;
}
/* Inputs, textarea y select al 100% */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="url"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
}
.contact__acceptance .wpcf7-acceptance label {
  display: flex;
  align-items: center;
  color: #000;
  font-size: 13px;
  line-height: 1.4;
}
.contact__acceptance .wpcf7-acceptance label a {
  color: #000;
  text-decoration: underline;
  font-size: 13px;
}
.contact__acceptance .wpcf7-list-item-label {
  align-items: center;
  color: #000;
  margin-left: 10px;
}
#wpcf7-f1382-o2 .wpcf7-submit,
#wpcf7-f734-p872-o1 .wpcf7-submit {
  padding: 10px 25px;
  font-size: 14px;
  border: 0;
}

#wpcf7-f734-p872-o1 .wpcf7-submit:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
  border-radius: 0!important;
}

#lista-contacto .elementor-inline-items {
  gap: 10px!important;
}

#wpcf7-f734-p872-o1  .wpcf7-form input[type="text"],
#wpcf7-f734-p872-o1  .wpcf7-form input[type="email"],
#wpcf7-f734-p872-o1  .wpcf7-form input[type="tel"],
#wpcf7-f734-p872-o1  .wpcf7-form textarea {
  border: 0;
  border-radius: 0;
}



@media (max-width: 767px) {
  .br-hide {
    display: none;
  }
}