/* ============================================================
   SMILEY TESTIMONIALS AGENTE v1.0
   Paleta: Verde WhatsApp + Naranja Smiley
   ============================================================ */

:root {
    --sta-green:   #25D366;
    --sta-orange:  #E8824A;
    --sta-dark:    #1a202c;
    --sta-gray:    #4a5568;
    --sta-light:   #f9fafb;
    --sta-yellow:  #fbbf24;
}

/* ============================================================
   WRAPPER
   ============================================================ */

.sta-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 30px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 12px 50px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   HEADER
   ============================================================ */

.sta-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 32px 30px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 18px;
    border: 3px solid var(--sta-green);
    margin-bottom: 48px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.15);
}

.sta-header-icon { font-size: 52px; line-height: 1; }

.sta-header-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--sta-dark);
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--sta-green) 0%, var(--sta-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sta-header-subtitle {
    font-size: 15px;
    color: var(--sta-gray);
    margin: 0;
    line-height: 1.5;
}

.sta-header-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 4px;
}

.sta-stat-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--sta-dark);
    padding: 7px 16px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    border: 2px solid var(--sta-green);
}

.sta-stat-count.sta-stat-video {
    border-color: var(--sta-orange);
}

.sta-stat-badge {
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 20px;
    background: var(--sta-green);
    color: white;
}

.sta-badge-green { background: var(--sta-orange); }

/* ============================================================
   FLIP: DISPLAY PRINCIPAL
   ============================================================ */

.sta-flip-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
}

.sta-main-display {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 9 / 16;
    margin: 0 auto 28px;
    perspective: 1500px;
}

.sta-display-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.sta-main-display:hover .sta-display-inner { transform: rotateY(180deg); }

.sta-display-front,
.sta-display-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    backface-visibility: hidden;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease;
}

.sta-main-display:hover .sta-display-front,
.sta-main-display:hover .sta-display-back {
    box-shadow: 0 20px 60px rgba(37,211,102,0.3);
}

.sta-display-front { background: #f3f4f6; }

.sta-main-image {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: opacity 0.35s ease;
}

.sta-main-location {
    position: absolute;
    top: 16px; right: 16px;
    font-size: 13px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 7px 13px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    z-index: 10;
    font-weight: 600;
    color: var(--sta-dark);
}

.sta-verified-badge {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--sta-green);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37,211,102,0.4);
    z-index: 10;
}

.sta-plan-badge {
    position: absolute;
    top: 60px; left: 16px;
    background: var(--sta-orange);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(232,130,74,0.4);
    z-index: 10;
}

.sta-main-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sta-main-name     { font-size: 22px; font-weight: 800; color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.sta-main-business { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.88); }
.sta-main-rating   { font-size: 17px; color: var(--sta-yellow); letter-spacing: 3px; }

.sta-main-roi {
    font-size: 13px;
    font-weight: 700;
    color: var(--sta-green);
    background: rgba(255,255,255,0.96);
    padding: 5px 12px;
    border-radius: 12px;
    display: inline-block;
    align-self: flex-start;
}

.sta-hover-hint {
    position: absolute;
    bottom: 22px; right: 16px;
    background: rgba(37,211,102,0.9);
    color: white;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    animation: sta-pulse 2.5s infinite;
    z-index: 5;
}

@keyframes sta-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.08); opacity: 0.82; }
}

/* REVERSO */
.sta-display-back {
    background: linear-gradient(135deg, var(--sta-green) 0%, #128C7E 50%, var(--sta-orange) 100%);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
}

.sta-back-content {
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sta-quote-icon    { font-size: 52px; opacity: 0.3; line-height: 1; font-family: Georgia, serif; }
.sta-testimony-text { font-size: 15px; line-height: 1.7; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.sta-testimony-author { font-size: 14px; font-weight: 700; font-style: italic; opacity: 0.95; }

/* ============================================================
   CARRUSEL MINIATURAS
   ============================================================ */

.sta-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 440px;
    margin-bottom: 14px;
}

.sta-carousel-btn {
    background: var(--sta-green);
    color: white;
    border: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
    flex-shrink: 0;
}

.sta-carousel-btn:hover {
    background: var(--sta-orange);
    transform: scale(1.15);
}

.sta-carousel-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--sta-green) #f7fafc;
    flex: 1;
}

.sta-carousel-track::-webkit-scrollbar       { height: 5px; }
.sta-carousel-track::-webkit-scrollbar-track { background: #f7fafc; border-radius: 10px; }
.sta-carousel-track::-webkit-scrollbar-thumb { background: var(--sta-green); border-radius: 10px; }

.sta-thumbnail {
    position: relative;
    min-width: 82px; width: 82px;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.sta-thumbnail:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--sta-green);
}

.sta-thumbnail.sta-active {
    border-color: var(--sta-green);
    box-shadow: 0 0 0 3px var(--sta-green), 0 6px 16px rgba(37,211,102,0.4);
    transform: scale(1.08);
}

.sta-thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.sta-thumb-location {
    position: absolute;
    bottom: 6px; left: 4px; right: 4px;
    background: rgba(255,255,255,0.96);
    border-radius: 6px;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 10;
}

.sta-thumb-location .sta-pin  { font-size: 10px; line-height: 1; }
.sta-thumb-location .sta-city { font-size: 8px; font-weight: 700; color: var(--sta-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   EMPTY STATE
   ============================================================ */

.sta-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--sta-light);
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
    width: 100%;
}

.sta-empty-icon { font-size: 48px; margin-bottom: 16px; }
.sta-empty-state p { color: var(--sta-gray); font-size: 15px; line-height: 1.7; }
.sta-empty-state a { color: var(--sta-green); font-weight: 700; text-decoration: none; }

/* ============================================================
   HELPER TEXT
   ============================================================ */

.sta-helper-text {
    text-align: center;
    color: var(--sta-gray);
    font-size: 13px;
    font-style: italic;
    padding: 10px 16px;
    background: var(--sta-light);
    border-radius: 10px;
    border: 2px dashed #e2e8f0;
    margin: 0;
    max-width: 440px;
}

/* ============================================================
   SECTION TITLE
   ============================================================ */

.sta-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--sta-dark);
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

/* ============================================================
   VIDEOS UGC — aparece automático cuando hay videos
   ============================================================ */

.sta-video-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
}

.sta-video-player-916 {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 9 / 16;
    margin: 0 auto 24px;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.sta-youtube-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.sta-video-verified-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--sta-green);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

.sta-video-playlist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 380px;
    margin: 0 auto 14px;
}

.sta-video-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.sta-video-thumb:hover  { transform: translateY(-4px) scale(1.05); border-color: var(--sta-green); }
.sta-video-thumb.sta-active { border-color: var(--sta-green); transform: scale(1.08); }
.sta-video-thumb img    { width: 100%; height: 100%; object-fit: cover; display: block; }

.sta-video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sta-play-icon      { font-size: 30px; color: white; opacity: 0.9; }
.sta-video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.85); color: white; padding: 3px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.sta-video-info     { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%); padding: 8px; }
.sta-video-name     { font-size: 11px; font-weight: 700; color: white; display: block; line-height: 1.3; }

/* ============================================================
   CTA FINAL
   ============================================================ */

.sta-cta {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 44px 36px;
    border-radius: 20px;
    border: 3px solid var(--sta-green);
    box-shadow: 0 6px 24px rgba(37,211,102,0.18);
    text-align: center;
}

.sta-cta-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--sta-dark);
    margin: 0 0 12px;
}

.sta-cta-subtitle {
    font-size: 16px;
    color: var(--sta-gray);
    margin: 0 0 20px;
    line-height: 1.6;
}

.sta-cta-garantias {
    font-size: 13px;
    color: var(--sta-gray);
    margin: 0 0 28px;
    line-height: 1.8;
}

.sta-cta-btn {
    display: inline-block;
    background: var(--sta-green);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    letter-spacing: 0.3px;
}

.sta-cta-btn:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(37,211,102,0.55);
    color: white;
}

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

@media (max-width: 768px) {
    .sta-wrapper       { padding: 36px 20px; }
    .sta-header        { padding: 24px 18px; }
    .sta-header-title  { font-size: 20px; }
    .sta-main-display,
    .sta-video-player-916 { max-width: 340px; }
    .sta-hover-hint    { display: none; }
    .sta-main-display:active .sta-display-inner { transform: rotateY(180deg); }
    .sta-cta           { padding: 32px 22px; }
    .sta-cta-title     { font-size: 22px; }
    .sta-cta-btn       { width: 100%; max-width: 320px; text-align: center; }
}

@media (max-width: 480px) {
    .sta-header-title  { font-size: 17px; }
    .sta-thumbnail     { min-width: 72px; width: 72px; }
    .sta-carousel-btn  { width: 34px; height: 34px; font-size: 20px; }
}
