/* Estructura base del paragraph Quotes */
.paragraph--quotes {
  padding: 60px 0;
  background: #ffffff;
  position: relative;
  z-index: 0;
}

.quotes-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Estilos del título y subtítulo */
.quotes-title {
  text-align: left;
  font-size: 7.2rem;
  min-width: 410px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #003883;
  display: inline-block;
  border-top: 4px solid #003883;
}

.quotes-subtitle {
  text-align: center;
  font-size: 2.8rem;
  color: #003883;
  margin-bottom: 40px;
  max-width: 800px; 
  text-align: left;
  max-width: 410px;
}

/* Configuración básica del Swiper */
.quotes-slider.swiper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 20px 0 60px;
}

.swiper-wrapper {
  display: flex;
  height: auto !important;
}

.swiper-slide {
  height: auto;
  flex-shrink: 0;
  width: 100%;
  position: relative;
}

.swiper-slide .paragraph{
	width: calc(100% - 240px); 
	max-width: 100%;
	margin: 30px auto;
	background: #EFEFEF;
	background: linear-gradient(90deg, rgba(239, 239, 239, 1) 0%, rgba(255, 255, 255, 1) 100%);
	padding: 80px 60px 40px 60px;
	border-radius: 20px;
	min-height: calc(100% - 60px);
	display: flex;
	align-content: center;
	
}

/* Estilos de los items individuales */
.paragraph--quote-item {
  height: 100%;
}

.quote-item-inner {
  text-align: center;
  padding: 40px;
  background: #fff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.quote-logo {
  max-width: 120px;
  margin: 0 auto 20px;
}

.quote-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.quote-title {
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.1em;
}

.quote-text {
  font-style: italic;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Navegación del Swiper */
.quotes-slider .swiper-button-next,
.quotes-slider .swiper-button-prev {
  color: #333;
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.quotes-slider .swiper-button-prev {
  left: 10px;
}

.quotes-slider .swiper-button-next {
  right: 10px;
}

.quotes-slider .swiper-button-next:after,
.quotes-slider .swiper-button-prev:after {
  font-size: 24px;
}

/* Paginación del Swiper */
.quotes-slider .swiper-pagination {
  bottom: 40px!important;
  position: absolute;
	width: calc(100% - 240px)!important;
	left: 120px!important;
	text-align: right;
}

.quotes-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #082A6A;
  opacity: 1;
}

.quotes-slider .swiper-pagination-bullet-active {
  background: #4DAABD;
}

/* Ajustes de campos de Drupal */
.paragraph--quotes .field__label,
.paragraph--quote-item .field__label {
  display: none;
}

.paragraph--quotes .field__item {
  margin: 0;
}

.paragraph--quotes .field__items {
  margin: 0;
  padding: 0;
}

/* Ajustes responsive */
@media (max-width: 768px) {
  .quotes-title {
    font-size: 2em;
  }

  .quote-item-inner {
    padding: 30px 20px;
  }

  .quotes-slider .swiper-button-next,
  .quotes-slider .swiper-button-prev {
    width: 30px;
    height: 30px;
  }

  .quotes-slider .swiper-button-next:after,
  .quotes-slider .swiper-button-prev:after {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .quotes-title {
    font-size: 1.8em;
  }

  .quotes-subtitle {
    font-size: 1em;
  }

  .quote-item-inner {
    padding: 20px 15px;
  }
}


/* Container styles */
.paragraph--type--quote-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

/* Quote text styles - 70% width */
.paragraph--type--quote-item .field--name-field-quote-text {
    flex: 0 0 70%;
    max-width: 70%;
    order: 1;
}

/* Logo and title container styles */
.paragraph--type--quote-item .field--name-field-logo,
.paragraph--type--quote-item .field--name-field-quote-title { 
    max-width: 96%;
    text-align: center;
}

/* Set the order for logo and title */
.paragraph--type--quote-item .field--name-field-logo {
    order: 2;
}

.paragraph--type--quote-item .field--name-field-quote-title {
    order: 3;
    margin-top: 10px;
    font-weight: bold;
    font-size: 2.5rem;
    color: #082A6A;
}

/* Logo image styles */
.paragraph--type--quote-item .field--name-field-logo img {
    max-width: 100%;
    height: auto;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    .paragraph--type--quote-item .field--name-field-quote-text,
    .paragraph--type--quote-item .field--name-field-logo,
    .paragraph--type--quote-item .field--name-field-quote-title {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .paragraph--type--quote-item .field--name-field-quote-text {
        margin-bottom: 20px;
    }
} 

/* Container styles */
.paragraph--type--quote-item {
    width: 960px;
    margin: 30px auto;
    background: linear-gradient(90deg, rgba(239, 239, 239, 1) 0%, rgba(255, 255, 255, 1) 100%);
    padding: 40px;
    border-radius: 20px;
}

/* Quote content wrapper */
.quote-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

/* Quote text styles - 70% width */
.field--name-field-quote-text {
    flex: 0 0 70%;
    max-width: 70%;
}

/* Right side info container */
.quote-info {
    flex: 0 0 calc(30% - 30px);
    max-width: calc(30% - 30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    order: 2;
}

/* Logo styles */
.field--name-field-logo {
    width: 100%;
    text-align: center;
}

.field--name-field-logo img {
    max-width: 100%;
    height: auto;
}

/* Title styles */
.field--name-field-quote-title {
    width: 100%;
    text-align: center;
    font-weight: bold;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    .paragraph--type--quote-item {
        width: 100%;
        padding: 20px;
        margin: 15px auto;
    }

    .quote-content {
        flex-direction: column;
        gap: 20px;
    }

    .field--name-field-quote-text,
    .quote-info {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Quote text styles - 70% width */
.field--name-field-quote-text { 
    font-size: 2.333rem;
    line-height: 140%;
    color: #082A6A;
    font-style: italic;
} 


.quotes-container .swiper-button-next:after, 
.quotes-container .swiper-button-prev:after{
	color: #082A6A;
}

.quotes-container .swiper-button-prev:after{ margin-left: -4px; }
.quotes-container .swiper-button-next:after{ margin-right: -4px; }

.quotes-slider .swiper-button-next, 
.quotes-slider .swiper-button-prev{
	box-shadow: none;
	border:2px solid #082A6A;
	width: 46px;
	height: 46px;
}

.quotes-slider-outer{
	position: relative;
}
.quotes-slider-outer svg{
	    position: absolute;
    left: 180px;
    z-index: 4;
    top: 30px;
}



@media screen and (max-width: 991px) {
	.quote-content{ display: block; text-align: center; }
	.paragraph--type--quote-item .field--name-field-quote-text{ max-width: 100%; }
	.quote-info{ max-width: 100%; }
	.paragraph--type--quote-item .field--name-field-logo img{ width: 200px; }
	.swiper-slide .paragraph{ width: calc(100% - 150px); }
	.field--name-field-quote-text{ font-size: 2rem; }
	.quotes-slider .swiper-pagination { width: calc(100% - 150px)!important; }
}

@media screen and (max-width: 600px) {
	
	.swiper-slide .paragraph{ width: 100%; padding-left: 30px; padding-right: 30px;  }
	.quotes-slider .swiper-pagination { width: 100%!important; left: 0px!important; text-align: center; }
	.quotes-slider .swiper-button-next, .quotes-slider .swiper-button-prev{ display: none; }
	
}




/* ============================================================
   REDESIGN (preview con ?redesign=1) — Quotes / Testimonials
   CSS plano (quotes13.css se mantiene a mano). Scopeado body.redesign.
   Para PUBLICAR: quitar el prefijo body.redesign.
   ============================================================ */
/* Fondo azul (igual que FAQs) */
body.redesign .paragraph--quotes {
  background: #073883;
}

/* Título y subtítulo centrados, sin borde superior, en blanco */
body.redesign .quotes-title {
  display: block;
  text-align: center;
  border-top: none;
  min-width: 0;
  color: #fff;
}
body.redesign .quotes-subtitle {
  text-align: center;
  color: #fff;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* Flechas: SVG propios (arr-left / arr-right), círculo con borde claro */
body.redesign .quotes-slider .swiper-button-prev,
body.redesign .quotes-slider .swiper-button-next {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
  width: 46px;
  height: 46px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px auto;
}
body.redesign .quotes-slider .swiper-button-prev {
  background-image: url(../../images/arr-left.svg);
}
body.redesign .quotes-slider .swiper-button-next {
  background-image: url(../../images/arr-right.svg);
}
body.redesign .quotes-slider .swiper-button-prev::after,
body.redesign .quotes-slider .swiper-button-next::after {
  content: '';
  display: none;
}

/* Bullets centrados; inactivos en blanco, activo teal */
body.redesign .quotes-slider .swiper-pagination {
  width: 100% !important;
  left: 0 !important;
  text-align: center;
}
body.redesign .quotes-slider .swiper-pagination-bullet {
  background: #fff;
  opacity: 1;
}
body.redesign .quotes-slider .swiper-pagination-bullet-active {
  background: #4daabd;
}

/* Efecto 3D: borde con radius desplazado DETRÁS de la caja */
body.redesign .swiper-slide .paragraph {
  position: relative;
  z-index: 1;
}
body.redesign .swiper-slide::after {
  content: '';
  position: absolute;
  left: 120px;
  right: 120px;
  top: 30px;
  bottom: 30px;
  border: 2px solid #4daabd;
  border-radius: 20px;
  transform: translate(-10px, 14px);
  z-index: 0;
  pointer-events: none;
}
@media screen and (max-width: 991px) {
  body.redesign .swiper-slide::after {
    left: 75px;
    right: 75px;
  }
}
@media screen and (max-width: 600px) {
  body.redesign .swiper-slide::after {
    display: none;
  }
}

/* Caja de la quote: fondo al 95% (deja transparentar un poco el azul) */
body.redesign .swiper-slide .paragraph {
  background: linear-gradient(90deg, rgba(239, 239, 239, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
}
