/* Sección de Tabla de Ventajas */
.advantages-section {
    padding: 100px 5%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f5ff 100%);
    position: relative;
    overflow: hidden;
}

.advantages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(156, 39, 176, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(103, 58, 183, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

.advantages-title {
    background: linear-gradient(90deg, #2d0363, #9c27b0, #673ab7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* Contenedor de comparación */
.comparison-container {
    max-width: 1200px;
    margin: 60px auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Encabezado de la tabla */
.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: linear-gradient(135deg, #2d0363 0%, #1a093f 100%);
    color: white;
    padding: 30px;
}

.category-header {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
}

.header-cell {
    text-align: center;
    padding: 15px;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.brand-logo i {
    font-size: 40px;
    color: #9c27b0;
    background: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo.competitor i {
    color: #999;
    background: rgba(255, 255, 255, 0.05);
}

.brand-logo h3 {
    font-size: 22px;
    font-weight: 700;
}

.brand-tag {
    font-size: 14px;
    opacity: 0.8;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 5px;
}

.header-cell:first-child + .header-cell .brand-tag {
    background: rgba(156, 39, 176, 0.2);
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.header-cell:last-child .brand-tag {
    background: rgba(153, 153, 153, 0.2);
    border: 1px solid rgba(153, 153, 153, 0.3);
}

/* Filas de comparación */
.comparison-rows {
    padding: 20px 0;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.comparison-row:hover {
    background: rgba(248, 245, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.comparison-row.highlight-row {
    background: linear-gradient(90deg, rgba(156, 39, 176, 0.05), transparent);
    border-left: 4px solid #9c27b0;
}

.row-category {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: #333;
}

.row-category i {
    color: #9c27b0;
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: rgba(156, 39, 176, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-cell {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.biologica-cell {
    background: linear-gradient(90deg, rgba(156, 39, 176, 0.03), rgba(103, 58, 183, 0.03));
    border-radius: 10px;
    position: relative;
}

.competitor-cell {
    background: rgba(245, 245, 245, 0.5);
    border-radius: 10px;
}

.cell-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.biologica-cell .cell-content i {
    color: #4caf50;
    font-size: 22px;
    flex-shrink: 0;
}

.competitor-cell .cell-content i {
    color: #ff5252;
    font-size: 22px;
    flex-shrink: 0;
}

.cell-content span {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.cell-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.cell-badge.premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.cell-badge.advantage {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
}

.cell-badge.evidence {
    background: linear-gradient(135deg, #2196f3, #03a9f4);
    color: white;
}

.cell-badge.natural {
    background: linear-gradient(135deg, #8bc34a, #cddc39);
    color: #333;
}

.cell-badge.absorption {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
    color: white;
}

.cell-badge.expert {
    background: linear-gradient(135deg, #673ab7, #9c27b0);
    color: white;
}

.cell-badge.convenient {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: white;
}

.cell-badge.certified {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
}

/* Resumen de ventajas */
.advantages-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f5ff 0%, #f0ebff 100%);
    border-top: 1px solid #e0e0e0;
}

.summary-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(156, 39, 176, 0.15);
}

.summary-card h3 {
    color: #2d0363;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-card h3 i {
    color: #9c27b0;
}

.advantage-meter {
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.meter-fill {
    height: 100%;
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-weight: 600;
    font-size: 12px;
    color: white;
    transition: width 1.5s ease;
}

.biologica-meter {
    background: linear-gradient(90deg, #9c27b0, #673ab7);
    width: 96%;
    left: 0;
    border-radius: 15px 0 0 15px;
}

.competitor-meter {
    background: linear-gradient(90deg, #999, #666);
    width: 42%;
    right: 0;
    justify-content: flex-end;
    border-radius: 0 15px 15px 0;
}

.satisfaction-stars {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars i {
    color: #ffd700;
    font-size: 18px;
}

.stars span {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}

.competitor-stars i:nth-child(4),
.competitor-stars i:nth-child(5) {
    color: #ddd;
}

.value-comparison {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateX(5px);
}

.biologica-value {
    background: linear-gradient(90deg, rgba(156, 39, 176, 0.1), rgba(103, 58, 183, 0.1));
    border-left: 4px solid #9c27b0;
}

.competitor-value {
    background: rgba(245, 245, 245, 0.7);
    border-left: 4px solid #999;
}

.value-icon {
    width: 40px;
    height: 40px;
    background: #9c27b0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.competitor-value .value-icon {
    background: #999;
}

.value-details h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.value-details p {
    color: #666;
    font-size: 13px;
}

.summary-text {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.summary-text strong {
    color: #9c27b0;
}

/* Llamada a la acción */
.advantages-cta {
    max-width: 800px;
    margin: 60px auto 0;
    text-align: center;
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: white;
    padding: 50px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.advantages-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path fill="%23ffffff" opacity="0.05" d="M0,0 L1000,0 L1000,1000 L0,1000 Z M250,250 L750,250 L750,750 L250,750 Z"/></svg>');
    background-size: 200px;
    z-index: -1;
}

.advantages-cta h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.advantages-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.cta-btn {
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.primary-cta {
    background: white;
    color: #9c27b0;
}

.primary-cta:hover {
    background: #f0f0f0;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.secondary-cta {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-5px);
}

.cta-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 16px;
    opacity: 0.9;
}

.cta-guarantee i {
    color: #ffd700;
    font-size: 20px;
}

/* Responsividad */
@media (max-width: 1024px) {
    .comparison-header {
        grid-template-columns: 1fr 1fr;
    }
    
    .category-header {
        display: none;
    }
    
    .comparison-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .row-category {
        display: none;
    }
    
    .advantages-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .advantages-section {
        padding: 80px 20px;
    }
    
    .advantages-summary {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .advantages-cta {
        padding: 40px 20px;
    }
    
    .advantages-cta h3 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .header-cell {
        padding: 10px;
    }
    
    .brand-logo i {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .brand-logo h3 {
        font-size: 18px;
    }
    
    .comparison-row {
        padding: 15px 20px;
    }
    
    .cell-content span {
        font-size: 14px;
    }
    
    .meter-fill span {
        font-size: 10px;
        padding: 0 5px;
    }
}