/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

.no-margin-bottom {
    margin-bottom: 0 !important;
}

/* .headline{
    display: inline-block;
  background: #6a1b9a;
  padding: 40px 48px 24px;
  border-radius: 48px;
  position: relative;
}

.headline h1 {
  margin: 0;
  color: white;
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 800;
  line-height: 1.05;
}

.headline::after {
  content: "";
  position: absolute;
  inset: -40px;
  background: rgba(255, 62, 251, 0.9);
  filter: blur(80px);
  z-index: -1;
  border-radius: 80px;
}

.headline h1 span {
  display: inline-block;
  margin-top: 32px;
  padding: 24px 48px;
  background: linear-gradient(
    180deg,
    #b832e5,
    #ff3efb
  );
  border-radius: 40px;
  position: relative;
  box-shadow:
    0 0 40px rgba(255, 62, 251, 0.9),
    inset 0 0 20px rgba(255,255,255,0.3);
} */

.gform-theme--foundation .gform_fields {
    grid-row-gap: 15px !important;
}

/* === CARRUSEL DE IMÁGENES CON SWIPER.JS === */
/* Contenedor general */
.rg-carousel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    text-align: center;
}

/* Swiper */
.rg-carousel-inner {
    width: 100%;
    padding: 20px 0;
}

/* === TARJETAS LATERALES === */
.rg-carousel-slide {
    width: 260px;
    /* ancho de las tarjetas laterales */
}

.rg-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 8px solid #ffffff;
    height: 520px;
    /* altura lateral */
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        height 0.3s ease,
        width 0.3s ease;
}

.rg-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === TARJETA CENTRAL (ACTIVA) === */
.rg-carousel-inner .swiper-slide-active {
    width: 400px !important;
    /* ancho solicitado */
}

.rg-carousel-inner .swiper-slide-active .rg-card {
    height: 600px;
    /* altura solicitada */
    transform: scale(1.02);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
}

/* Flechas */
.rg-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.rg-carousel-btn {
    border: none;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    background: #828282;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: 0.2s ease;
}

.rg-carousel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .rg-carousel-slide {
        width: 75%;
    }

    .rg-card {
        height: 420px;
    }

    .rg-carousel-inner .swiper-slide-active {
        width: 90% !important;
    }

    .rg-carousel-inner .swiper-slide-active .rg-card {
        height: 500px;
    }
}

/* Card hover effect */
.card-container {
    width: 100%;
    perspective: 1000px;
}

.card {
    width: 100%;
    height: 383px;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card.open {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    position: absolute;
    backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

}

.card-front {
    background: #009D92;
}

.card-front img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-back {
    background: #009D92;
    color: white;
    transform: rotateY(180deg);
    padding: 20px;
}

.btn {
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #009D92;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    height: 50px;
}

.btn:hover {
    background: #009D92;
}


/* Ocultar contenido no activo */

.custom-tabs-nav{
    display:flex;
    flex-direction: column;
    width: 50%;
    align-items: flex-start;
}
.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Estilo básico para los botones */
.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    color:black;
    margin-right: 5px;
}

.tab-link.active {
    background: #222;
    /* Color de GeneratePress */
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}