:root {
    --primary-beige: #d4b896;
    --primary-light-beige: #e6d3b7;
    --primary-dark-beige: #c2a373;
    --accent-brown: #8b6f47;
    --text-dark: #2c2c2c;
    --text-light: #958b8b;
    --white: #ffffff;
    --bg-cream-1: #f0ca8c;
    --bg-cream-2: #f0eae0;
    --bg-cream-3: #ede6db;
    --font-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --font-weight-bold: 700;
    --font-weight-medium: 500;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 20px;
    --border-radius-xl: 50px;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
/* Hero Section General */
.testimonials-hero {
    position: relative;
    width: 100%;
    /* En PC mantenemos un alto, pero usamos min-height */
    min-height: 400px; 
    height: 85vh; 
    background-color: #fdf9f0; /* Color crema exacto de tu imagen para que no haya saltos */
    overflow: hidden;
}

.hero-team-image {
    width: 100%;
    height: 100vh;
}

.hero-bg-img {
    width: 100vw;
    height: 100vh;
    /* "contain" para que se vea TODA la imagen siempre */
    object-fit: contain; 
    object-position: center;
}

/* === AJUSTES RESPONSIVE === */

/* === AJUSTES RESPONSIVE === */

@media (max-width: 1024px) {
    .testimonials-hero {
        /* Obligamos al contenedor a medir lo mismo que la imagen, 
           así eliminamos el espacio vacío de abajo */
        height: auto !important; 
        min-height: auto !important;
    }

    .hero-team-image {
        /* Permitimos que el contenedor de la imagen colapse al alto real */
        height: auto !important;
    }

    .hero-bg-img {
        /* Forzamos a que la imagen dicte el alto y se vea completa */
        height: auto !important;
        width: 100% !important;
        object-fit: contain !important;
        padding-top: 10px !important;
    }
}

/* === CORRECCIÓN ESPECÍFICA PARA TABLETS (651px - 1024px) === */

@media (min-width: 651px) and (max-width: 1024px) {
    .testimonials-hero {
        /* Damos un alto automático para que el contenedor respete el padding */
        height: auto !important;
        min-height: auto !important;
        
        /* AÑADIMOS EL AIRE QUE FALTA:
           - 30px arriba (para separarlo del header)
           - 20px a los lados (para que no toque los bordes)
           - 10px abajo (para separarlo del texto siguiente)
        */
        padding: 30px 20px 10px !important; 
    }

    .hero-team-image {
        /* Centramos el contenedor de la imagen */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        height: auto !important;
    }

    .hero-bg-img {
        /* Mantenemos la imagen completa y centrada */
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }
}

/* === AJUSTES RESPONSIVE === */

@media (max-width: 768px) {
     .testimonials-hero {
        height: auto !important;
        min-height: auto !important;
        padding-top: 60px !important;
        background-color: #fdf9f0;
        display: flex !important;
        flex-direction: column;
        align-items: center;
      }

      .hero-team-image {
         position: relative !important;
         width: 100vw !important;
         height: auto !important;
       }

     .hero-bg-img {
        width: 100vw !important;
        object-fit: contain !important;
        display: block;
        height: auto !important;
      }

    .hero-content-overlay {
        /* 5. Si tienes el texto "Testimonios" aquí, lo ocultamos o 
           lo ponemos debajo para que no tape las caras en móvil */
        position: relative !important;
        padding: 20px 0 !important;
        text-align: center;
        justify-content: center;
        display: block !important;
    }
}
}

/* Sección de Carrusel de Videos */
.carousel-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #faf8f5 0%, #ffffff 100%);
}

.carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-title {
    text-align: center;
    font-size: 3.2rem;
    font-weight: 400;
    color: #5C2E1F;
    margin-bottom: 50px;
    font-family: 'DreamCottage' !important;
    margin: 94px 0px;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.carousel-track-container {
    overflow: visible;
    flex: 1;
    display: flex;
    justify-content: center;
}

.carousel-track {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.carousel-item {
    flex-shrink: 0;
    width: 180px;
    transition: all 0.4s ease;
    cursor: pointer;
    opacity: 0.7;
}

.carousel-item.active {
    width: 350px;
    opacity: 1;
}

.carousel-item-inner {
    position: relative;
    width: 100%;
    padding-bottom: 143%;
    overflow: hidden;

}

.carousel-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-sound-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.video-sound-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.carousel-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-light-beige);
    transform: scale(1.1);
}

.carousel-btn svg {
    color: var(--text-dark);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-brown);
    width: 30px;
    border-radius: 5px;
}

/* === AGREGAR al final de tu CSS existente === */

@media (max-width: 768px) {

    .carousel-section {
        overflow: hidden;
    }

    .carousel-track-container {
        overflow: hidden !important;
        flex: 1;
    }

    .carousel-wrapper {
        gap: 8px;
    }

    .carousel-btn {
        display: flex !important;
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .carousel-track {
        /* justify-content: center para que el track empiece centrado */
        justify-content: center;
        gap: 12px;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }

    .carousel-item {
        flex-shrink: 0;
        width: calc(100vw - 120px);
        opacity: 0.5;
        transform: scale(0.93);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .carousel-item.active {
        width: calc(100vw - 120px);
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .carousel-item,
    .carousel-item.active {
        width: calc(100vw - 96px);
    }
}







.testimonials-section{
    background: none !important;
}

/* Sección de Testimonios con Texto */
.testimonials-text-section {
    padding: 60px 0;
    background: #faf8f5;
}

.testimonials-text-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-text-title {
    text-align: center;
    font-size: 3.2rem;
    font-weight: 400;
    color: #5C2E1F;
    margin-bottom: 50px;
    font-family: 'DreamCottage' !important;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    min-height: 380px;  /* AGREGAR ESTA LÍNEA */
}

.testimonial-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    display: none;  /* CAMBIAR de "flex" a "none" */
    flex-direction: column;
    gap: 25px;
    transition: all 0.3s ease;
    aspect-ratio: 1;
    opacity: 0;  /* AGREGAR ESTA LÍNEA */
    animation: fadeIn 0.5s ease forwards;  /* AGREGAR ESTA LÍNEA */
}

/* AGREGAR ESTE BLOQUE COMPLETO DESPUÉS DEL .testimonial-card */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 3px 0;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--accent-brown);
    width: 30px;
    border-radius: 5px;
}

/* Nueva Sección: Experimenta el Arte */
.experience-section {
    padding: 80px 0;
    background:#5B0010; 
}

.experience-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.experience-images {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
}

.experience-image-1 {
    position: absolute;
    left: 0;
    top: -20px;
    width: 200px;
    height: 280px;
    border-radius: 20px;
    overflow: visible;
    z-index: 2;
}

.experience-image-1 img {
    width: 250px;
    height: 350px;
    display: block;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.experience-image-2 {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 320px;
    border-radius: 25px;
    background: #FFF;
    padding: 20px;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.experience-image-2 img {
    width: 250px;
    height: 390px;
    display: block;
    object-fit: cover;
    border-radius: 15px 15px 55px 55px;
    position: relative;
    top: -50px;
    right: -80px;
    padding-bottom: 40px;
}

.experience-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.experience-brand {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--accent-brown);
    letter-spacing: 3px;
    margin: 0;
}

.experience-title {
    color: #FFFFFF;
    font-size: 2rem; /* Ajusta según tu diseño */
    font-family: 'DreamCottage' !important;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinea el bloque a la izquierda */
    gap: 10px;
    font-weight: 100;
}

/* El bloque blanco/crema solicitado */
.font-dream-block {
    background-color: #FFF7F2;
    color: #5B0010;
    font-family: 'DreamCottage', cursive !important;
    padding: 5px;
    border-radius: 15px;
    font-size: 2.5rem;
    display: inline-block;
    font-weight: normal;
}

.experience-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #ffff;
  margin: 0;
  font-family: 'Roboto' !important;
  font-weight: 300;
}

.experience-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.contact-icon {
  width: 38px;
  height: 38px;
  background: #fff;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
}

.contact-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.contact-label {
    font-size: 1.1rem;
    color: #FFFFFF !important;
    font-family: 'Roboto' !important;
    font-weight: 300;
}

.contact-number {
    font-size: 1.1rem;
    font-weight: 300;
    color: #ffff !important;
    font-family: 'Roboto' !important;
}

/* ── Agrega esto al final de tu CSS, desktop no se toca ── */

@media (max-width: 1024px) {
    .experience-container {
        gap: 30px;
    }
    .experience-image-2 {
        width: 300px;
    }
    .experience-image-2 img {
        right: -40px;
    }
}

@media (max-width: 768px) {
    .experience-section {
        padding: 50px 0;
    }

    .experience-container {
        grid-template-columns: 1fr;  /* Una sola columna */
        gap: 0;
        padding: 0 20px;
    }

    /* Imágenes apiladas y centradas */
    .experience-images {
        height: 320px;
        width: 100%;
        justify-content: center;
        margin-bottom: 40px;
    }

    .experience-image-1 {
        left: 20px;
        top: 0;
    }

    .experience-image-1 img {
        width: 160px;
        height: 230px;
    }

    .experience-image-2 {
        width: 200px;
        height: 240px;
        right: 20px;
        padding: 12px;
    }

    .experience-image-2 img {
        width: 160px;
        height: 260px;
        top: -30px;
        right: -30px;
        padding-bottom: 20px;
    }

    /* Contenido centrado en móvil */
    .experience-content {
        align-items: center;
        text-align: center;
    }

    .experience-title {
        align-items: center;
        font-size: 1.7rem;
    }

    .font-dream-block {
        font-size: 2rem;
    }

    .experience-description {
        font-size: 0.95rem;
    }

    .experience-contact {
        justify-content: center;
    }
}

/* --- SECCIÓN FORMULARIO MEJORADA --- */

.comment-form-section {
    padding: 80px 0; /* Más aire arriba y abajo */
    background: #FDF7F2;
}

.comment-form-container {
    max-width: 1400px; /* Aumentamos el ancho máximo para que se vea más amplio */
    margin: 0 auto;
    padding: 0 40px;
}

.comment-form-content {
    display: grid;
    /* Ajustamos las columnas: la imagen toma un poco menos que el formulario para dar amplitud */
    grid-template-columns: 0.9fr 1.1fr; 
    align-items: center;
    gap: 50px; /* Más espacio entre imagen y texto */
}

/* Imagen del equipo */
.form-team-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.form-team-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    /* Eliminamos bordes extraños para que se integre al fondo */
}

/* Contenedor de los inputs */
.comment-form-wrapper {
    padding: 20px; /* Menos padding interno para que los inputs se expandan más */
}

.form-title {
    font-size: 2.2rem; /* Un poco más grande como en la referencia */
    font-weight: 400;
    color: #5B0010; /* Color vino de la marca */
    margin-bottom: 5px;
    text-align: left;
    letter-spacing: 4px;
    font-family: var(--font-primary); /* Respetando tu font */
}

.form-subtitle {
    font-size: 2.5rem; /* Título grande y elegante */
    color: #5B0010;
    text-align: left;
    font-family: 'DreamCottage' !important; /* O la que uses para títulos elegantes */
    margin-bottom: 30px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Inputs con diseño de la referencia */
.form-input, .form-textarea {
    width: 100%;
    padding: 18px 25px; /* Más altos para que se vean modernos */
    border: 1.5px solid #5B0105;
    border-radius: 20px; /* Bordes más redondeados como la imagen 2 */
    font-size: 1.1rem;
    font-family: 'Segoe UI', sans-serif;
    background: #FFFFFF;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #5B0105;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #5B0105;
    opacity: 0.7;
}

/* Rating y Botón */
.form-rating {
    display: flex;
    justify-content: space-between; /* Separa el rating del botón */
    align-items: center;
}

.rating-container-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-label {
    font-family: 'Roboto' !important;
    font-size: 1.1rem;
    color: #5B0010;
    font-weight: 400;
    white-space: nowrap;
}
 
/* Contenedor de estrellas: fila, sin saltos */
#ratingStars {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}
 
.rating-star {
    font-size: 2.2rem;
    line-height: 1;
    color: #5B0010;                    /* gris por defecto — vacía */
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
    display: inline-block;
}
 
/* Hover sobre el contenedor: preview amarillo */
.rating-star.hovered {
    color: #5B0010;
    transform: scale(1.2);
}
 
/* Click confirmado: dorado más intenso */
.rating-star.active {
    color: #5B0010;
    transform: scale(1.15);
}
 
/* Botón Enviar */
.form-submit-btn {
    padding: 12px 60px;
    background: #5B0010;
    color: #FFFFFF;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Roboto' !important;
    font-weight: 300;
    white-space: nowrap;
}
 
.form-submit-btn:hover {
    background: #40000B;
}
 
/* Ajuste para móviles */
@media (max-width: 992px) {
    .comment-form-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .comment-form-wrapper {
        padding: 0px;
    }
    .form-title, .form-subtitle {
        text-align: center;
    }
    .form-rating {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    #ratingStars {
        justify-content: center;
    }
}


/* Evita que AOS descuadre el flexbox o el grid de tu sección */
.experience-section [data-aos] {
    pointer-events: none; /* Evita interferencias mientras anima */
}

.experience-section .aos-animate {
    pointer-events: auto; /* Devuelve el control al terminar */
}

/* Fuerza a que el cuerpo de la web no crezca horizontalmente */
html, body {
    overflow-x: hidden;
    position: relative;
}