/* Estilos específicos para la página de condiciones */
:root {
    --teal-light: #00a0a0;
    --teal-medium: #008080;
    --teal-dark: #006666;
    --accent-yellow: #FFD700;
    --accent-orange: #FF8C00;
    --light-bg: #f0f8f8;
}

/* Estilos generales */
body {
    font-family: 'Roboto', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-color);
    overflow-x: hidden;
}

.conditions-header {
    background: linear-gradient(120deg, #2c3e50, #006666);
    position: relative;
    overflow: hidden;
}

.conditions-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.challenge-dates {
    font-size: 0.6em;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.5px;
    opacity: 0.9;
    display: block;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Formas del header */
.header-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape1 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--teal-light) 0%, transparent 70%);
    top: -50px;
    left: 10%;
    filter: blur(20px);
}

.shape2 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--teal-medium) 0%, transparent 70%);
    bottom: -30px;
    right: 20%;
    filter: blur(15px);
}

.shape3 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent-yellow) 0%, transparent 70%);
    top: 20px;
    right: 10%;
    filter: blur(10px);
}

/* Main y secciones */
.conditions-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.conditions-section {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    opacity: 1; /* Visible por defecto */
    transform: translateY(0px);
}

/* Sección de introducción */
.intro-section {
    text-align: center;
}

.title-container {
    position: relative;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.challenge-period {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--teal-medium);
    background: linear-gradient(135deg, #E0F2F1 0%, #E8F5E8 100%);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 1rem;
    border: 2px solid var(--teal-light);
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.1);
}

.title-underline {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--teal-medium), transparent);
    margin: 0 auto;
    width: 0; /* Inicialmente 0 para animación */
}

.welcome-message {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.highlight-text {
    color: var(--teal-medium);
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Iconos de sección */
.icon-heading {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-icon {
    position: relative;
    width: 60px;
    height: 60px;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.icon-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    z-index: 2;
}

.icon-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--teal-light) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
    z-index: 1;
    transform: scale(0); /* Inicialmente para animación */
}

.icon-heading h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

/* Listas animadas */
.animated-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.list-item {
    display: flex;
    margin-bottom: 1rem;
    opacity: 0; /* Inicialmente invisible para animación */
    transform: translateX(-30px);
}

.item-marker {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--teal-medium), var(--teal-light));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 128, 128, 0.2);
}

.item-content {
    flex: 1;
}

.item-content p {
    margin: 0;
    line-height: 1.5;
    padding: 0.5rem 0;
}

/* Sección de premios */
.prize-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.card-highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--teal-medium), var(--teal-light));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.2);
}

.pulse {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animación de tickets */
.ticket-animation {
    height: 80px;
    overflow: hidden;
    position: relative;
    margin: 1.5rem 0;
}

.ticket-container {
    display: flex;
    justify-content: center;
    position: relative;
}

.ticket {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
    border-radius: 8px;
    margin: 0 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
    position: relative;
    opacity: 0; /* Inicialmente invisible para animación */
}

/* Sección de salones */
.important-notice {
    background-color: rgba(255, 248, 225, 0.8);
    border-left: 4px solid var(--accent-orange);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.notice-label {
    display: inline-block;
    background-color: var(--accent-orange);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
    transform: rotate(-2deg);
}

.notice-highlight {
    color: var(--teal-dark);
    margin-top: 1rem;
    font-weight: 500;
}

/* Ilustración de salones */
.salons-illustration {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
    position: relative;
    height: 150px;
}

.salon {
    width: 120px;
    height: 50px;
    background: linear-gradient(135deg, var(--teal-light), var(--teal-dark));
    color: white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    position: absolute;
    box-shadow: 0 3px 10px rgba(0, 128, 128, 0.2);
}

.salon1 {
    top: 0;
    left: 20%;
    transform: translateX(-50%);
}

.salon2 {
    top: 0;
    right: 20%;
    transform: translateX(50%);
}

.connection-line {
    position: absolute;
    top: 25px;
    left: 50%;
    width: 0; /* Inicialmente 0 para animación */
    height: 50px;
    border-left: 2px dashed var(--teal-medium);
    transform: translateX(-50%);
}

.unified-points {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--teal-medium), var(--accent-yellow));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 128, 128, 0.2);
    opacity: 0; /* Inicialmente invisible para animación */
}

/* Distribución de premios */
.prize-distribution {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.prize-direct, .prize-raffle {
    text-align: center;
    opacity: 0; /* Inicialmente invisible para animación */
    transform: scale(0.8);
}

.prize-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.prize-label {
    color: var(--primary-color);
    font-weight: 500;
}

/* Sección de progreso */
.progress-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.progress-highlight {
    color: var(--teal-dark);
    margin-top: 1rem;
}

.progress-visual {
    margin: 2rem 0 1rem;
    position: relative;
    height: 60px;
}

.progress-bar {
    height: 20px;
    background-color: rgba(0, 128, 128, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-medium), var(--teal-light));
    border-radius: 10px;
    width: 0; /* Inicialmente 0 para animación */
}

.ticket-group {
    position: absolute;
    top: 30px;
    left: 70%;
    display: flex;
    opacity: 0; /* Inicialmente invisible para animación */
}

.ticket-mini {
    font-size: 1.5rem;
    margin-right: 0.3rem;
    transform: rotate(-15deg);
}

.ticket-mini:nth-child(2) {
    transform: rotate(5deg);
}

.ticket-mini:nth-child(3) {
    transform: rotate(15deg);
}

/* Sección de conclusión */
.conclusion-message {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--primary-color);
}

/* Toggle para servicios y ventas */
.toggle-container {
    margin-top: 3rem;
}

.toggle-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, var(--teal-medium), var(--teal-light));
    color: white;
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 128, 128, 0.2);
}

.toggle-button:hover {
    background: linear-gradient(90deg, var(--teal-dark), var(--teal-medium));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
}

.services-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background-color: var(--light-bg);
    border-radius: 0 0 8px 8px;
}

.services-content.active {
    max-height: 500px; /* Suficiente para mostrar todo el contenido */
    padding: 1.5rem;
    margin-top: 0.5rem;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-group {
    flex: 1;
    min-width: 200px;
}

.service-group h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.codes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
    padding: 0;
    list-style: none;
}

.codes-list li {
    background-color: white;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .icon-heading {
        flex-direction: column;
        text-align: center;
    }

    .section-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .prize-distribution {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .salons-illustration {
        height: 200px;
    }
    
    .salon1, .salon2 {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .salon1 {
        top: 0;
    }
    
    .salon2 {
        top: 60px;
    }
    
    .connection-line {
        height: 30px;
        top: 50px;
    }
    
    .unified-points {
        bottom: 0;
    }
}

@media (max-width: 480px) {
    .conditions-section {
        padding: 1.5rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .icon-heading h3 {
        font-size: 1.3rem;
    }
    
    .services-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Sistema de puntuación con tarjetas (estilo Context7) */
.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1rem 0 0 0;
}

.point-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    opacity: 1; /* Asegurar que sean visibles por defecto */
    transform: translateY(0); /* Estado normal por defecto */
}

.point-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.point-card-header {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.treatment-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.point-card-header h4 {
    margin: 0.5rem 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Tarjeta Smoothfiller - Estrella */
.smoothfiller-card {
    border-color: #FFD700;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFAEB 100%);
}

.smoothfiller-card .point-card-header {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.star-treatment {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
}

/* Tarjeta Sebastian - Premium */
.sebastian-card {
    border-color: #8E24AA;
    background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
    box-shadow: 0 8px 32px rgba(142, 36, 170, 0.3);
    border-width: 3px;
}

.sebastian-card .point-card-header {
    background: linear-gradient(135deg, #8E24AA, #AB47BC);
    color: white;
    box-shadow: 0 4px 16px rgba(142, 36, 170, 0.5);
}

.premium-treatment {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Tarjeta Estándar */
.standard-card {
    border-color: var(--teal-medium);
    background: linear-gradient(135deg, #E0F2F1 0%, #E8F5E8 100%);
}

.standard-card .point-card-header {
    background: linear-gradient(135deg, var(--teal-medium), var(--teal-light));
    color: white;
}

.standard-treatment {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
}

.point-card-body {
    padding: 1.5rem;
}

.point-rule {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border-left: 4px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.point-rule.bonus-rule {
    border-left-color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
}

.point-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    margin-right: 1rem;
    min-width: 60px;
    text-align: center;
}

.big-points {
    color: #FF6B35;
    text-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

.bonus-points {
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.medium-points {
    color: #4A148C;
    text-shadow: 0 2px 4px rgba(74, 20, 140, 0.6);
    font-weight: 900;
}

.standard-points {
    color: var(--teal-medium);
    text-shadow: 0 2px 4px rgba(0, 128, 128, 0.3);
}

.point-label {
    flex: 1;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

/* Sección de ejemplo */
.example-section {
    margin-top: 0.8rem;
    margin-bottom: 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #E3F2FD 0%, #F0F8FF 100%);
    border-radius: 16px;
    border-left: 4px solid #2196F3;
}

.example-title {
    color: #1976D2;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.example-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.total-example {
    color: #FF6B35;
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 165, 0, 0.1));
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.example-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 8px;
}

.example-step {
    background: linear-gradient(135deg, #2196F3, #03A9F4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.example-arrow {
    font-size: 1.2rem;
    color: #2196F3;
    font-weight: bold;
}

.example-result {
    background: linear-gradient(135deg, #FF6B35, #FF8C00);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
}

/* Mejora visual para las tarjetas de Sebastian */
.sebastian-card .point-rule {
    background: #FFFFFF;
    border-left-color: #8E24AA;
    border-left-width: 5px;
    box-shadow: 0 3px 12px rgba(142, 36, 170, 0.2);
    border: 1px solid rgba(142, 36, 170, 0.1);
}

.sebastian-card .point-label {
    color: #000000;
    font-weight: 700;
}

/* Animaciones y efectos */
.fade-in {
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scale-in {
    animation: scaleIn 0.5s forwards;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.slide-in {
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive para el nuevo sistema de puntuación */
@media (max-width: 768px) {
    .points-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .point-card {
        border-radius: 12px;
    }
    
    .point-card-header {
        padding: 1.2rem;
    }
    
    .point-card-body {
        padding: 1.2rem;
    }
    
    .point-value {
        font-size: 1.5rem;
        min-width: 50px;
    }
    
    .example-visual {
        flex-direction: column;
        align-items: stretch;
    }
    
    .example-step, .example-result {
        text-align: center;
        margin: 0.2rem 0;
    }
    
    .example-arrow {
        text-align: center;
        transform: rotate(90deg);
    }
    
    /* Responsive para fechas del challenge */
    .challenge-dates {
        font-size: 0.5em;
        padding: 0.2rem 0.8rem;
        margin-top: 0.3rem;
    }
    
    .challenge-period {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .example-section {
        padding: 1rem;
    }
    
    .example-card {
        padding: 1rem;
    }
    
    .point-rule {
        flex-direction: column;
        text-align: center;
    }
    
    .point-value {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}
